Function at 0x42019d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x404106
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x9c
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x402cf0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
push 0x11
push 0x406c3c
lea eax, [ebp - 0x4c]
push eax
call sub.MSVBVM60.DLL___vbaAryConstruct2
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push 0
call fcn.004066dc
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 4
mov eax, dword [0x444574]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x70], 8
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaVarCopy
mov dword [ebp - 4], 5
cmp dword [0x444b90], 0
jne 0x42025f
push 0x444b90
push 0x406860
call sub.MSVBVM60.DLL___vbaNew2
mov dword [ebp - 0xb0], 0x444b90
jmp 0x420269
mov dword [ebp - 0xb0], 0x444b90
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
push dword [ebp - 0x8c]
call dword [eax + 0x1c]
fnclex
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jge 0x4202bd
push 0x1c
push 0x406850
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
call sub.MSVBVM60.DLL___vbaHresultCheckObj
mov dword [ebp - 0xb4], eax
jmp 0x4202c4
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x68], 0x80020004
mov dword [ebp - 0x70], 0xa
push 0x10
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
lea esi, [ebp - 0x70]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
call sub.MSVBVM60.DLL___vbaStrI2
mov edx, eax
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
push dword [ebp - 0x94]
call dword [eax + 0x60]
fnclex
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jge 0x420340
push 0x60
push 0x406870
push dword [ebp - 0x94]
push dword [ebp - 0x98]
call sub.MSVBVM60.DLL___vbaHresultCheckObj
mov dword [ebp - 0xb8], eax
jmp 0x420347
and dword [ebp - 0xb8], 0
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x5c]
call sub.MSVBVM60.DLL___vbaFreeObj
mov dword [ebp - 4], 6
push 0
push 1
push 1
push 0
lea eax, [ebp - 0x60]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
and dword [ebp - 0x8c], 0
cmp dword [ebp - 0x8c], 0x201
jae 0x420395
and dword [ebp - 0xbc], 0
jmp 0x4203a0
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x8c]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x70], 3
lea esi, [ebp - 0x70]
push 0
push dword [ebp - 0x60]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
mov word [ebp - 0x84], 0x200
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x80], 3
lea esi, [ebp - 0x80]
push 1
push dword [ebp - 0x60]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x60]
push eax
push 0x44429c
lea eax, [ebp - 0x58]
push eax
call sub.MSVBVM60.DLL___vbaStrVarVal
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.MSVBVM60.DLL___vbaStrVarVal
push eax
call fcn.004285b1
lea eax, [ebp - 0x60]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
mov dword [ebp - 4], 7
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x70], 0x2011
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x80], 0x2011
push 1
lea eax, [ebp - 0x70]
push eax
call sub.MSVBVM60.DLL___vbaStrVarCopy
mov edx, eax
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x406c34
push 0
call sub.MSVBVM60.DLL___vbaInStr
sub eax, 1
jo 0x420557
push eax
lea eax, [ebp - 0x80]
push eax
call sub.MSVBVM60.DLL___vbaStrVarCopy
mov edx, eax
lea ecx, [ebp - 0x58]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL_rtcLeftCharBstr
mov edx, eax
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
mov dword [ebp - 4], 8
call sub.GDI32.DLL_GdiGetBatchLimit
mov dword [ebp - 4], 9
call fcn.004067cc
call sub.MSVBVM60.DLL___vbaSetSystemError
push 0x420545
jmp 0x420525
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeVar
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
push eax
push 0
call sub.MSVBVM60.DLL___vbaAryDestruct
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow