Function at 0x4a6490
Capabilities:
Load assembly via iassembly
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x402596
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x401cd8
push 8
lea eax, [ebp - 0x90]
xor ebx, ebx
push 0x414d24
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x190], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x41403c
lea ecx, [ebp - 0x44]
call esi
mov edx, 0x41403c
lea ecx, [ebp - 0x40]
call esi
movsx eax, word [ebp + 0x14]
sub eax, ebx
je 0x4a67a4
dec eax
jne 0x4a6d2f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
lea edx, [ebp - 0xe0]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xe0], 3
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
lea eax, [ebp - 0xe0]
lea ecx, [ebp - 0x78]
push eax
lea edx, [ebp - 0xf0]
push ecx
lea eax, [ebp - 0x190]
push edx
lea ecx, [ebp - 0x180]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
mov dword [ebp - 0xd8], 1
mov dword [ebp - 0xe0], 2
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xf0], 2
call dword [sym.imp.MSVBVM60.DLL___vbaVarForInit]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
cmp eax, ebx
je 0x4a678c
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x98]
mov ecx, dword [eax]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov eax, dword [ebp - 0x98]
cmp eax, ebx
je 0x4a6681
cmp word [eax], 2
jne 0x4a6681
movsx ebx, word [ebp + 0x10]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
sub ebx, edx
cmp ebx, ecx
jb 0x4a664b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov ecx, dword [ebp - 0x98]
mov edi, eax
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub edi, edx
cmp edi, eax
jb 0x4a6675
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x18]
imul eax, edi
add eax, ebx
xor ebx, ebx
jmp 0x4a668d
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 0xc]
lea edx, [ebp - 0xe0]
add ecx, eax
lea eax, [ebp - 0xb0]
push edx
push eax
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xe0], 0x4011
call dword [sym.imp.MSVBVM60.DLL_rtcHexVarFromVar]
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
lea edx, [ebp - 0xf0]
push 2
lea eax, [ebp - 0xb0]
push edx
lea ecx, [ebp - 0xc0]
push eax
push ecx
mov dword [ebp - 0xe8], 0x414708
mov dword [ebp - 0xf0], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
lea edx, [ebp - 0xd0]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcRightCharVar]
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0xd0]
push eax
lea edx, [ebp - 0x9c]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcStrReverse]
mov edx, eax
lea ecx, [ebp - 0xa0]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x58]
call esi
lea eax, [ebp - 0xa0]
lea ecx, [ebp - 0x9c]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea edx, [ebp - 0xd0]
lea eax, [ebp - 0xc0]
push edx
lea ecx, [ebp - 0xb0]
push eax
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x1c
lea edx, [ebp - 0x190]
lea eax, [ebp - 0x180]
lea ecx, [ebp - 0x24]
push edx
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarForNext]
jmp 0x4a660a
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0xe0], 8
mov dword [ebp - 0xd8], edx
jmp 0x4a6d20
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push eax
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
lea edx, [ebp - 0xe0]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xe0], 3
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
mov eax, 2
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xf0], eax
lea edx, [ebp - 0x78]
push ecx
lea eax, [ebp - 0xf0]
push edx
lea ecx, [ebp - 0x130]
push eax
lea edx, [ebp - 0x120]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
mov dword [ebp - 0xd8], 1
mov dword [ebp - 0xe8], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaVarForInit]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
cmp eax, ebx
je 0x4a6a09
mov eax, dword [esi]
cmp eax, ebx
je 0x4a6860
cmp word [eax], 1
jne 0x4a6860
lea ecx, [ebp - 0x24]
mov ebx, eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov ecx, dword [ebx + 0x14]
mov esi, eax
mov eax, dword [ebx + 0x10]
sub esi, ecx
cmp esi, eax
jb 0x4a6856
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x1b0], esi
xor ebx, ebx
jmp 0x4a686c
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x1b0], eax
movsx eax, word [ebp + 0x10]
cmp eax, 2
jb 0x4a687b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov esi, eax
cmp esi, 0x2a
jb 0x4a6892
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
movsx eax, word [ebp + 0x10]
lea eax, [eax + esi*2]
mov esi, dword [ebp - 0x1b0]
mov dl, byte [edx + esi]
mov esi, dword [0x4db0f8]
mov byte [eax + esi], dl
mov eax, dword [ecx]
lea ecx, [ebp - 0x98]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov eax, dword [ebp - 0x98]
cmp eax, ebx
je 0x4a68fb
cmp word [eax], 1
jne 0x4a68fb
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov esi, eax
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
sub esi, edx
cmp esi, ecx
jb 0x4a68f7
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, esi
jmp 0x4a6901
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0xc]
lea ecx, [ebp - 0xb0]
add edx, eax
lea eax, [ebp - 0xe0]
push eax
push ecx
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xe0], 0x4011
call dword [sym.imp.MSVBVM60.DLL_rtcHexVarFromVar]
lea edx, [ebp - 0x98]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
lea eax, [ebp - 0xf0]
push 2
lea ecx, [ebp - 0xb0]
push eax
lea edx, [ebp - 0xc0]
push ecx
push edx
mov dword [ebp - 0xe8], 0x414708
mov dword [ebp - 0xf0], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcRightCharVar]
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0xd0]
push ecx
lea eax, [ebp - 0x9c]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcStrReverse]
mov edx, eax
lea ecx, [ebp - 0xa0]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x44]
call edi
lea ecx, [ebp - 0xa0]
lea edx, [ebp - 0x9c]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea eax, [ebp - 0xd0]
lea ecx, [ebp - 0xc0]
push eax
lea edx, [ebp - 0xb0]
push ecx
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x1c
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x120]
lea edx, [ebp - 0x24]
push eax
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarForNext]
mov esi, dword [ebp + 0xc]
jmp 0x4a6822
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
lea edx, [ebp - 0xe0]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xe0], 3
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
lea edx, [ebp - 0xe0]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xd8], 0x414228
mov dword [ebp - 0xe0], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
push ebx
lea ecx, [ebp - 0xb0]
push 0xffffffffffffffff
push ecx
lea edx, [ebp - 0xc0]
push 0x4196e4
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcSplit]
lea eax, [ebp - 0xc0]
push eax
push 0x2008
call dword [sym.imp.MSVBVM60.DLL___vbaAryVar]
lea ecx, [ebp - 0x104]
lea edx, [ebp - 0x28]
push ecx
push edx
mov dword [ebp - 0x104], eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryCopy]
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0xb0]
push eax
mov esi, 2
push ecx
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov edx, dword [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0xd8], 1
mov dword [ebp - 0xe0], esi
push edx
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xe0]
lea ecx, [ebp - 0xf0]
push eax
lea edx, [ebp - 0x100]
push ecx
lea eax, [ebp - 0x150]
push edx
lea ecx, [ebp - 0x140]
push eax
lea edx, [ebp - 0x38]
push ecx
push edx
mov dword [ebp - 0xf0], 3
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0x100], esi
call dword [sym.imp.MSVBVM60.DLL___vbaVarForInit]
cmp eax, ebx
je 0x4a6d0a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xd8], 1
cmp eax, ebx
mov dword [ebp - 0xe0], esi
je 0x4a6b70
cmp word [eax], 1
jne 0x4a6b70
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
lea eax, [ebp - 0x38]
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
sub esi, edx
cmp esi, ecx
jb 0x4a6b67
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
lea eax, [esi*4]
jmp 0x4a6b7c
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc]
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0x170]
mov eax, dword [edx + eax]
lea edx, [ebp - 0xf0]
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0x100]
push edx
push eax
lea edx, [ebp - 0x160]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
mov dword [ebp - 0xf0], 8
mov dword [ebp - 0xf8], 1
mov dword [ebp - 0x100], 2
call dword [sym.imp.MSVBVM60.DLL___vbaVarForInit]
test eax, eax
je 0x4a6ce6
mov ax, word [ebp - 0x3c]
lea ecx, [ebp - 0x44]
add ax, 1
lea edx, [ebp - 0xb0]
jo 0x4a6e50
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0xd8], ecx
movsx eax, ax
push edx
lea ecx, [ebp - 0xe0]
push eax
lea edx, [ebp - 0xc0]
push ecx
push edx
mov dword [ebp - 0xa8], 1
mov dword [ebp - 0xb0], 2
mov dword [ebp - 0xe0], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x40]
call edi
lea ecx, [ebp - 0xc0]
lea edx, [ebp - 0xb0]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
call ebx
mov esi, eax
cmp esi, 0xf
jb 0x4a6c75
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
lea ecx, [ebp - 0x38]
push ecx
call ebx
mov ebx, eax
cmp ebx, 0xf
jb 0x4a6c88
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [eax + esi*4]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x9c]
call edi
mov edx, eax
mov eax, dword [ebp - 0x84]
lea ecx, [eax + ebx*4]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x170]
lea edx, [ebp - 0x160]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarForNext]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
jmp 0x4a6bd6
lea ecx, [ebp - 0x150]
lea edx, [ebp - 0x140]
push ecx
lea eax, [ebp - 0x38]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarForNext]
xor ebx, ebx
mov esi, 2
jmp 0x4a6b1f
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xe0], 0x2008
mov dword [ebp - 0xd8], ecx
lea edx, [ebp - 0xe0]
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaVarCopy]
push 0x4a6e21
jmp 0x4a6d89
lea edx, [ebp - 0x190]
lea eax, [ebp - 0x180]
push edx
lea ecx, [ebp - 0x170]
push eax
lea edx, [ebp - 0x160]
push ecx
lea eax, [ebp - 0x150]
push edx
lea ecx, [ebp - 0x140]
push eax
lea edx, [ebp - 0x130]
push ecx
lea eax, [ebp - 0x120]
push edx
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
add esp, 0x24
lea ecx, [ebp - 0x24]
call esi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x28]
push ecx
push 0
call ebx
lea ecx, [ebp - 0x38]
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x40]
call edi
lea ecx, [ebp - 0x44]
call edi
lea ecx, [ebp - 0x54]
call esi
lea ecx, [ebp - 0x58]
call edi
lea ecx, [ebp - 0x78]
call esi
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x90]
push eax
push 0
mov dword [ebp - 0x104], edx
call ebx
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop