Function at 0x442070
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401e76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4013b0
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0xa0], ecx
mov eax, 0x21
cmp si, ax
jg 0x4421ac
movsx edi, si
mov eax, 3
cmp edi, 0x3d
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x80], eax
jb 0x4420ee
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [0x46e27c]
lea ebx, [eax + edi*4]
mov eax, dword [0x46e328]
test eax, eax
jne 0x442114
push 0x46e328
push 0x4084b4
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x46e328]
mov edx, dword [ebp - 0x60]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x58]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x54]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x80]
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [ebp - 0x7c]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x74]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edx
mov edx, esp
mov ecx, 0x4008
push 2
mov dword [edx], ecx
mov ecx, dword [ebp - 0x9c]
push 0x41
push eax
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x94]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov edx, dword [eax]
call dword [edx + 0x344]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallSt]
add esp, 0x3c
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov eax, 1
add ax, si
jo 0x442811
mov esi, eax
xor ecx, ecx
jmp 0x4420c4
cmp word [0x46e0d8], 0xffff
jne 0x44226b
mov eax, dword [0x46e328]
mov edi, 3
cmp eax, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x60], edi
mov esi, 1
mov ebx, 0x40c988
jne 0x4421ed
push 0x46e328
push 0x4084b4
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x46e328]
mov edx, dword [ebp - 0x60]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x58]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x54]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x7c]
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edi
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x74]
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
mov edx, esp
mov ecx, 8
push 2
mov dword [edx], ecx
mov ecx, dword [ebp - 0x9c]
push 0x41
push eax
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x94]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov edx, dword [eax]
call dword [edx + 0x344]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallSt]
add esp, 0x3c
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov ecx, dword [0x46e1ec]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push ecx
push 0x40c9b0
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
mov edx, dword [0x46e014]
push eax
push edx
call esi
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
push eax
push 0x40c9d4
call esi
mov edx, eax
lea ecx, [ebp - 0x2c]
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFileOpen]
push eax
push 1
push 0xffffffffffffffff
push 4
call ebx
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
call dword [sym.imp.MSVBVM60.DLL___vbaFileCloseAll]
mov eax, dword [0x46e1ec]
push eax
push 0x40c9b0
call esi
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
mov ecx, dword [0x46e014]
push eax
push ecx
call esi
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
push eax
push 0x40c9d4
call esi
mov edx, eax
lea ecx, [ebp - 0x2c]
call edi
push eax
push 1
push 0xffffffffffffffff
push 1
call ebx
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
push 1
call dword [sym.imp.MSVBVM60.DLL_rtcEndOfFile]
test ax, ax
jne 0x4424ad
lea edx, [ebp - 0x20]
push 1
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLineInputStr]
mov eax, 2
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x20]
push ecx
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x60]
push 1
lea eax, [ebp - 0x50]
push edx
push eax
mov dword [ebp - 0x60], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x24]
push ecx
push edx
call ebx
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcR8ValFromBstr]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
lea ecx, [ebp - 0x24]
mov esi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x40]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x58], edx
push eax
lea ecx, [ebp - 0x60]
push 4
lea edx, [ebp - 0x50]
push ecx
push edx
movsx esi, si
mov edi, 3
mov dword [ebp - 0x38], 0x80020004
mov dword [ebp - 0x40], 0xa
mov dword [ebp - 0x60], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x24]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcR8ValFromBstr]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov ebx, eax
mov eax, dword [0x46e328]
test eax, eax
jne 0x44241e
push 0x46e328
push 0x4084b4
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x46e328]
mov ecx, dword [ebp - 0x7c]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], edi
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x74]
mov dword [edx + 8], esi
mov dword [edx + 0xc], ecx
mov edx, esp
mov ecx, 3
push 1
mov dword [edx], ecx
mov ecx, dword [ebp - 0x9c]
push 0x39
push eax
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x94]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov edx, dword [eax]
call dword [edx + 0x344]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallSt]
add esp, 0x2c
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x40]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
add esp, 0xc
jmp 0x44232c
call dword [sym.imp.MSVBVM60.DLL___vbaFileCloseAll]
mov ebx, 3
mov eax, 0x20
cmp bx, ax
jg 0x442585
movsx eax, bx
cmp eax, 0x3d
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], 3
jb 0x4424de
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x46e260]
movsx eax, bx
lea edx, [ecx + eax*2]
mov eax, dword [0x46e328]
test eax, eax
mov dword [ebp - 0x78], edx
jne 0x44250b
push 0x46e328
push 0x4084b4
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x46e328]
mov edx, dword [ebp - 0x60]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x58]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x54]
mov dword [ecx + 0xc], edx
mov edx, esp
mov ecx, 0x4002
push 1
mov dword [edx], ecx
mov ecx, dword [ebp - 0x7c]
push 0x38
push eax
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x78]
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x74]
mov dword [edx + 0xc], ecx
mov edx, dword [eax]
call dword [edx + 0x344]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallSt]
add esp, 0x2c
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov eax, 1
add ax, bx
jo 0x442811
mov ebx, eax
jmp 0x4424b8
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov eax, 0x21
cmp cx, ax
jg 0x442661
movsx ebx, cx
cmp ebx, 0x3d
jb 0x4425ab
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x46e244]
cmp word [ecx + ebx*2], 0
jne 0x44264a
mov eax, 3
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x80], eax
mov eax, dword [0x46e328]
xor ebx, ebx
test eax, eax
jne 0x4425ea
push 0x46e328
push 0x4084b4
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x46e328]
mov ecx, dword [ebp - 0x60]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x58]
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x54]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x80]
mov edx, esp
push 1
push 0x39
push eax
mov dword [edx], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x74]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov edx, dword [eax]
call dword [edx + 0x344]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallSt]
add esp, 0x2c
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov eax, 1
add ax, word [ebp - 0x14]
jo 0x442811
mov dword [ebp - 0x14], eax
jmp 0x44258c
mov ecx, dword [0x46e1ec]
push ecx
push 0x40c9b0
call esi
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
mov edx, dword [0x46e014]
push eax
push edx
call esi
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
push eax
push 0x40c9e4
call esi
mov edx, eax
lea ecx, [ebp - 0x2c]
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFileOpen]
push eax
push 1
push 0xffffffffffffffff
push 4
call ebx
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
call dword [sym.imp.MSVBVM60.DLL___vbaFileCloseAll]
mov eax, dword [0x46e1ec]
push eax
push 0x40c9b0
call esi
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
mov ecx, dword [0x46e014]
push eax
push ecx
call esi
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
push eax
push 0x40c9e4
call esi
mov edx, eax
lea ecx, [ebp - 0x2c]
call edi
push eax
push 1
push 0xffffffffffffffff
push 1
call ebx
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
push 1
call dword [sym.imp.MSVBVM60.DLL_rtcEndOfFile]
test ax, ax
jne 0x4427ad
lea edx, [ebp - 0x20]
push 1
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLineInputStr]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcR8ValFromBstr]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov dword [ebp - 0x58], eax
mov eax, dword [0x46e328]
test eax, eax
mov dword [ebp - 0x60], 3
jne 0x44276b
push 0x46e328
push 0x4084b4
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x46e328]
mov edx, dword [ebp - 0x60]
sub esp, 0x10
mov ecx, esp
push 0x21
push eax
mov dword [ecx], edx
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x58]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x54]
mov dword [ecx + 0xc], edx
mov ecx, dword [eax]
call dword [ecx + 0x344]
lea edx, [ebp - 0x30]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdSt]
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
call dword [sym.imp.MSVBVM60.DLL___vbaFileCloseAll]
wait
push 0x442800
jmp 0x4427ef
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x20]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop