Function at 0x41d8e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x402b86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401548
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov eax, dword [eax]
mov dword [ebp - 0x24], esi
cmp eax, 1
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], esi
jne 0x41d9e9
call fcn.004136f0
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x6c]
lea eax, [ebp - 0x30]
push edx
push eax
mov dword [ebp - 0x6c], esi
call fcn.0041f710
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
mov ebx, 0x40
cmp eax, dword [ebp - 0x30]
je 0x41dc71
cmp dword [ebp - 0x28], esi
je 0x41dc71
lea ecx, [ebp - 0x6c]
add eax, 0x1c
lea edx, [ebp - 0x74]
push ecx
jo 0x41dcc1
push edx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x74], eax
call fcn.0041f710
cmp eax, 0xf
mov dword [ebp - 0x28], eax
jle 0x41dbf9
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
add eax, 0xc
lea edx, [ebp - 0x74]
push ecx
push edx
jo 0x41dcc1
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x74], eax
call fcn.0041f710
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x7c]
push eax
lea edx, [ebp - 0x78]
push ecx
push edx
jmp 0x41dc1e
cmp eax, 2
jne 0x41d9f8
call fcn.004136c0
jmp 0x41d94e
cmp eax, 3
jne 0x41dbc3
mov dword [ebp - 0x6c], esi
call fcn.00413690
lea ecx, [ebp - 0x6c]
lea edx, [ebp - 0x74]
push ecx
push edx
mov dword [ebp - 0x74], eax
call fcn.0041f710
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x60], 0x40ab4c
mov dword [ebp - 0x68], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x48]
push 0xffffffffffffffff
mov edx, dword [ecx]
push eax
lea eax, [ebp - 0x58]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcSplit]
lea ecx, [ebp - 0x58]
push ecx
push 0x2008
call dword [sym.imp.MSVBVM60.DLL___vbaAryVar]
mov dword [ebp - 0x74], eax
lea edx, [ebp - 0x74]
lea eax, [ebp - 0x2c]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryCopy]
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x48]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp ecx, esi
mov dword [ebp - 0x28], eax
je 0x41dab1
cmp word [ecx], 1
jne 0x41dab1
mov edi, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
neg edi
cmp edi, eax
jb 0x41daa8
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2c]
lea eax, [edi*4]
jmp 0x41daba
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx + eax]
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, dword [ebp - 0x2c]
push edx
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x28]
mov edi, 1
cmp edi, dword [ebp - 0x88]
jg 0x41db94
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x41db1b
cmp word [eax], 1
jne 0x41db1b
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov esi, edi
sub esi, edx
cmp esi, ecx
jb 0x41db16
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
shl esi, 2
jmp 0x41db23
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov esi, eax
mov eax, dword [ebp - 0x34]
push eax
push 0x40ab4c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x38]
call ebx
mov ecx, dword [ebp - 0x2c]
push eax
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + esi]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x34]
call ebx
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x6c]
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x34]
push edx
push eax
mov dword [ebp - 0x6c], 0
call fcn.0041d6a0
test eax, eax
mov dword [ebp - 0x28], eax
je 0x41db92
mov ecx, 1
mov dword [ebp - 0x24], eax
add ecx, edi
jo 0x41dcc1
mov edi, ecx
xor esi, esi
jmp 0x41dae9
xor esi, esi
cmp eax, esi
jne 0x41dbb3
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x6c]
lea edx, [ebp - 0x24]
push ecx
push edx
push eax
mov dword [ebp - 0x6c], 0xffffffff
call fcn.0041d6a0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push 0x41dcab
mov dword [ebp - 0x20], ecx
jmp 0x41dc95
cmp eax, 4
jne 0x41d951
call fcn.00413640
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x6c]
lea eax, [ebp - 0x30]
push edx
push eax
push ecx
mov dword [ebp - 0x6c], 0xffffffff
call fcn.0041d6a0
mov dword [ebp - 0x20], eax
push 0x41dcab
jmp 0x41dc95
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
add eax, 0xc
lea edx, [ebp - 0x78]
jo 0x41dcc1
mov dword [ebp - 0x74], eax
push ecx
lea eax, [ebp - 0x74]
push edx
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x78], ebx
push eax
call fcn.0041f4a0
mov edx, eax
lea ecx, [ebp - 0x34]
call edi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x34]
push ecx
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
test eax, eax
mov dword [ebp - 0x6c], esi
je 0x41dc56
lea ecx, [ebp - 0x6c]
lea edx, [ebp - 0x1c]
push ecx
push edx
call fcn.0041f710
mov dword [ebp - 0x1c], eax
jmp 0x41d972
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
add eax, 0x24
lea edx, [ebp - 0x74]
push ecx
push edx
jo 0x41dcc1
mov dword [ebp - 0x74], eax
call fcn.0041f710
mov dword [ebp - 0x20], eax
push 0x41dcab
jmp 0x41dc95
lea edx, [ebp - 0x2c]
push edx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop