Function at 0x40bf82
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x401686
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d8
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401400
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
push 0x3e
lea edi, [ebp - 0x154]
pop ecx
mov edx, dword [ebp + 0xc]
and byte [ebp - 0x50], al
push 0x10
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x1a8]
rep stosd dword es:[edi], eax
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x1b8], ebx
mov dword [ebp - 0x1bc], ebx
mov dword [ebp - 0x1cc], ebx
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVBVM60.DLL_VarPtr
push 0x40
push dword [ebp + 8]
push eax
call fcn.0040cf59
cmp word [ebp - 0x1a8], 0x5a4d
jne 0x40c292
lea eax, [ebp - 0x154]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov ecx, dword [ebp - 0x16c]
push 0xf8
add ecx, dword [ebp + 8]
jo 0x40c2db
push ecx
push eax
call fcn.0040cf59
cmp dword [ebp - 0x154], 0x4550
jne 0x40c292
lea eax, [ebp - 0x4c]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov ecx, dword [ebp - 0xdc]
push 0x28
add ecx, dword [ebp + 8]
jo 0x40c2db
push ecx
push eax
call fcn.0040cf59
mov esi, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xd8]
add esi, dword [ebp + 8]
push ebx
push 0x80
mov dword [ebp - 0x1cc], 0x4008
jo 0x40c2db
add eax, esi
jo 0x40c2db
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1b8]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x1bc]
push eax
call sub.MSVBVM60.DLL___vbaVar2Vec
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x58]
push eax
call sub.MSVBVM60.DLL___vbaAryMove
lea ecx, [ebp - 0x1b8]
call sub.MSVBVM60.DLL___vbaFreeVar
push dword [ebp - 0x58]
push 1
call sub.MSVBVM60.DLL___vbaUbound
mov edi, dword [ebp - 0x120]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x34]
sub eax, 1
jo 0x40c2db
mov dword [ebp - 0x1dc], eax
cmp ebx, eax
jg 0x40c292
lea eax, [ebp - 0x158]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
add ecx, edi
push 4
jo 0x40c2db
imul edx, edx, 4
jo 0x40c2db
add ecx, edx
jo 0x40c2db
push ecx
push eax
call fcn.0040cf59
and dword [ebp - 0x54], 0
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x168]
jg 0x40c1c5
lea eax, [ebp - 0x50]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov ecx, edi
push 1
add ecx, dword [ebp - 0x158]
jo 0x40c2db
add ecx, dword [ebp - 0x1c]
jo 0x40c2db
push ecx
push eax
call fcn.0040cf59
push dword [ebp - 0x1c]
push dword [ebp - 0x58]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov cl, byte [ebp - 0x50]
cmp cl, byte [eax]
jne 0x40c1c1
push 1
pop eax
add eax, dword [ebp - 0x1c]
jo 0x40c2db
mov dword [ebp - 0x1c], eax
jmp 0x40c16a
or dword [ebp - 0x54], 0xffffffff
cmp word [ebp - 0x54], 0
je 0x40c1e4
push 1
pop eax
add eax, ebx
jo 0x40c2db
mov ebx, eax
mov eax, dword [ebp - 0x1dc]
jmp 0x40c127
lea eax, [ebp - 0x15c]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov ecx, dword [ebp - 0x28]
push 2
add ecx, edi
jo 0x40c2db
imul ebx, ebx, 2
jo 0x40c2db
add ecx, ebx
jo 0x40c2db
push ecx
push eax
call fcn.0040cf59
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x15c]
add ecx, edi
push 4
jo 0x40c2db
imul edx, edx, 4
jo 0x40c2db
add ecx, edx
jo 0x40c2db
push ecx
push eax
call fcn.0040cf59
add edi, dword [ebp - 0x5c]
jo 0x40c2db
cmp edi, esi
mov dword [ebp - 0x24], edi
jl 0x40c292
cmp edi, dword [ebp - 0x20]
jg 0x40c292
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1b8]
push edi
push eax
call 0x40c2e0
lea ecx, [ebp - 0x1b8]
call sub.MSVBVM60.DLL___vbaFreeVar
cmp dword [ebp + 8], 0
je 0x40c292
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0040bf82
mov dword [ebp - 0x24], eax
push 0x40c2c7
jmp 0x40c2b3
lea ecx, [ebp - 0x18]
call sub.MSVBVM60.DLL___vbaFreeStr
lea eax, [ebp - 0x58]
push eax
push 0
call sub.MSVBVM60.DLL___vbaAryDestruct
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow
push ebp
mov ebp, esp
sub esp, 0x18
push 0x401686
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], 0x401410
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], 4
lea eax, [ebp - 0x30]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0xa8], eax
push 1
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x28]
jo 0x40c572
push eax
push dword [ebp - 0xa8]
call fcn.0040cf59
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x28]
add eax, 1
jo 0x40c572
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 6
movzx eax, byte [ebp - 0x30]
test eax, eax
jne 0x40c38a
jmp 0x40c3c5
mov dword [ebp - 4], 9
push dword [ebp - 0x2c]
movzx eax, byte [ebp - 0x30]
push eax
call sub.MSVBVM60.DLL_rtcBstrFromAnsi
mov edx, eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
jmp 0x40c333
mov dword [ebp - 4], 0xb
and dword [ebp - 0x8c], 0
mov dword [ebp - 0x94], 2
mov dword [ebp - 0x7c], 0x404e84
mov dword [ebp - 0x84], 8
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaVarDup
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM60.DLL_rtcSplit
push 0x10
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
lea esi, [ebp - 0x94]
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 1
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM60.DLL___vbaVarIndexLoad
add esp, 0x1c
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 3
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0x10
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x24]
push eax
call fcn.0040c577
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0x94], 2
mov dword [ebp - 0x7c], 0x404e84
mov dword [ebp - 0x84], 8
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaVarDup
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM60.DLL_rtcSplit
push 0x10
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
lea esi, [ebp - 0x94]
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 1
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM60.DLL___vbaVarIndexLoad
add esp, 0x1c
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
mov ecx, dword [ebp + 0x14]
call sub.MSVBVM60.DLL___vbaStrMove
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 3
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0x10
push 0x40c554
jmp 0x40c543
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow