Function at 0x5561f0
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, 0x548
call fcn.00562343
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x408dc0
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 0x55624c
mov dword [ebp - 0x370], 0
jmp 0x556258
call dword [sym.imp.MSVBVM60.DLL___vbaFailedFriend]
mov dword [ebp - 0x370], 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
mov dword [ebp - 0xc0], 0
mov dword [ebp - 4], 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3d4]
mov ax, word [0x5ae910]
mov word [edx + 0x4a], ax
mov dword [ebp - 4], 6
mov ecx, dword [0x5aea60]
mov edx, 0x122
sub edx, dword [ecx + 0x14]
mov eax, dword [0x5aea60]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edx*4]
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov dword [ebp - 4], 7
mov edx, dword [0x5aea60]
mov eax, 0x123
sub eax, dword [edx + 0x14]
mov ecx, dword [0x5aea60]
mov edx, dword [ecx + 0xc]
mov edx, dword [edx + eax*4]
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov dword [ebp - 4], 8
mov eax, dword [0x5ae524]
push eax
call 0x6272b1
mov dword [ebp - 4], 9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x58]
push edx
call 0x6272c4
mov dword [ebp - 4], 0xa
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3d4]
mov edx, dword [ecx + 0x50]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstrB]
test eax, eax
jne 0x556422
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x1d0], 0x429684
mov dword [ebp - 0x1d8], 8
lea edx, [ebp - 0x1d8]
lea ecx, [ebp - 0x178]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea eax, [ebp - 0x178]
push eax
push 0x12
call dword [sym.imp.MSVBVM60.DLL_rtcStringBstr]
mov edx, eax
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x3d4]
add ecx, 0x50
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x178]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x1d0], 0x422fd4
mov dword [ebp - 0x1d8], 8
lea edx, [ebp - 0x1d8]
lea ecx, [ebp - 0x178]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea edx, [ebp - 0x178]
push edx
push 0x42
call dword [sym.imp.MSVBVM60.DLL_rtcStringBstr]
mov edx, eax
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3d4]
add ecx, 0x54
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x178]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0xe
cmp dword [0x5aeb20], 0
jne 0x55644e
push 0x5aeb20
push 0x4150bc
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov dword [ebp - 0x374], 0x5aeb20
jmp 0x556458
mov dword [ebp - 0x374], 0x5aeb20
mov ecx, dword [ebp - 0x374]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
mov dword [ebp - 4], 0xf
push 0
push 0
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x24c]
push eax
call dword [edx + 0x328]
push eax
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
lea edx, [ebp - 0x178]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edx, eax
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov eax, 1
sub eax, 1
mov ecx, dword [0x5ae4a8]
lea ecx, [ecx + eax*4]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x160]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x178]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0x10
push 0
push 0
mov edx, dword [ebp - 0x24c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [eax + 0x324]
push eax
lea edx, [ebp - 0x160]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edx, eax
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov ecx, 2
sub ecx, 1
mov eax, dword [0x5ae4a8]
lea ecx, [eax + ecx*4]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x160]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x178]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0x11
push 0
push 0
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x24c]
push eax
call dword [edx + 0x32c]
push eax
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
lea edx, [ebp - 0x178]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edx, eax
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov eax, 3
sub eax, 1
mov ecx, dword [0x5ae4a8]
lea ecx, [ecx + eax*4]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x160]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x178]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0x12
push 0
push 0
mov edx, dword [ebp - 0x24c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [eax + 0x330]
push eax
lea edx, [ebp - 0x160]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edx, eax
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov ecx, 4
sub ecx, 1
mov eax, dword [0x5ae4a8]
lea ecx, [eax + ecx*4]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x160]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x178]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0x13
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x24c]
push eax
call dword [edx + 0x334]
push eax
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0x22c], eax
lea edx, [ebp - 0x164]
push edx
push 0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x22c]
push edx
call dword [ecx + 0x40]
fnclex
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x55674b
push 0x40
push 0x4274f4
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x378], eax
jmp 0x556755
mov dword [ebp - 0x378], 0
push 0
push 0xb
mov edx, dword [ebp - 0x164]
push edx
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov dword [ebp - 0x37c], eax
fild dword [ebp - 0x37c]
fdiv qword [0x401e60]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVBVM60.DLL___vbaStrR8]
mov edx, eax
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov ecx, 5
sub ecx, 1
mov eax, dword [0x5ae4a8]
lea ecx, [eax + ecx*4]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x164]
push ecx
lea edx, [ebp - 0x160]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
lea ecx, [ebp - 0x178]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0x14
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24c]
push edx
call dword [ecx + 0x334]
push eax
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x164]
push ecx
push 1
mov edx, dword [ebp - 0x22c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [eax + 0x40]
fnclex
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x55686b
mov dword [ebp - 0x380], 0