Function at 0x41018f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x402ff6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, pe_nt_image_headers32
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4021e8
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 - 0x78], 0x403ebc
mov dword [ebp - 0x80], 8
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x5c]
call sub.MSVBVM60.DLL___vbaVarDup
lea eax, [ebp - 0x5c]
push eax
push 0xff
call sub.MSVBVM60.DLL_rtcStringBstr
mov edx, eax
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x5c]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 4
push 0
push 1
push 1
push 0
lea eax, [ebp - 0x70]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
mov word [ebp - 0xb4], 0xff
lea eax, [ebp - 0xb4]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x80], 3
lea esi, [ebp - 0x80]
push 0
push dword [ebp - 0x70]
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 - 0x88], eax
mov dword [ebp - 0x90], 3
lea esi, [ebp - 0x90]
push 1
push dword [ebp - 0x70]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x70]
push eax
push dword [0x41c194]
push dword [0x41c1b8]
call fcn.0040b133
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x70]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 5
mov dword [ebp - 0xc4], 0x64
mov dword [ebp - 0xc0], 1
mov dword [ebp - 0x2c], 1
jmp 0x41030f
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0xc0]
jo 0x41079c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0xc4]
jg 0x41074c
mov dword [ebp - 4], 6
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x80], 0x4008
push 1
push dword [ebp - 0x4c]
push 0x403ebc
push 0
call sub.MSVBVM60.DLL___vbaInStr
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM60.DLL_rtcLeftCharVar
mov dword [ebp - 0x88], 0x403ebc
mov dword [ebp - 0x90], 0x8008
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x90]
push eax
call sub.MSVBVM60.DLL___vbaVarTstEq
mov word [ebp - 0xbc], ax
lea ecx, [ebp - 0x5c]
call sub.MSVBVM60.DLL___vbaFreeVar
movsx eax, word [ebp - 0xbc]
test eax, eax
je 0x410394
jmp 0x41074c
mov dword [ebp - 4], 9
push 1
push dword [ebp - 0x4c]
push 0x403ebc
push 0
call sub.MSVBVM60.DLL___vbaInStr
sub eax, 1
jo 0x41079c
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 - 0x70]
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 - 0x78], eax
mov dword [ebp - 0x80], 3
lea esi, [ebp - 0x80]
push 0
push dword [ebp - 0x70]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x70]
push eax
push dword [0x41c18c]
push dword [0x41c1b8]
call fcn.0040b133
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x70]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
cmp dword [ebp - 0xb8], 2
jne 0x4106c5
mov dword [ebp - 4], 0xb
push 0
push 3
push 1
push 0
lea eax, [ebp - 0x70]
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 - 0x78], eax
mov dword [ebp - 0x80], 3
lea esi, [ebp - 0x80]
push 0
push dword [ebp - 0x70]
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 - 0x88], eax
mov dword [ebp - 0x90], 3
lea esi, [ebp - 0x90]
push 1
push dword [ebp - 0x70]
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 - 0x98], eax
mov dword [ebp - 0xa0], 3
lea esi, [ebp - 0xa0]
push 2
push dword [ebp - 0x70]
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 - 0xa8], eax
mov dword [ebp - 0xb0], 3
lea esi, [ebp - 0xb0]
push 3
push dword [ebp - 0x70]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x70]
push eax
push dword [0x41c190]
push dword [0x41c1b8]
call fcn.0040b133
lea eax, [ebp - 0x70]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov dword [ebp - 4], 0xc
push dword [ebp - 0x44]
push dword [ebp - 0x48]
fldz
call sub.MSVBVM60.DLL___vbaFpCmpCy
test eax, eax
je 0x4105c5
mov dword [ebp - 4], 0xd
mov eax, dword [ebp + 8]
cmp word [eax], 0xffff
jne 0x41057f
mov dword [ebp - 4], 0xe
lea eax, [ebp - 0x40]
push eax
call fcn.00413d6b
jmp 0x4105c5
mov dword [ebp - 4], 0x10
lea eax, [ebp - 0x40]
push eax
call fcn.0040d4ad
mov dword [ebp - 4], 0x11
push 0x2326
push 0x1ef8
call fcn.00403b60
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x12
push 0x79c
push 0x75c
call fcn.00403b60
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x15
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x70]
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 - 0x78], eax
mov dword [ebp - 0x80], 3
lea esi, [ebp - 0x80]
push 0
push dword [ebp - 0x70]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x70]
push eax
push dword [0x41c18c]
push dword [0x41c1b8]
call fcn.0040b133
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x70]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
cmp dword [ebp - 0xb8], 4
jne 0x4106c5
mov dword [ebp - 4], 0x16
mov eax, dword [ebp + 8]
cmp word [eax], 0xffff
jne 0x41069a
mov dword [ebp - 4], 0x17
lea eax, [ebp - 0x40]
push eax
call fcn.00413d6b
mov dword [ebp - 4], 0x18
push 0x158
push 0x1875
call fcn.00403b60
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x19
push 0x16b8
push 0x112b
call fcn.00403b60
call sub.MSVBVM60.DLL___vbaSetSystemError
jmp 0x4106c5
mov dword [ebp - 4], 0x1b
lea eax, [ebp - 0x40]
push eax
call fcn.0040d4ad
mov dword [ebp - 4], 0x1c
push 0x270a
push 0x25d8
call fcn.00403b60
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x20
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x80], 0x4008
push dword [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaLenBstr
mov esi, eax
push 1
push dword [ebp - 0x4c]
push 0x403ebc
push 0
call sub.MSVBVM60.DLL___vbaInStr
sub esi, eax
jo 0x41079c
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM60.DLL_rtcRightCharVar
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x5c]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x21
push 0xffe
push 0x185b
call fcn.00403b60
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x22
jmp 0x4102fd
wait
push 0x41078b
jmp 0x410772
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