Function at 0x407820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401526
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401300
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaRedim]
xor edi, edi
push edi
push 4
push 1
push edi
lea eax, [ebp - 0x2c]
push eax
push 0x10
push 0x880
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], edi
call ebx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x3c], 2
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov esi, ecx
mov ecx, dword [eax + 0xc]
sub ecx, esi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
add esp, 0x1c
lea edx, [ebp - 0x3c]
call esi
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], 3
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0x8c], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x8c]
sub ecx, eax
lea edx, [ebp - 0x4c]
add ecx, 0x10
call esi
push edi
push 0xffffffffffffffff
push edi
push edi
lea ecx, [ebp - 0x28]
push ecx
push 0x10
push 0x880
call ebx
add esp, 0x1c
lea edx, [ebp - 0x28]
push edx
push 0x4030f8
push 0x402ab0
call fcn.004058c0
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
add ebx, 0x30
jo 0x407ce5
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x5c], 3
lea edx, [ebp - 0x5c]
mov ebx, 2
mov eax, dword [ebp - 0x2c]
mov ecx, ebx
sub ecx, dword [eax + 0x14]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x64], 4
mov dword [ebp - 0x6c], ebx
mov ecx, 3
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x6c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], ebx
mov ecx, 4
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x7c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
lea ecx, [ebp - 0x2c]
push ecx
push 0x402bc4
push 0x402ab0
call fcn.004058c0
lea edx, [ebp - 0x2c]
push edx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
push edi
push 4
push 1
push edi
lea eax, [ebp - 0x28]
push eax
push 0x10
push 0x880
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x3c], ebx
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0x90], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x90]
add esp, 0x1c
lea edx, [ebp - 0x3c]
sub ecx, eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], 3
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0x94], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x94]
sub ecx, eax
lea edx, [ebp - 0x4c]
add ecx, 0x10
call esi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
add ecx, 0x20
jo 0x407ce5
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x5c], 3
mov ecx, ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x5c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], 4
mov dword [ebp - 0x6c], ebx
mov ecx, 3
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x6c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], ebx
mov ecx, 4
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x7c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
lea edx, [ebp - 0x28]
push edx
push 0x402bc4
push 0x402ab0
call fcn.004058c0
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
push edi
push 4
push 1
push edi
lea ecx, [ebp - 0x28]
push ecx
push 0x10
push 0x880
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x3c], ebx
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0x98], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x98]
add esp, 0x1c
lea edx, [ebp - 0x3c]
sub ecx, eax
call esi
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], 3
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0x9c], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x9c]
sub ecx, eax
lea edx, [ebp - 0x4c]
add ecx, 0x10
call esi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
add ecx, ebx
jo 0x407ce5
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x5c], 3
mov ecx, ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x5c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x28]
mov ecx, 3
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x6c], ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x6c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], ebx
mov ecx, 4
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x7c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
lea edx, [ebp - 0x28]
push edx
push 0x402bc4
push 0x402ab0
call fcn.004058c0
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
push edi
push 4
push 1
push edi
lea ecx, [ebp - 0x28]
push ecx
push 0x10
push 0x880
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x3c], ebx
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0xa0], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0xa0]
add esp, 0x1c
lea edx, [ebp - 0x3c]
sub ecx, eax
call esi
lea ecx, [ebp - 0x80]
push ecx
mov dword [ebp - 0x80], 1
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], 3
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0xa4], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0xa4]
sub ecx, eax
lea edx, [ebp - 0x4c]
add ecx, 0x10
call esi
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
add ecx, 0x10
jo 0x407ce5
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x5c], 3
mov ecx, ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x5c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], 4
mov dword [ebp - 0x6c], ebx
mov ecx, 3
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x6c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], ebx
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax + 0x14]
mov ecx, 4
sub ecx, ebx
mov ebx, dword [eax + 0xc]
shl ecx, 4
lea edx, [ebp - 0x7c]
add ecx, ebx
call esi
lea edx, [ebp - 0x28]
push edx
push 0x402bc4
push 0x402ab0
call fcn.004058c0
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
or eax, 0xffffffff
cmp word [ebp - 0x20], ax
jne 0x407cb1
mov dword [ebp - 0x24], eax
push 0x407cd0
jmp 0x407ccf
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop