Function at 0x40afb3
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], 0x401978
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 - 0x48], 0x80020004
mov dword [ebp - 0x50], 0xa
mov dword [ebp - 0x38], 0x80020004
mov dword [ebp - 0x40], 0xa
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
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 - 0x80]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 4
push 0x426254
push 0
call sub.MSVBVM60.DLL___vbaErase
mov dword [ebp - 4], 5
mov dword [ebp - 0x48], 0x80020004
mov dword [ebp - 0x50], 0xa
mov dword [ebp - 0x38], 0x80020004
mov dword [ebp - 0x40], 0xa
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
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 - 0x80]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 6
and word [ebp - 0x28], 0
mov dword [ebp - 4], 7
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MSVBVM60.DLL_rtcFileDateTime
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 8
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x54]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
lea eax, [ebp - 0x54]
push eax
push dword [0x4260fc]
push dword [0x4261f4]
call fcn.00416c5f
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x54]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 9
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MSVBVM60.DLL_rtcFileDateTime
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0xa
mov word [ebp - 0x88], 0x19
mov word [ebp - 0x84], 1
and word [ebp - 0x24], 0
jmp 0x40b1bd
mov ax, word [ebp - 0x24]
add ax, word [ebp - 0x84]
jo 0x40b408
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
cmp ax, word [ebp - 0x88]
jg 0x40b3ca
mov dword [ebp - 4], 0xb
call sub.MSVBVM60.DLL_rtcDoEvents
mov dword [ebp - 4], 0xc
movsx eax, word [ebp - 0x24]
mov dword [ebp - 0xa0], eax
fild dword [ebp - 0xa0]
push ecx
push ecx
fstp qword [esp]
fld qword [0x4019f8]
push ecx
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL___vbaPowerR8
call sub.MSVBVM60.DLL___vbaFpI2
movsx eax, ax
mov ecx, dword [ebp - 0x2c]
and ecx, eax
call sub.MSVBVM60.DLL___vbaI2I4
movsx eax, ax
test eax, eax
je 0x40b38c
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x48], 0x80020004
mov dword [ebp - 0x50], 0xa
mov dword [ebp - 0x38], 0x80020004
mov dword [ebp - 0x40], 0xa
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
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 - 0x80]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0xe
push 0
movsx eax, word [ebp - 0x28]
push eax
push 1
push 8
push 0x426254
push 4
push 0x180
call sub.MSVBVM60.DLL___vbaRedimPreserve
add esp, 0x1c
mov dword [ebp - 4], 0xf
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MSVBVM60.DLL_rtcFileDateTime
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x10
mov ax, word [ebp - 0x24]
add ax, 0x41
jo 0x40b408
movsx eax, ax
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MSVBVM60.DLL_rtcVarBstrFromAnsi
lea eax, [ebp - 0x40]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrMove
mov esi, eax
movsx eax, word [ebp - 0x28]
push eax
push dword [0x426254]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x11
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MSVBVM60.DLL_rtcFileDateTime
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x12
mov ax, word [ebp - 0x28]
add ax, 1
jo 0x40b408
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0x13
call sub.MSVBVM60.DLL_rtcDoEvents
mov dword [ebp - 4], 0x15
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MSVBVM60.DLL_rtcFileDateTime
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x16
jmp 0x40b1a8
wait
push 0x40b3f9
jmp 0x40b3f8
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow