Function at 0x4168dd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4037c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xcc
call sub.MSVBVM50.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401858
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
mov dword [ebp - 0x6c], 0x80020004
mov dword [ebp - 0x74], 0xa
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM50.DLL_rtcFreeFile
mov word [ebp - 0x50], ax
lea ecx, [ebp - 0x74]
call sub.MSVBVM50.DLL___vbaFreeVar
mov dword [ebp - 4], 3
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM50.DLL_rtcGetPresentDate
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM50.DLL___vbaDateVar
fstp qword [ebp - 0x58]
lea ecx, [ebp - 0x74]
call sub.MSVBVM50.DLL___vbaFreeVar
mov dword [ebp - 4], 4
mov edx, 0x406a8c
lea ecx, [ebp - 0x2c]
call sub.MSVBVM50.DLL___vbaStrCopy
mov dword [ebp - 4], 5
and word [ebp - 0x28], 0
mov dword [ebp - 4], 6
push 0x1b
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM50.DLL_rtcVarBstrFromAnsi
push 0x46
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL_rtcVarBstrFromAnsi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x94]
push eax
call sub.MSVBVM50.DLL___vbaVarAdd
push eax
call sub.MSVBVM50.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x60]
call sub.MSVBVM50.DLL___vbaStrMove
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
push 3
call sub.MSVBVM50.DLL___vbaFreeVarList
add esp, 0x10
mov dword [ebp - 4], 7
mov edx, 0x408570
lea ecx, [ebp - 0x3c]
call sub.MSVBVM50.DLL___vbaStrCopy
mov dword [ebp - 4], 8
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0x50]
push 0xffffffffffffffff
push 1
call sub.MSVBVM50.DLL___vbaFileOpen
mov dword [ebp - 4], 9
and dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xa
push dword [ebp - 0x50]
call sub.MSVBVM50.DLL_rtcFileLength
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fstp qword [ebp - 0x44]
mov dword [ebp - 4], 0xb
push 1
push 1
push 1
push 0x405ff4
push 0x441068
push 0x14
push 0
call sub.MSVBVM50.DLL___vbaRedim
add esp, 0x1c
mov dword [ebp - 4], 0xc
mov word [ebp - 0xc8], 0x64
push dword [ebp + 0x10]
lea eax, [ebp - 0xc8]
push eax
push dword [ebp + 0xc]
call fcn.0042b285
mov dword [ebp - 4], 0xd
push dword [ebp - 0x50]
call sub.MSVBVM50.DLL_rtcEndOfFile
movsx eax, ax
test eax, eax
jne 0x4172c1
mov dword [ebp - 4], 0xe
push dword [ebp - 0x50]
lea eax, [ebp - 0x2c]
push eax
call sub.MSVBVM50.DLL___vbaLineInputStr
mov dword [ebp - 4], 0xf
push dword [ebp - 0x50]
call sub.MSVBVM50.DLL_rtcEndOfFile
movsx eax, ax
test eax, eax
jne 0x416b62
mov dword [ebp - 4], 0x10
push 0xffffffffffffffff
call sub.MSVBVM50.DLL___vbaOnError
mov dword [ebp - 4], 0x11
push dword [ebp - 0x50]
call sub.MSVBVM50.DLL_rtcFileSeek
imul eax, eax, 0x64
jo 0x4173a3
mov dword [ebp - 0xe4], eax
fild dword [ebp - 0xe4]
fstp qword [ebp - 0xec]
fld qword [ebp - 0xec]
cmp dword [section..data], 0
jne 0x416ae2
fdiv qword [ebp - 0x44]
jmp 0x416aed
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call sub.MSVBVM50.DLL__adj_fdiv_m64
fstp qword [ebp - 0xac]
fnstsw ax
test al, 0xd
jne 0x41739e
mov dword [ebp - 0xb4], 5
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0xb4]
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 0x4085b8
push 0
push 0x4085a0
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL___vbaLateMemCallLd
add esp, 0x10
push eax
call sub.MSVBVM50.DLL___vbaObjVar
push eax
call sub.MSVBVM50.DLL___vbaLateMemSt
lea ecx, [ebp - 0x84]
call sub.MSVBVM50.DLL___vbaFreeVar
mov dword [ebp - 4], 0x12
push 0
call sub.MSVBVM50.DLL___vbaOnError
jmp 0x416bc8
mov dword [ebp - 4], 0x14
mov dword [ebp - 0xac], 0x64
mov dword [ebp - 0xb4], 2
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0xb4]
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 0x4085b8
push 0
push 0x4085a0
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL___vbaLateMemCallLd
add esp, 0x10
push eax
call sub.MSVBVM50.DLL___vbaObjVar
push eax
call sub.MSVBVM50.DLL___vbaLateMemSt
lea ecx, [ebp - 0x84]
call sub.MSVBVM50.DLL___vbaFreeVar
mov dword [ebp - 4], 0x16
push 1
push dword [ebp - 0x2c]
push dword [ebp - 0x60]
push 0
call sub.MSVBVM50.DLL___vbaInStr
test eax, eax
jle 0x416d28
mov dword [ebp - 4], 0x17
push 1
push dword [ebp - 0x2c]
push dword [ebp - 0x60]
push 0
call sub.MSVBVM50.DLL___vbaInStr
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0x18
cmp dword [ebp - 0x24], 1
jne 0x416c68
mov dword [ebp - 4], 0x19
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb4], 0x4008
push dword [ebp - 0x2c]
call sub.MSVBVM50.DLL___vbaLenBstr
sub eax, 2
jo 0x4173a3
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM50.DLL_rtcRightCharVar
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM50.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM50.DLL___vbaStrMove
lea ecx, [ebp - 0x74]
call sub.MSVBVM50.DLL___vbaFreeVar
jmp 0x416d23
mov dword [ebp - 4], 0x1b
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb4], 0x4008
mov eax, dword [ebp - 0x24]
sub eax, 1
jo 0x4173a3
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM50.DLL_rtcLeftCharVar
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc4], 0x4008
push dword [ebp - 0x2c]
call sub.MSVBVM50.DLL___vbaLenBstr
sub eax, dword [ebp - 0x24]
jo 0x4173a3
sub eax, 1
jo 0x4173a3
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL_rtcRightCharVar
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x94]
push eax
call sub.MSVBVM50.DLL___vbaVarAdd
push eax
call sub.MSVBVM50.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM50.DLL___vbaStrMove
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
push 3
call sub.MSVBVM50.DLL___vbaFreeVarList
add esp, 0x10
jmp 0x416bc8
mov dword [ebp - 4], 0x1e
push 1
push dword [ebp - 0x2c]
push dword [ebp - 0x3c]
push 0
call sub.MSVBVM50.DLL___vbaInStr
test eax, eax
je 0x416ea9
mov dword [ebp - 4], 0x1f
or word [ebp - 0x28], 0xffff
mov dword [ebp - 4], 0x20
and word [0x441058], 0
mov dword [ebp - 4], 0x21
push 1
push 1
push 1
push 0x405ff4
push 0x441068
push 0x14
push 0
call sub.MSVBVM50.DLL___vbaRedim
add esp, 0x1c
mov dword [ebp - 4], 0x22
mov dword [ebp - 0x6c], 0xe
mov dword [ebp - 0x74], 2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb4], 0x4008
lea eax, [ebp - 0x74]
push eax
push 1
push dword [ebp - 0x2c]
push dword [ebp - 0x3c]
push 0
call sub.MSVBVM50.DLL___vbaInStr
mov esi, eax
push dword [ebp - 0x3c]
call sub.MSVBVM50.DLL___vbaLenBstr
add esi, eax
jo 0x4173a3
push esi
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL_rtcMidCharVar
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x94]
push eax
call sub.MSVBVM50.DLL_rtcUpperCaseVar
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xa4]
push eax
call sub.MSVBVM50.DLL_rtcTrimVar
lea eax, [ebp - 0xa4]
push eax
call sub.MSVBVM50.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaStrMove
mov edx, eax
mov ecx, 0x441048
call sub.MSVBVM50.DLL___vbaStrCopy
lea ecx, [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaFreeStr
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
push 4
call sub.MSVBVM50.DLL___vbaFreeVarList
add esp, 0x14
mov dword [ebp - 4], 0x23
mov edx, 0x4085c8
mov ecx, 0x44104c
call sub.MSVBVM50.DLL___vbaStrCopy
mov dword [ebp - 4], 0x24
mov edx, 0x406a8c
mov ecx, 0x441050
call sub.MSVBVM50.DLL___vbaStrCopy
mov dword [ebp - 4], 0x25
mov edx, 0x406a8c
mov ecx, 0x441054
call sub.MSVBVM50.DLL___vbaStrCopy
mov dword [ebp - 4], 0x26
fldz
fstp qword [0x44105c]
mov dword [ebp - 4], 0x28
cmp word [ebp - 0x28], 0xffff
jne 0x4172bc
mov dword [ebp - 4], 0x29
push 1
push dword [ebp - 0x2c]
push 0x4085e0
push 0
call sub.MSVBVM50.DLL___vbaInStr
test eax, eax
jle 0x416f42
mov dword [ebp - 4], 0x2a
and word [ebp - 0x28], 0
mov dword [ebp - 4], 0x2b
mov eax, dword [ebp - 0x38]
add eax, 1
jo 0x4173a3
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0x2c
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00426bad
mov dword [ebp - 4], 0x2d
and word [0x441058], 0
mov dword [ebp - 4], 0x2e
push 1
push 1
push 1
push 0x405ff4
push 0x441068
push 0x14
push 0
call sub.MSVBVM50.DLL___vbaRedim
add esp, 0x1c
jmp 0x4172bc
mov dword [ebp - 4], 0x30
mov dword [ebp - 0x6c], 0xc
mov dword [ebp - 0x74], 2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb4], 0x4008
lea eax, [ebp - 0x74]
push eax
push 0x42
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL_rtcMidCharVar
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x94]
push eax
call sub.MSVBVM50.DLL_rtcTrimVar
lea eax, [ebp - 0x94]
push eax
call sub.MSVBVM50.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x5c]
call sub.MSVBVM50.DLL___vbaStrMove
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
push 3
call sub.MSVBVM50.DLL___vbaFreeVarList
add esp, 0x10
mov dword [ebp - 4], 0x31
fldz
fstp qword [ebp - 0x34]
mov dword [ebp - 4], 0x32
push 0xffffffffffffffff
call sub.MSVBVM50.DLL___vbaOnError
mov dword [ebp - 4], 0x33
push 1
push dword [ebp - 0x5c]
push 0x4077ac
push 0
call sub.MSVBVM50.DLL___vbaInStr
test eax, eax
jle 0x41703f
mov dword [ebp - 4], 0x34
lea eax, [ebp - 0x5c]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb4], 0x4008
lea eax, [ebp - 0xb4]
push eax
call sub.MSVBVM50.DLL_rtcIsNumeric
movsx eax, ax
test eax, eax
je 0x41703d
mov dword [ebp - 4], 0x35
push dword [ebp - 0x5c]
call sub.MSVBVM50.DLL___vbaR8Str
fstp qword [ebp - 0x34]
jmp 0x417051
mov dword [ebp - 4], 0x38
push dword [ebp - 0x5c]
call sub.MSVBVM50.DLL_rtcR8ValFromBstr
fstp qword [ebp - 0x34]
mov dword [ebp - 4], 0x3a
push 0
call sub.MSVBVM50.DLL___vbaOnError
mov dword [ebp - 4], 0x3b
fld qword [ebp - 0x34]
fcomp qword [0x4019a8]
fnstsw ax
sahf
jbe 0x4172bc
mov dword [ebp - 4], 0x3c
push dword [0x441068]
push 1
call sub.MSVBVM50.DLL___vbaUbound
mov ecx, eax
call sub.MSVBVM50.DLL___vbaI2I4
mov word [0x441058], ax
mov dword [ebp - 4], 0x3d
push dword [0x441068]
push 1
call sub.MSVBVM50.DLL___vbaUbound
mov ecx, eax
call sub.MSVBVM50.DLL___vbaI2I4
mov si, ax
movsx eax, word [0x441058]
push eax
push dword [0x441068]
call sub.MSVBVM50.DLL___vbaDerefAry1
mov word [eax], si
mov dword [ebp - 4], 0x3e
mov dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x74], 2
lea eax, [ebp - 0x74]
push eax
push 0x30
push dword [ebp - 0x2c]
call sub.MSVBVM50.DLL_rtcMidCharBstr
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], 8
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x94]
push eax
call sub.MSVBVM50.DLL_rtcUpperCaseVar
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xa4]
push eax
call sub.MSVBVM50.DLL_rtcTrimVar
lea eax, [ebp - 0xa4]
push eax
call sub.MSVBVM50.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaStrMove
mov esi, eax
movsx eax, word [0x441058]
push eax
push dword [0x441068]
call sub.MSVBVM50.DLL___vbaDerefAry1
mov ecx, eax
add ecx, 4
mov edx, esi
call sub.MSVBVM50.DLL___vbaStrCopy
lea ecx, [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaFreeStr
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
push 4
call sub.MSVBVM50.DLL___vbaFreeVarList
add esp, 0x14
mov dword [ebp - 4], 0x3f
mov esi, 0x407114
movsx eax, word [0x441058]
push eax
push dword [0x441068]
call sub.MSVBVM50.DLL___vbaDerefAry1
mov ecx, eax
add ecx, 8
mov edx, esi
call sub.MSVBVM50.DLL___vbaStrCopy
mov dword [ebp - 4], 0x40
mov dword [ebp - 0xbc], 0x408620
mov dword [ebp - 0xc4], 8
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0x74]
call sub.MSVBVM50.DLL___vbaVarDup
lea eax, [ebp - 0x34]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb4], 0x4005
push 1
push 1
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL_rtcVarFromFormatVar
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL___vbaR8ErrVar
movsx eax, word [0x441058]
push eax
push dword [0x441068]
call sub.MSVBVM50.DLL___vbaDerefAry1
fstp qword [eax + 0xc]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
push 3
call sub.MSVBVM50.DLL___vbaFreeVarList
add esp, 0x10
mov dword [ebp - 4], 0x41
movsx eax, word [0x441058]
push eax
push dword [0x441068]
call sub.MSVBVM50.DLL___vbaDerefAry1
fld qword [0x44105c]
fadd qword [eax + 0xc]
fstp qword [0x44105c]
fnstsw ax
test al, 0xd
jne 0x41739e
mov dword [ebp - 4], 0x42
push dword [0x441068]
push 1
call sub.MSVBVM50.DLL___vbaLbound
push eax
push dword [0x441068]
push 1
call sub.MSVBVM50.DLL___vbaUbound
add eax, 1
jo 0x4173a3
push eax
push 1
push 0x405ff4
push 0x441068
push 0x14
push 0
call sub.MSVBVM50.DLL___vbaRedimPreserve
add esp, 0x1c
jmp 0x416a4f
mov dword [ebp - 4], 0x47
push dword [ebp - 0x50]
call sub.MSVBVM50.DLL___vbaFileClose
mov dword [ebp - 4], 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb4], 0x4008
lea eax, [ebp - 0xb4]
push eax
call sub.MSVBVM50.DLL_rtcKillFiles
mov dword [ebp - 4], 0x49
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM50.DLL_rtcGetPresentDate
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM50.DLL___vbaDateVar
fstp qword [ebp - 0x4c]
lea ecx, [ebp - 0x74]
call sub.MSVBVM50.DLL___vbaFreeVar
mov dword [ebp - 4], 0x4a
push dword [ebp + 0x10]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xc]
call fcn.0042ad13
wait
push 0x41738d
jmp 0x41736c
lea ecx, [ebp - 0x2c]
call sub.MSVBVM50.DLL___vbaFreeStr
lea ecx, [ebp - 0x3c]
call sub.MSVBVM50.DLL___vbaFreeStr
lea ecx, [ebp - 0x5c]
call sub.MSVBVM50.DLL___vbaFreeStr
lea ecx, [ebp - 0x60]
call sub.MSVBVM50.DLL___vbaFreeStr
ret
jmp 0x4037cc
call sub.MSVBVM50.DLL___vbaErrorOverflow