Function at 0x4236a7
Capabilities:
Reference sql statements

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, 0xb4
call sub.MSVBVM50.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x402380
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
mov dword [ebp - 0x5c], 0x80020004
mov dword [ebp - 0x64], 0xa
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM50.DLL_rtcFreeFile
mov word [ebp - 0x48], ax
lea ecx, [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaFreeVar
mov dword [ebp - 4], 3
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM50.DLL_rtcGetPresentDate
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM50.DLL___vbaDateVar
fstp qword [ebp - 0x50]
lea ecx, [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaFreeVar
mov dword [ebp - 4], 4
mov edx, 0x406a8c
lea ecx, [ebp - 0x30]
call sub.MSVBVM50.DLL___vbaStrCopy
mov dword [ebp - 4], 5
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0x48]
push 0xffffffffffffffff
push 1
call sub.MSVBVM50.DLL___vbaFileOpen
mov dword [ebp - 4], 6
and dword [ebp - 0x34], 0
mov dword [ebp - 4], 7
push dword [ebp - 0x48]
call sub.MSVBVM50.DLL_rtcFileLength
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fstp qword [ebp - 0x3c]
mov dword [ebp - 4], 8
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], 9
mov word [ebp - 0xa8], 0x64
push dword [ebp + 0x10]
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0xc]
call fcn.0042b285
mov dword [ebp - 4], 0xa
push dword [ebp - 0x48]
call sub.MSVBVM50.DLL_rtcEndOfFile
movsx eax, ax
test eax, eax
jne 0x4241a4
mov dword [ebp - 4], 0xb
push dword [ebp - 0x48]
lea eax, [ebp - 0x30]
push eax
call sub.MSVBVM50.DLL___vbaLineInputStr
mov dword [ebp - 4], 0xc
push dword [ebp - 0x48]
call sub.MSVBVM50.DLL_rtcEndOfFile
movsx eax, ax
test eax, eax
jne 0x4238e1
mov dword [ebp - 4], 0xd
push 0xffffffffffffffff
call sub.MSVBVM50.DLL___vbaOnError
mov dword [ebp - 4], 0xe
push dword [ebp - 0x48]
call sub.MSVBVM50.DLL_rtcFileSeek
imul eax, eax, 0x64
jo 0x424277
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fstp qword [ebp - 0xd4]
fld qword [ebp - 0xd4]
cmp dword [section..data], 0
jne 0x423867
fdiv qword [ebp - 0x3c]
jmp 0x423872
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call sub.MSVBVM50.DLL__adj_fdiv_m64
fstp qword [ebp - 0x8c]
fnstsw ax
test al, 0xd
jne 0x424272
mov dword [ebp - 0x94], 5
push 0x10
pop eax
call sub.MSVBVM50.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 0x4085b8
push 0
push 0x4085a0
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x74]
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 - 0x74]
call sub.MSVBVM50.DLL___vbaFreeVar
mov dword [ebp - 4], 0xf
push 0
call sub.MSVBVM50.DLL___vbaOnError
jmp 0x423941
mov dword [ebp - 4], 0x11
mov dword [ebp - 0x8c], 0x64
mov dword [ebp - 0x94], 2
push 0x10
pop eax
call sub.MSVBVM50.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 0x4085b8
push 0
push 0x4085a0
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x74]
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 - 0x74]
call sub.MSVBVM50.DLL___vbaFreeVar
mov dword [ebp - 4], 0x13
push dword [ebp - 0x30]
call sub.MSVBVM50.DLL___vbaLenBstr
mov ecx, eax
call sub.MSVBVM50.DLL___vbaI2I4
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0x14
push 1
push dword [ebp - 0x30]
push 0x4077ac
push 0
call sub.MSVBVM50.DLL___vbaInStr
push eax
push dword [ebp - 0x30]
call sub.MSVBVM50.DLL_rtcLeftCharBstr
mov edx, eax
lea ecx, [ebp - 0x24]
call sub.MSVBVM50.DLL___vbaStrMove
mov dword [ebp - 4], 0x15
push dword [ebp - 0x30]
call sub.MSVBVM50.DLL___vbaLenBstr
mov esi, eax
push dword [ebp - 0x24]
call sub.MSVBVM50.DLL___vbaLenBstr
sub esi, eax
jo 0x424277
push esi
push dword [ebp - 0x30]
call sub.MSVBVM50.DLL_rtcRightCharBstr
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM50.DLL___vbaStrMove
mov dword [ebp - 4], 0x16
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0xb0]
call sub.MSVBVM50.DLL___vbaStrCopy
mov dword [ebp - 4], 0x17
push dword [ebp - 0xb0]
push 0x409090
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
jne 0x423af8
mov dword [ebp - 4], 0x18
and word [0x441058], 0
mov dword [ebp - 4], 0x19
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], 0x1a
lea eax, [ebp - 0x30]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], 0x4008
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM50.DLL_rtcUpperCaseVar
push 0x14
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM50.DLL_rtcLeftCharVar
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL_rtcRightTrimVar
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x54]
call sub.MSVBVM50.DLL___vbaStrMove
mov edx, eax
mov ecx, 0x441048
call sub.MSVBVM50.DLL___vbaStrCopy
lea ecx, [ebp - 0x54]
call sub.MSVBVM50.DLL___vbaFreeStr
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 3
call sub.MSVBVM50.DLL___vbaFreeVarList
add esp, 0x10
mov dword [ebp - 4], 0x1b
mov edx, 0x406a8c
mov ecx, 0x441050
call sub.MSVBVM50.DLL___vbaStrCopy
mov dword [ebp - 4], 0x1c
mov edx, 0x406a8c
mov ecx, 0x441054
call sub.MSVBVM50.DLL___vbaStrCopy
mov dword [ebp - 4], 0x1d
fldz
fstp qword [0x44105c]
mov dword [ebp - 4], 0x1e
or word [ebp - 0x28], 0xffff
jmp 0x42419f
mov dword [ebp - 4], 0x1f
push dword [ebp - 0xb0]
push 0x4090a0
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
jne 0x423ba8
mov dword [ebp - 4], 0x20
lea eax, [ebp - 0x30]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], 0x4008
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM50.DLL_rtcUpperCaseVar
push 0x14
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM50.DLL_rtcLeftCharVar
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL_rtcRightTrimVar
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x54]
call sub.MSVBVM50.DLL___vbaStrMove
mov edx, eax
mov ecx, 0x44104c
call sub.MSVBVM50.DLL___vbaStrCopy
lea ecx, [ebp - 0x54]
call sub.MSVBVM50.DLL___vbaFreeStr
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 3
call sub.MSVBVM50.DLL___vbaFreeVarList
add esp, 0x10
jmp 0x42419f
mov dword [ebp - 4], 0x21
push dword [ebp - 0xb0]
push 0x4090b8
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
jne 0x423c3e
mov dword [ebp - 4], 0x22
lea eax, [ebp - 0x30]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], 0x4008
push 4
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM50.DLL_rtcLeftCharVar
mov dword [ebp - 0x9c], 0x4090c8
mov dword [ebp - 0xa4], 0x8008
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xa4]
push eax
call sub.MSVBVM50.DLL___vbaVarTstEq
mov word [ebp - 0xac], ax
lea ecx, [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaFreeVar
movsx eax, word [ebp - 0xac]
test eax, eax
je 0x423c39
mov dword [ebp - 4], 0x23
and word [ebp - 0x28], 0
jmp 0x42419f
mov dword [ebp - 4], 0x25
push dword [ebp - 0xb0]
push 0x4090d8
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x4090e8
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x409104
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x409118
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x409130
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x409130
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x409144
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x409164
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x409180
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x40918c
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x4091a0
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x408fc8
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x408fd8
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x408e30
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x408aa0
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x4091ac
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
je 0x423dc1
push dword [ebp - 0xb0]
push 0x4091c4
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
jne 0x423dc6
jmp 0x42419f
mov dword [ebp - 4], 0x26
push dword [ebp - 0xb0]
push 0x4091d4
call sub.MSVBVM50.DLL___vbaStrCmp
test eax, eax
jne 0x423ea6
mov dword [ebp - 4], 0x27
mov eax, dword [ebp - 0x34]
add eax, 1
jo 0x424277
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0x28
cmp word [ebp - 0x28], 0xffff
jne 0x423e1d
mov dword [ebp - 4], 0x29
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00426bad
jmp 0x423e6f
mov dword [ebp - 4], 0x2b
mov edx, dword [0x441048]
lea ecx, [ebp - 0x30]
call sub.MSVBVM50.DLL___vbaStrCopy
mov dword [ebp - 4], 0x2c
mov edx, dword [0x44104c]
mov ecx, 0x441048
call sub.MSVBVM50.DLL___vbaStrCopy
mov dword [ebp - 4], 0x2d
mov edx, dword [ebp - 0x30]
mov ecx, 0x44104c
call sub.MSVBVM50.DLL___vbaStrCopy
mov dword [ebp - 4], 0x2e
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00427e97
mov dword [ebp - 4], 0x30
and word [0x441058], 0
mov dword [ebp - 4], 0x31
push 1
push 1
push 1
push 0x405ff4
push 0x441068
push 0x14
push 0
call sub.MSVBVM50.DLL___vbaRedim
add esp, 0x1c
jmp 0x42419f
mov dword [ebp - 4], 0x33
push dword [ebp - 0x24]
call sub.MSVBVM50.DLL___vbaLenBstr
cmp eax, 1
jle 0x42419f
mov dword [ebp - 4], 0x34
push 1
push dword [ebp - 0x30]
push 0x4077ac
push 0
call sub.MSVBVM50.DLL___vbaInStr
test eax, eax
je 0x423f43
mov dword [ebp - 4], 0x35
lea eax, [ebp - 0x30]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], 0x4008
push dword [ebp - 0x30]
call sub.MSVBVM50.DLL___vbaLenBstr
mov esi, eax
push 1
push dword [ebp - 0x30]
push 0x4077ac
push 0
call sub.MSVBVM50.DLL___vbaInStr
sub esi, eax
jo 0x424277
push esi
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM50.DLL_rtcRightCharVar
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM50.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM50.DLL___vbaStrMove
lea ecx, [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaFreeVar
mov dword [ebp - 4], 0x37
push 1
push dword [ebp - 0x24]
push 0x4077ac
push 0
call sub.MSVBVM50.DLL___vbaInStr
test eax, eax
je 0x423fbf
mov dword [ebp - 4], 0x38
lea eax, [ebp - 0x24]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], 0x4008
push 1
push dword [ebp - 0x24]
push 0x4077ac
push 0
call sub.MSVBVM50.DLL___vbaInStr
sub eax, 1
jo 0x424277
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM50.DLL_rtcLeftCharVar
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM50.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x24]
call sub.MSVBVM50.DLL___vbaStrMove
lea ecx, [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaFreeVar
mov dword [ebp - 4], 0x3a
push dword [ebp - 0x30]
call sub.MSVBVM50.DLL_rtcR8ValFromBstr
call sub.MSVBVM50.DLL___vbaFpR8
fcomp qword [0x4019a8]
fnstsw ax
sahf
jbe 0x42419f
mov dword [ebp - 4], 0x3b
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], 0x3c
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], 0x3d
lea eax, [ebp - 0x24]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], 0x4008
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM50.DLL_rtcUpperCaseVar
push 0x10
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM50.DLL_rtcLeftCharVar
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL_rtcRightTrimVar
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM50.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x54]
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 - 0x54]
call sub.MSVBVM50.DLL___vbaFreeStr
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 3
call sub.MSVBVM50.DLL___vbaFreeVarList
add esp, 0x10
mov dword [ebp - 4], 0x3e
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], 0x3f
push dword [ebp - 0x30]
call sub.MSVBVM50.DLL_rtcR8ValFromBstr
movsx eax, word [0x441058]
push eax
push dword [0x441068]
call sub.MSVBVM50.DLL___vbaDerefAry1
fstp qword [eax + 0xc]
mov dword [ebp - 4], 0x40
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 0x424272
mov dword [ebp - 4], 0x41
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 0x424277
push eax
push 1
push 0x405ff4
push 0x441068
push 0x14
push 0
call sub.MSVBVM50.DLL___vbaRedimPreserve
add esp, 0x1c
jmp 0x4237d4
mov dword [ebp - 4], 0x46
push dword [ebp - 0x48]
call sub.MSVBVM50.DLL___vbaFileClose
mov dword [ebp - 4], 0x47
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], 0x4008
lea eax, [ebp - 0x94]
push eax
call sub.MSVBVM50.DLL_rtcKillFiles
mov dword [ebp - 4], 0x48
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM50.DLL_rtcGetPresentDate
lea eax, [ebp - 0x64]
push eax
call sub.MSVBVM50.DLL___vbaDateVar
fstp qword [ebp - 0x44]
lea ecx, [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaFreeVar
mov dword [ebp - 4], 0x49
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 0xc]
call fcn.0042ad13
wait
push 0x424261
jmp 0x424245
lea ecx, [ebp - 0xb0]
call sub.MSVBVM50.DLL___vbaFreeStr
lea ecx, [ebp - 0x24]
call sub.MSVBVM50.DLL___vbaFreeStr
lea ecx, [ebp - 0x30]
call sub.MSVBVM50.DLL___vbaFreeStr
ret
jmp 0x4037cc
call sub.MSVBVM50.DLL___vbaErrorOverflow