Function at 0x408515
Capabilities:
Parse pe header

Disassembly:
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x7a
xor cx, cx
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
call fcn.0040500c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x7b
mov eax, dword [ebp + 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaI2I4
push eax
push 0xffffffffffffffff
push 0x220
call sub.MSVBVM60.DLL___vbaFileOpen
mov dword [ebp - 4], 0x7c
xor cx, cx
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
call fcn.0040500c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x7d
xor cx, cx
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
call fcn.0040500c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x7e
xor cx, cx
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
call fcn.0040500c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x7f
mov dword [ebp - 0x108], 0x65a
mov dword [ebp - 0x104], 1
and dword [ebp - 0xa4], 0
jmp 0x4085df
mov eax, dword [ebp - 0xa4]
add eax, dword [ebp - 0x104]
jo 0x408a84
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0x108]
jg 0x408679
mov dword [ebp - 4], 0x80
xor cx, cx
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
call fcn.0040500c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x81
mov ecx, dword [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaI2I4
mov word [ebp - 0x74], ax
mov dword [ebp - 4], 0x82
push dword [ebp - 0x74]
mov eax, dword [0x4242cc]
add eax, dword [ebp - 0xa4]
jo 0x408a84
push eax
push dword [ebp - 0xa4]
push dword [0x424288]
call sub.MSVBVM60.DLL___vbaDerefAry1
push eax
push 1
call sub.MSVBVM60.DLL___vbaPut4
mov dword [ebp - 4], 0x83
xor cx, cx
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
call fcn.0040500c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x84
jmp 0x4085c7
mov dword [ebp - 4], 0x85
xor cx, cx
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
call fcn.0040500c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x86
mov ecx, dword [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaI2I4
push eax
call sub.MSVBVM60.DLL___vbaFileClose
mov dword [ebp - 4], 0x87
xor cx, cx
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
call fcn.0040500c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x88
xor cx, cx
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
call fcn.0040500c
call sub.MSVBVM60.DLL___vbaSetSystemError
jmp 0x4088f5
mov dword [ebp - 4], 0x92
xor cx, cx
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
call fcn.0040500c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x93
xor cx, cx
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
call fcn.0040500c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x94
or word [0x424028], 0xffff
mov dword [ebp - 4], 0x95
xor cx, cx
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
call fcn.0040500c
call sub.MSVBVM60.DLL___vbaSetSystemError
push 0x408a73
jmp 0x40898b
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x38]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x3c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x48]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x58]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x5c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x60]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x68]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x6c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x70]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x78]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x7c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x80]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x84]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x8c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x98]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x9c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow