Function at 0x4053a5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x402eb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xac
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401300
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
mov dword [ebp - 0x6c], 0x403aac
mov dword [ebp - 0x74], 8
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x60]
call sub.MSVBVM60.DLL___vbaVarDup
lea eax, [ebp - 0x60]
push eax
push 0xff
call sub.MSVBVM60.DLL_rtcStringBstr
mov edx, eax
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x60]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 4
push 0
push 1
push 1
push 0
lea eax, [ebp - 0x64]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
mov word [ebp - 0xa8], 0xff
lea eax, [ebp - 0xa8]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x74], 3
lea esi, [ebp - 0x74]
push 0
push dword [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
push dword [ebp - 0x4c]
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], 3
lea esi, [ebp - 0x84]
push 1
push dword [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x64]
push eax
push dword [0x41a194]
push dword [0x41a1b8]
call fcn.0040fca2
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x64]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 5
mov dword [ebp - 0xb8], 0x64
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0x2c], 1
jmp 0x405522
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0xb4]
jo 0x40592c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0xb8]
jg 0x4058de
mov dword [ebp - 4], 6
push 1
push dword [ebp - 0x4c]
push 0x403aac
push 0
call sub.MSVBVM60.DLL___vbaInStr
push eax
push dword [ebp - 0x4c]
call sub.MSVBVM60.DLL_rtcLeftCharBstr
mov edx, eax
lea ecx, [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x403aac
call sub.MSVBVM60.DLL___vbaStrCmp
neg eax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0xb0], ax
lea ecx, [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaFreeStr
movsx eax, word [ebp - 0xb0]
test eax, eax
je 0x40558d
jmp 0x4058de
mov dword [ebp - 4], 9
push 1
push dword [ebp - 0x4c]
push 0x403aac
push 0
call sub.MSVBVM60.DLL___vbaInStr
sub eax, 1
jo 0x40592c
push eax
push dword [ebp - 0x4c]
call sub.MSVBVM60.DLL_rtcLeftCharBstr
mov edx, eax
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0xa
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x64]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
push dword [ebp - 0x40]
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x74], 3
lea esi, [ebp - 0x74]
push 0
push dword [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x64]
push eax
push dword [0x41a18c]
push dword [0x41a1b8]
call fcn.0040fca2
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x64]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
cmp dword [ebp - 0xac], 2
jne 0x405899
mov dword [ebp - 4], 0xb
push 0
push 3
push 1
push 0
lea eax, [ebp - 0x64]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
push dword [ebp - 0x40]
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x74], 3
lea esi, [ebp - 0x74]
push 0
push dword [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], 3
lea esi, [ebp - 0x84]
push 1
push dword [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x28]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], 3
lea esi, [ebp - 0x94]
push 2
push dword [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x48]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], 3
lea esi, [ebp - 0xa4]
push 3
push dword [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x64]
push eax
push dword [0x41a190]
push dword [0x41a1b8]
call fcn.0040fca2
lea eax, [ebp - 0x64]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov dword [ebp - 4], 0xc
push 0x57
push 0x5a
call fcn.00403a24
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xd
push 0x60
push 0xf
call fcn.00403a24
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xe
push dword [ebp - 0x44]
push dword [ebp - 0x48]
fldz
call sub.MSVBVM60.DLL___vbaFpCmpCy
test eax, eax
je 0x4057c4
mov dword [ebp - 4], 0xf
mov eax, dword [ebp + 8]
cmp word [eax], 0xffff
jne 0x40579f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 0x40]
push eax
call fcn.00408bd2
jmp 0x4057c4
mov dword [ebp - 4], 0x12
lea eax, [ebp - 0x40]
push eax
call fcn.00411d18
mov dword [ebp - 4], 0x13
push 0x16
push 6
call fcn.00403a24
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x16
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x64]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
push dword [ebp - 0x40]
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x74], 3
lea esi, [ebp - 0x74]
push 0
push dword [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x64]
push eax
push dword [0x41a18c]
push dword [0x41a1b8]
call fcn.0040fca2
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x64]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
cmp dword [ebp - 0xac], 4
jne 0x405899
mov dword [ebp - 4], 0x17
mov eax, dword [ebp + 8]
cmp word [eax], 0xffff
jne 0x405889
mov dword [ebp - 4], 0x18
lea eax, [ebp - 0x40]
push eax
call fcn.00408bd2
mov dword [ebp - 4], 0x19
push 0x22
push 0x5e
call fcn.00403a24
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x1a
push 0x57
push 0x31
call fcn.00403a24
call sub.MSVBVM60.DLL___vbaSetSystemError
jmp 0x405899
mov dword [ebp - 4], 0x1c
lea eax, [ebp - 0x40]
push eax
call fcn.00411d18
mov dword [ebp - 4], 0x20
push dword [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaLenBstr
mov esi, eax
push 1
push dword [ebp - 0x4c]
push 0x403aac
push 0
call sub.MSVBVM60.DLL___vbaInStr
sub esi, eax
jo 0x40592c
push esi
push dword [ebp - 0x4c]
call sub.MSVBVM60.DLL_rtcRightCharBstr
mov edx, eax
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0x21
jmp 0x405510
wait
push 0x40591b
jmp 0x405902
lea ecx, [ebp - 0x3c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow