Function at 0x40f1ba
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4034f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xc8
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x402050
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 - 0x80], 0x4043f0
mov dword [ebp - 0x88], 8
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaVarDup
lea eax, [ebp - 0x64]
push eax
push 0xff
call sub.MSVBVM60.DLL_rtcStringBstr
mov edx, eax
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 4
push 0
push 1
push 1
push 0
lea eax, [ebp - 0x78]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
mov word [ebp - 0xbc], 0xff
lea eax, [ebp - 0xbc]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x88], 3
lea esi, [ebp - 0x88]
push 0
push dword [ebp - 0x78]
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 - 0x90], eax
mov dword [ebp - 0x98], 3
lea esi, [ebp - 0x98]
push 1
push dword [ebp - 0x78]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x78]
push eax
push dword [0x41f194]
push dword [0x41f1b8]
call fcn.0041becd
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0x78]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 5
mov dword [ebp - 0xd4], 0x64
mov dword [ebp - 0xd0], 1
mov dword [ebp - 0x2c], 1
jmp 0x40f346
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0xd0]
jo 0x40f948
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0xd4]
jg 0x40f8e6
mov dword [ebp - 4], 6
push 0
push 0x26
push 0xee
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 4
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_rtcInStrRev
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
mov dword [ebp - 4], 7
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x88], 0x4008
push 1
push dword [ebp - 0x4c]
push 0x4043f0
push 0
call sub.MSVBVM60.DLL___vbaInStr
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM60.DLL_rtcLeftCharVar
mov dword [ebp - 0x90], 0x4043f0
mov dword [ebp - 0x98], 0x8008
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x98]
push eax
call sub.MSVBVM60.DLL___vbaVarTstEq
mov word [ebp - 0xcc], ax
lea ecx, [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaFreeVar
movsx eax, word [ebp - 0xcc]
test eax, eax
je 0x40f41a
jmp 0x40f8e6
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x5c], 0xb2
mov dword [ebp - 0x64], 2
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM60.DLL_rtcUpperCaseVar
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0xb
push 0
push 0x4d
push 0x36
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 7
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_rtcInStrRev
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
mov dword [ebp - 4], 0xc
fld1
push ecx
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL_rtcLog
fstp qword [ebp - 0xc8]
mov dword [ebp - 4], 0xd
push 1
push dword [ebp - 0x4c]
push 0x4043f0
push 0
call sub.MSVBVM60.DLL___vbaInStr
sub eax, 1
jo 0x40f948
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], 0xe
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x78]
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 - 0x80], eax
mov dword [ebp - 0x88], 3
lea esi, [ebp - 0x88]
push 0
push dword [ebp - 0x78]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x78]
push eax
push dword [0x41f18c]
push dword [0x41f1b8]
call fcn.0041becd
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0x78]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
cmp dword [ebp - 0xc0], 2
jne 0x40f818
mov dword [ebp - 4], 0xf
fld qword [0x402128]
push ecx
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL_rtcSin
fstp qword [ebp - 0xc8]
mov dword [ebp - 4], 0x10
push 0
push 3
push 1
push 0
lea eax, [ebp - 0x78]
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 - 0x80], eax
mov dword [ebp - 0x88], 3
lea esi, [ebp - 0x88]
push 0
push dword [ebp - 0x78]
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 - 0x90], eax
mov dword [ebp - 0x98], 3
lea esi, [ebp - 0x98]
push 1
push dword [ebp - 0x78]
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 - 0xa0], eax
mov dword [ebp - 0xa8], 3
lea esi, [ebp - 0xa8]
push 2
push dword [ebp - 0x78]
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 - 0xb0], eax
mov dword [ebp - 0xb8], 3
lea esi, [ebp - 0xb8]
push 3
push dword [ebp - 0x78]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x78]
push eax
push dword [0x41f190]
push dword [0x41f1b8]
call fcn.0041becd
lea eax, [ebp - 0x78]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov dword [ebp - 4], 0x11
push 0xddc
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_VarPtr
lea ecx, [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaFreeStr
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x5c], 0x91
mov dword [ebp - 0x64], 2
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM60.DLL_rtcUpperCaseVar
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0x13
push dword [ebp - 0x44]
push dword [ebp - 0x48]
fldz
call sub.MSVBVM60.DLL___vbaFpCmpCy
test eax, eax
je 0x40f72e
mov dword [ebp - 4], 0x14
mov eax, dword [ebp + 8]
cmp word [eax], 0xffff
jne 0x40f71e
mov dword [ebp - 4], 0x15
lea eax, [ebp - 0x40]
push eax
call fcn.0041399b
jmp 0x40f72e
mov dword [ebp - 4], 0x17
lea eax, [ebp - 0x40]
push eax
call fcn.00404df3
mov dword [ebp - 4], 0x1a
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x78]
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 - 0x80], eax
mov dword [ebp - 0x88], 3
lea esi, [ebp - 0x88]
push 0
push dword [ebp - 0x78]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x78]
push eax
push dword [0x41f18c]
push dword [0x41f1b8]
call fcn.0041becd
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0x78]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
cmp dword [ebp - 0xc0], 4
jne 0x40f818
mov dword [ebp - 4], 0x1b
mov eax, dword [ebp + 8]
cmp word [eax], 0xffff
jne 0x40f7cf
mov dword [ebp - 4], 0x1c
lea eax, [ebp - 0x40]
push eax
call fcn.0041399b
jmp 0x40f818
mov dword [ebp - 4], 0x1e
mov word [ebp - 0xbc], 0x23d3
lea eax, [ebp - 0xbc]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 4], 0x1f
fld qword [0x402120]
push ecx
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL_rtcTan
fstp qword [ebp - 0xc8]
mov dword [ebp - 4], 0x20
lea eax, [ebp - 0x40]
push eax
call fcn.00404df3
mov dword [ebp - 4], 0x24
push dword [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaLenBstr
mov esi, eax
push 1
push dword [ebp - 0x4c]
push 0x4043f0
push 0
call sub.MSVBVM60.DLL___vbaInStr
sub esi, eax
jo 0x40f948
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], 0x25
fld qword [0x402118]
push ecx
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL_rtcTan
fstp qword [ebp - 0xc8]
mov dword [ebp - 4], 0x26
mov dword [ebp - 0x5c], 0xe4
mov dword [ebp - 0x64], 2
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM60.DLL_rtcUpperCaseVar
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0x27
mov dword [ebp - 0x5c], 0x6c
mov dword [ebp - 0x64], 2
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM60.DLL_rtcUpperCaseVar
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0x28
jmp 0x40f334
wait
push 0x40f937
jmp 0x40f91e
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