Function at 0x47e930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x407016
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x406e20
mov eax, dword [ebp + 8]
push 0x7fffffff
push 0x40
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
push 0x47f470
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x7c], ebx
call fcn.00413e90
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
call esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
shl ecx, 6
sub eax, ecx
cmp word [eax], 0x5a4d
jne 0x47ed8f
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0x20]
add eax, edx
push 0x7fffffff
push 0xf8
lea edx, [ebp - 0x34]
push eax
push edx
push 0x47f470
mov dword [ebp - 0x40], eax
call fcn.00413e90
call esi
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x14]
mov edx, eax
shl edx, 5
sub edx, eax
mov eax, dword [ecx + 0xc]
shl edx, 3
sub eax, edx
cmp dword [eax], 0x4550
jne 0x47ed8f
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x34]
push 4
push 0x2000
push ecx
push edx
call fcn.004140d4
mov edi, eax
call esi
cmp edi, ebx
mov dword [ebp - 0x28], edi
jne 0x47ea57
mov ecx, dword [ebp - 0x34]
push 4
push 0x2000
mov eax, dword [ecx + 0x14]
mov edx, eax
shl edx, 5
sub edx, eax
mov eax, dword [ecx + 0xc]
shl edx, 3
sub eax, edx
mov ecx, dword [eax + 0x50]
push ecx
push ebx
call fcn.004140d4
mov edi, eax
call esi
cmp edi, ebx
mov dword [ebp - 0x28], edi
je 0x47ed8f
call fcn.00414230
mov edi, eax
call esi
push 0x14
push ebx
push edi
call fcn.004141a4
mov edi, eax
call esi
push 0x7fffffff
push 0x14
lea edx, [ebp - 0x3c]
push edi
push edx
push 0x47f470
mov dword [ebp - 0x1c], edi
call fcn.00413e90
call esi
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ecx + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0xc]
shl edx, 2
sub eax, edx
add eax, 4
push eax
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov ecx, dword [ebp - 0x3c]
push 4
push 0x1000
mov eax, dword [ecx + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0xc]
shl edx, 2
sub eax, edx
mov dword [eax + 0xc], ebx
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0xc]
shl edx, 2
sub eax, edx
mov dword [eax + 8], ebx
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0xc]
shl edx, 2
sub eax, edx
mov dword [eax + 0x10], ebx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x14]
mov edx, eax
shl edx, 5
sub edx, eax
mov eax, dword [ecx + 0xc]
shl edx, 3
sub eax, edx
mov edx, dword [ebp - 0x28]
mov ecx, dword [eax + 0x50]
push ecx
push edx
call fcn.004140d4
call esi
mov ecx, dword [ebp - 0x34]
push 4
push 0x1000
mov eax, dword [ecx + 0x14]
mov edx, eax
shl edx, 5
sub edx, eax
mov eax, dword [ecx + 0xc]
shl edx, 3
sub eax, edx
mov edx, dword [ebp - 0x28]
mov ecx, dword [eax + 0x54]
push ecx
push edx
call fcn.004140d4
mov edi, eax
call esi
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov edx, eax
shl edx, 5
sub edx, eax
mov eax, dword [ebp - 0x2c]
shl edx, 3
sub ecx, edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 0x54]
shl edx, 6
sub eax, edx
mov edx, dword [eax + 0x3c]
add ecx, edx
mov edx, dword [ebp + 8]
push ecx
push edx
push edi
call fcn.0040cb5c
call esi
mov eax, dword [ebp - 0x2c]
push 0x7fffffff
push 0xf8
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
shl ecx, 6
sub edx, ecx
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov edx, dword [edx + 0x3c]
lea eax, [eax + eax*4]
add edx, edi
shl eax, 2
sub ecx, eax
mov dword [ecx], edx
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0xc]
shl edx, 2
sub eax, edx
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
push ecx
push edx
push 0x47f470
call fcn.00413e90
call esi
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x14]
mov edx, eax
shl edx, 5
sub edx, eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x28]
shl edx, 3
sub eax, edx
lea edx, [ebp - 0x1c]
push edx
mov dword [eax + 0x34], ecx
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x20]
push eax
push ecx
call fcn.0047d580
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov edx, eax
shl edx, 5
sub edx, eax
mov eax, dword [ebp - 0x28]
shl edx, 3
sub ecx, edx
sub eax, dword [ecx + 0x34]
je 0x47ec1c
lea edx, [ebp - 0x1c]
push eax
push edx
call fcn.0047e1b0
lea eax, [ebp - 0x1c]
push eax
call fcn.0047e470
not eax
test eax, eax
jne 0x47ed0e
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0047df10
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x14]
mov edx, eax
shl edx, 5
sub edx, eax
mov eax, dword [ecx + 0xc]
shl edx, 3
sub eax, edx
mov eax, dword [eax + 0x28]
cmp eax, ebx
je 0x47ed89
mov ecx, dword [ebp - 0x28]
add eax, ecx
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x47ed0e
push ebx
push 2
push 1
lea edx, [ebp - 0x4c]
push ebx
push edx
push 0x10
push 0x880
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], 0x4003
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
add esp, 0x1c
lea edx, [ebp - 0x5c]
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov edi, ecx
mov ecx, dword [eax + 0xc]
sub ecx, edi
call dword [sym.imp.MSVBVM60.DLL___vbaVarZero]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x6c], 3
lea edx, [ebp - 0x6c]
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov edi, ecx
mov ecx, dword [eax + 0xc]
sub ecx, edi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
add ecx, 0x10
call edi
mov eax, dword [ebp - 0x4c]
mov ecx, 2
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], ecx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x7c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call edi
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x4c]
push edx
push eax
call fcn.0047f7f0
lea ecx, [ebp - 0x4c]
mov edi, eax
push ecx
push ebx
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
cmp edi, ebx
jne 0x47ed71
push ebx
push ebx
lea edx, [ebp - 0x30]
push 1
push edx
push 0x47f5e0
call fcn.00413e90
call esi
push ebx
push ebx
lea eax, [ebp - 0x3c]
push 1
push eax
push 0x47f5e0
call fcn.00413e90
call esi
push ebx
push ebx
lea ecx, [ebp - 0x34]
push 1
push ecx
push 0x47f5e0
call fcn.00413e90
call esi
push ebx
push ebx
lea edx, [ebp - 0x2c]
push 1
push edx
push 0x47f5e0
call fcn.00413e90
call esi
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0047f170
push 0x47ee18
jmp 0x47edf3
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0xc]
shl edx, 2
sub eax, edx
mov dword [eax + 0x10], 1
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], ecx
push ebx
push ebx
lea edx, [ebp - 0x30]
push 1
push edx
push 0x47f5e0
call fcn.00413e90
call esi
push ebx
push ebx
lea eax, [ebp - 0x3c]
push 1
push eax
push 0x47f5e0
call fcn.00413e90
call esi
push ebx
push ebx
lea ecx, [ebp - 0x34]
push 1
push ecx
push 0x47f5e0
call fcn.00413e90
call esi
push ebx
push ebx
lea edx, [ebp - 0x2c]
push 1
push edx
push 0x47f5e0
call fcn.00413e90
call esi
push 0x47ee18
jmp 0x47edf3
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x2c]
xor ebx, ebx
push ecx
push ebx
call esi
lea edx, [ebp - 0x30]
push edx
push ebx
call esi
lea eax, [ebp - 0x34]
push eax
push ebx
call esi
lea ecx, [ebp - 0x3c]
push ecx
push ebx
call esi
ret