Function at 0x415207
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x403c16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x8c
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401bb0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaStrCopy
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push 0
call fcn.00406b88
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 4
and dword [ebp - 0x88], 0
lea eax, [ebp - 0x88]
push eax
call fcn.00406aec
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 5
lea eax, [ebp - 0x40]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], 0x4008
push 0
push 0x80
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM60.DLL___vbaVar2Vec
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaAryMove
lea ecx, [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 6
push 0
call fcn.00406d50
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 8
push dword [ebp - 0x34]
push 1
call sub.MSVBVM60.DLL___vbaUbound
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 9
push 0
push 0
push 0
push 0
push 0
call fcn.00406cb4
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 1
and dword [ebp - 0x30], 0
jmp 0x41536a
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x8c]
jo 0x415624
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x90]
jg 0x4153bb
mov dword [ebp - 4], 0xb
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaDerefAry1
movzx eax, byte [eax]
mov ecx, dword [ebp - 0x3c]
add ecx, eax
jo 0x415624
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xc
push 0
lea eax, [ebp - 0x50]
push eax
call sub.MSVBVM60.DLL_rtcVarBstrFromAnsi
lea ecx, [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0xd
jmp 0x415358
mov dword [ebp - 4], 0xe
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 1
and dword [ebp - 0x30], 0
jmp 0x4153ed
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x94]
jo 0x415624
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x98]
jg 0x415532
mov dword [ebp - 4], 0xf
push 0
call fcn.00406d50
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x10
mov eax, dword [ebp - 0x24]
add eax, 1
jo 0x415624
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], 3
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.00421b25
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x60]
push eax
call sub.MSVBVM60.DLL___vbaVarMul
push eax
lea eax, [ebp - 0x70]
push eax
call sub.MSVBVM60.DLL___vbaVarInt
push eax
call sub.MSVBVM60.DLL___vbaI4Var
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x11
push 0
push 0
push 0
push 0
push 0
call fcn.00406cb4
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x12
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov al, byte [eax]
mov byte [ebp - 0x38], al
mov dword [ebp - 4], 0x13
push 0
push 0
push 0
push 0
push 0
call fcn.00406c24
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x14
push 0
call sub.MSVBVM60.DLL_rtcFileLocation
mov dword [ebp - 4], 0x15
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov esi, eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov cl, byte [esi]
mov byte [eax], cl
mov dword [ebp - 4], 0x16
push 0
call fcn.00406b88
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x17
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov cl, byte [ebp - 0x38]
mov byte [eax], cl
mov dword [ebp - 4], 0x18
push 0
push 0
call fcn.00406c6c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x19
jmp 0x4153db
mov dword [ebp - 4], 0x1a
push 0
call fcn.00406bcc
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x1b
lea eax, [ebp - 0x34]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], 0x6011
push 0
push 0x40
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x50]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x50]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x1c
push 0
push 0
push 0
push 0
push 0
call fcn.00406c24
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x1d
push 0
push 0
push 0
push 0
push 0
call fcn.00406c24
call sub.MSVBVM60.DLL___vbaSetSystemError
push 0x415610
jmp 0x4155fc
lea eax, [ebp - 0x34]
push eax
push 0
call sub.MSVBVM60.DLL___vbaAryDestruct
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow