Function at 0x40c8ea
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x403776
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x80
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401b58
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 - 0x44], 0x80020004
mov dword [ebp - 0x4c], 0xa
mov dword [ebp - 0x34], 0x80020004
mov dword [ebp - 0x3c], 0xa
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
fldz
push ecx
push ecx
fstp qword [esp]
fldz
push ecx
push ecx
fstp qword [esp]
fldz
push ecx
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL_rtcPMT
fstp qword [ebp - 0x7c]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 4
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040aafe
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MSVBVM60.DLL___vbaAryMove
mov dword [ebp - 4], 5
call sub.MSVBVM60.DLL_rtcDoEvents
mov dword [ebp - 4], 6
push dword [ebp - 0x28]
push 1
call sub.MSVBVM60.DLL___vbaUbound
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], 1
and dword [ebp - 0x24], 0
jmp 0x40c9fd
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x84]
jo 0x40ce46
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x88]
jg 0x40cd27
mov dword [ebp - 4], 7
call sub.MSVBVM60.DLL_rtcDoEvents
mov dword [ebp - 4], 8
mov dword [ebp - 0x44], 0x80020004
mov dword [ebp - 0x4c], 0xa
mov dword [ebp - 0x34], 0x80020004
mov dword [ebp - 0x3c], 0xa
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
fldz
push ecx
push ecx
fstp qword [esp]
fldz
push ecx
push ecx
fstp qword [esp]
fldz
push ecx
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL_rtcPMT
fstp qword [ebp - 0x7c]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 9
push 3
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
call sub.MSVBVM60.DLL_rtcRightCharBstr
mov edx, eax
lea ecx, [ebp - 0x80]
call sub.MSVBVM60.DLL___vbaStrMove
mov dword [ebp - 4], 0xa
push dword [ebp - 0x80]
push dword [0x426124]
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
je 0x40cb0e
push dword [ebp - 0x80]
push dword [0x4261e0]
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
je 0x40cb0e
push dword [ebp - 0x80]
push dword [0x42606c]
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
je 0x40cb0e
push dword [ebp - 0x80]
push dword [0x426204]
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
je 0x40cb0e
push dword [ebp - 0x80]
push dword [0x4261c4]
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
je 0x40cb0e
push dword [ebp - 0x80]
push dword [0x4261c0]
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
jne 0x40cd0f
mov dword [ebp - 4], 0xb
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL_rtcGetTimeValue
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x3c]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0xc
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL_rtcFileDateTime
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x3c]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0xd
push 0
push 1
push 1
push 0
lea eax, [ebp - 0x50]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], 3
lea esi, [ebp - 0x60]
push 0
push dword [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], 3
lea esi, [ebp - 0x70]
push 1
push dword [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x50]
push eax
push dword [0x426050]
push dword [0x4261f4]
call fcn.00416c5f
lea eax, [ebp - 0x50]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaFreeStr
mov dword [ebp - 4], 0xe
mov dword [ebp - 0x44], 0x80020004
mov dword [ebp - 0x4c], 0xa
mov dword [ebp - 0x34], 0x80020004
mov dword [ebp - 0x3c], 0xa
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
fldz
push ecx
push ecx
fstp qword [esp]
fldz
push ecx
push ecx
fstp qword [esp]
fldz
push ecx
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL_rtcPMT
fstp qword [ebp - 0x7c]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0xf
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x50]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], 3
lea esi, [ebp - 0x60]
push 0
push dword [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x50]
push eax
push dword [0x4260c0]
push dword [0x4261f4]
call fcn.00416c5f
lea eax, [ebp - 0x50]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaFreeStr
mov dword [ebp - 4], 0x11
call sub.MSVBVM60.DLL_rtcDoEvents
mov dword [ebp - 4], 0x12
jmp 0x40c9eb
mov dword [ebp - 4], 0x13
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL_rtcGetTimeValue
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x3c]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x14
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL_rtcFileDateTime
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x3c]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x15
mov dword [ebp - 0x44], 0x80020004
mov dword [ebp - 0x4c], 0xa
mov dword [ebp - 0x34], 0x80020004
mov dword [ebp - 0x3c], 0xa
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
fldz
push ecx
push ecx
fstp qword [esp]
fldz
push ecx
push ecx
fstp qword [esp]
fldz
push ecx
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL_rtcPMT
fstp qword [ebp - 0x7c]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
wait
push 0x40ce35
jmp 0x40ce13
lea ecx, [ebp - 0x80]
call sub.MSVBVM60.DLL___vbaFreeStr
lea eax, [ebp - 0x8c]
push eax
push 0
call sub.MSVBVM60.DLL___vbaAryDestruct
lea eax, [ebp - 0x28]
push eax
push 0
call sub.MSVBVM60.DLL___vbaAryDestruct
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow