Function at 0x5716f3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x40c136
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2bc
call fcn.0057d733
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x409ce8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax], 0x5b8d60
jne 0x57163c
mov dword [ebp - 0x214], 0
jmp 0x571648
call dword [sym.imp.MSVBVM60.DLL___vbaFailedFriend]
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 2
mov dword [ebp - 4], 3
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 4
push 0x40d024
call dword [sym.imp.MSVBVM60.DLL___vbaNew]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 4], 5
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
push ecx
call dword [eax + 0x4f0]
push eax
lea edx, [ebp - 0xb4]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x154]
push eax
call dword [edx + 0x48]
fnclex
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jge 0x5716f2
push 0x48
push 0x4274f4
mov ecx, dword [ebp - 0x154]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x218], eax
jmp 0x5716fc
mov dword [ebp + 0x1716f6e8], 0xff
movsx eax, word [ebp - 0x140]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
push eax
call dword [edx + 0x4f0]
push eax
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0x14c], eax
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14c]
push edx
call dword [ecx + 0x44]
fnclex
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jge 0x571783
push 0x44
push 0x4274f4
mov eax, dword [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x21c], eax
jmp 0x57178d
mov dword [ebp - 0x21c], 0
movsx edx, word [ebp - 0x13c]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0xb0]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
jmp 0x5717be
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x18c]
jg 0x5718ae
mov dword [ebp - 4], 6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
push eax
call dword [edx + 0x4f0]
push eax
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0x14c], eax
lea edx, [ebp - 0xb4]
push edx
mov ax, word [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14c]
push eax
call dword [edx + 0x40]
fnclex
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jge 0x571849
push 0x40
push 0x4274f4
mov ecx, dword [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x220], eax
jmp 0x571853
mov dword [ebp - 0x220], 0
push 0
push 4
mov eax, dword [ebp - 0xb4]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov edx, dword [ebp - 0x30]
add edx, eax
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0xb0]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 7
jmp 0x6e3060
mov dword [ebp - 4], 8
push 0
mov edx, dword [ebp - 0x30]
push edx
push 1
push 8
lea eax, [ebp - 0x24]
push eax
push 4
push 0x180
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
mov dword [ebp - 4], 9
movsx ecx, word [0x5ae92a]
test ecx, ecx
invalid
invalid