Function at 0x40f3a4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x404606
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xa4
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4021c8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
push 0x11
push 0x405c80
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL___vbaAryConstruct2
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push 0x405c9c
push 0x405ca8
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405cb4
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405cc4
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405cd0
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x58]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4058a4
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x5c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405cdc
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x60]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405ce8
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x48]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push 6
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x1c
mov dword [ebp - 4], 4
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 5
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 6
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 7
push 0
push 2
push 1
push 0
lea eax, [ebp - 0x74]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
and dword [ebp - 0x7c], 0
mov dword [ebp - 0x84], 2
lea esi, [ebp - 0x84]
push 0
push dword [ebp - 0x74]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
and dword [ebp - 0xac], 0
cmp dword [ebp - 0xac], 0x201
jae 0x40f565
and dword [ebp - 0xc4], 0
jmp 0x40f570
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0xac]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], 3
lea esi, [ebp - 0x94]
push 1
push dword [ebp - 0x74]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
mov dword [ebp - 0x9c], 0x200
mov dword [ebp - 0xa4], 2
lea esi, [ebp - 0xa4]
push 2
push dword [ebp - 0x74]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x48]
push dword [0x4232c4]
call fcn.004073e4
lea eax, [ebp - 0x74]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov dword [ebp - 4], 8
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 9
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xa
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xb
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], 0x2011
lea eax, [ebp - 0x3c]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], 0x6011
push 1
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM60.DLL___vbaStrVarCopy
mov edx, eax
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x405c78
push 0
call sub.MSVBVM60.DLL___vbaInStr
sub eax, 1
jo 0x40f785
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x70]
push eax
call sub.MSVBVM60.DLL_rtcLeftCharVar
lea eax, [ebp - 0x70]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x70]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0xd
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xe
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
push 0x40f773
jmp 0x40f74b
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeStr
lea eax, [ebp - 0x3c]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa8]
push eax
push 0
call sub.MSVBVM60.DLL___vbaAryDestruct
lea ecx, [ebp - 0x48]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow