FANDOM


SummaryEdit

This function returns the upper bound of the specified dimension of an array.

DefinitionEdit

WORD __vbaUbound(DWORD* Array, WORD Dimension)

DisassemblyEdit

72A1C65A   PUSH ESI
72A1C65B   MOV ESI, DWORD PTR SS:[ESP+C]
72A1C65F   PUSH EDI
72A1C660   MOV DI, WORD PTR SS:[ESP+C]
72A1C665   CMP DI, 0x1
72A1C669   JL SHORT MSVBVM60.72A1C674
72A1C66B   TEST ESI, ESI
72A1C66D   JE SHORT MSVBVM60.72A1C674
72A1C66F   CMP DI, WORD PTR DS:[ESI]
72A1C672   JLE SHORT MSVBVM60.72A1C67B
72A1C674   PUSH 9
72A1C676   CALL MSVBVM60.72A0E22C // TODO: name this
72A1C67B   MOVSX EAX, WORD PTR DS:[ESI]
72A1C67E   MOVSX ECX, DI
72A1C681   SUB EAX, ECX
72A1C683   POP EDE
72A1C684   MOV ECX, DWORD PTR DS:[ESI+EAX*8+14]
72A1C688   MOV EAX, DWORD PTR DS:[ESI+eax*8+10]
72A1C68C   POP ESI
72A1C68D   LEA EAX, DWORD PTR DS:[ECX+EAX-1]
72A1C691   RETN 0x8

BreakdownEdit

72A1C65A - Save ESI

< TODO: finish! >

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.