Function at 0x4850b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x404a36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x404278
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x2c]
xor esi, esi
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [ebp - 0x100]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x100]
mov dword [ebp - 0x3c], esi
push eax
push 0x40db58
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xd8], esi
call dword [sym.imp.MSVBVM60.DLL___vbaRecDestruct]
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x100]
push ebx
push ecx
call fcn.00484af0
lea edx, [ebp - 0x100]
lea eax, [ebp - 0x2c]
push edx
push eax
push 0x40db58
call dword [sym.imp.MSVBVM60.DLL___vbaRecAssign]
cmp dword [0x492010], esi
jne 0x48518c
push 0x492010
push 0x40a414
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov edi, dword [0x492010]
lea edx, [ebp - 0xd4]
push edx
push edi
mov ecx, dword [edi]
call dword [ecx + 0x58]
cmp eax, esi
fnclex
jge 0x4851b4
push 0x58
push 0x40ba80
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x44]
cmp eax, esi
jne 0x4851cd
lea eax, [ebp - 0x44]
push eax
push 0x412ae4
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd8], ecx
lea ecx, [ebp - 0xd0]
push ecx
mov edx, dword [eax]
lea ecx, [ebp - 0xcc]
mov edi, eax
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xd8]
push ecx
push eax
call dword [edx + 0x1c]
cmp eax, esi
fnclex
jge 0x485215
push 0x1c
push 0x412ad4
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edi, dword [ebp + 0xc]
push edi
call fcn.00467b30
lea edx, [ebp - 0x58]
mov dword [ebp - 0xd4], eax
mov eax, dword [edi]
push edx
push 1
push eax
push 0x40f058
push esi
mov dword [ebp - 0x50], 0x80020004
mov dword [ebp - 0x58], 0xa
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x98], 0x4008
call dword [sym.imp.MSVBVM60.DLL___vbaInStr]
add eax, 1
lea ecx, [ebp - 0x98]
jo 0x485407
push eax
lea edx, [ebp - 0x68]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
mov eax, dword [ebp - 0x40]
cmp eax, esi
jne 0x48528b
lea eax, [ebp - 0x40]
push eax
push 0x406df4
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebx]
mov ecx, 8
mov dword [ebp - 0xb0], 0x40f058
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0xc8], ecx
mov ebx, dword [eax]
mov edi, eax
lea eax, [ebp - 0xcc]
lea ecx, [ebp - 0x68]
push eax
push 0x40ba1c
push 0x40ba1c
lea edx, [ebp - 0xb8]
push ecx
lea eax, [ebp - 0x78]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarAdd]
lea ecx, [ebp - 0xc8]
push eax
lea edx, [ebp - 0x88]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarAdd]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
mov ecx, dword [ebp - 0xd4]
push eax
push ecx
push edi
call dword [ebx + 0x24]
cmp eax, esi
fnclex
jge 0x485319
push 0x24
push 0x40ea48
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea edx, [ebp - 0x88]
lea eax, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x68]
push eax
lea edx, [ebp - 0x58]
push ecx
push edx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
add esp, 0x14
push 0x40ea48
push esi
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
lea eax, [ebp - 0x40]
push eax
call ebx
push 0x412ad4
push esi
call edi
lea ecx, [ebp - 0x44]
push eax
push ecx
call ebx
push 0x4853d8
jmp 0x4853a8
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaRecDestruct]
lea eax, [ebp - 0x100]
push eax
push 0x40db58
call esi
lea ecx, [ebp - 0x2c]
push ecx
push 0x40db58
call esi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x40]
call esi
lea ecx, [ebp - 0x44]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop