Function at 0x45f780
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401916
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x401790
mov eax, dword [0x469870]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xb0], ebx
jne 0x45f7f4
push 0x469870
push 0x4053dc
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x469870]
lea ecx, [ebp - 0x50]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x14]
cmp eax, ebx
fnclex
jge 0x45f819
push 0x14
push 0x4053cc
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov edx, dword [eax]
mov esi, eax
call dword [edx + 0x50]
cmp eax, ebx
fnclex
jge 0x45f83d
push 0x50
push 0x4074d8
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [ebp - 0x4c]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push edx
push 0x407bfc
call edi
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
mov esi, 8
push ebx
push eax
mov dword [ebp - 0x60], esi
call dword [sym.imp.MSVBVM60.DLL_rtcDir]
mov dword [ebp - 0x70], esi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x68], eax
call esi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x4c]
call ebx
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x90]
push ecx
push edx
mov dword [ebp - 0x88], 0x4045f0
mov dword [ebp - 0x90], 0x8008
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstEq]
test ax, ax
mov eax, dword [0x469870]
je 0x45fc14
test eax, eax
jne 0x45f8dc
push 0x469870
push 0x4053dc
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x469870]
lea edx, [ebp - 0x50]
push edx
push eax
mov ecx, dword [eax]
mov dword [ebp - 0xb4], eax
call dword [ecx + 0x14]
test eax, eax
fnclex
jge 0x45f90c
mov ecx, dword [ebp - 0xb4]
push 0x14
push 0x4053cc
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov edx, dword [eax]
mov dword [ebp - 0xbc], eax
call dword [edx + 0x50]
test eax, eax
fnclex
jge 0x45f93a
mov edx, dword [ebp - 0xbc]
push 0x50
push 0x4074d8
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x4c]
push eax
push 0x407bfc
call edi
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], 8
call esi
lea ecx, [ebp - 0x4c]
call ebx
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x58], 0x80020004
push ecx
mov dword [ebp - 0x60], 0xa
call dword [sym.imp.MSVBVM60.DLL_rtcFreeFile]
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x28]
mov word [ebp - 0x98], ax
mov dword [ebp - 0xa0], 2
call esi
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarCopy]
mov edx, eax
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaI2Var]
push eax
lea eax, [ebp - 0x28]
push eax
call esi
push eax
push 0xffffffffffffffff
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFileOpen]
lea ecx, [ebp - 0x4c]
call ebx
lea ecx, [ebp - 0x28]
push 0x407c1c
push ecx
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaPrintFile]
push eax
push 0x407ad0
call edi
add esp, 0xc
lea edx, [ebp - 0x28]
push 0x407c34
push edx
call esi
push eax
push 0x407ad0
call edi
add esp, 0xc
lea eax, [ebp - 0x28]
push 0x407c50
push eax
call esi
push eax
push 0x407ad0
call edi
add esp, 0xc
lea ecx, [ebp - 0x28]
push 0x407c6c
push ecx
call esi
push eax
push 0x407ad0
call edi
add esp, 0xc
lea edx, [ebp - 0x28]
push 0x407c8c
push edx
call esi
push eax
push 0x407ad0
call edi
add esp, 0xc
lea eax, [ebp - 0x28]
push 0x407ca8
push eax
call esi
push eax
push 0x407ad0
call edi
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaFileClose]
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarCopy]
mov edx, eax
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
lea eax, [ebp - 0x28]
push eax
call esi
push eax
push 0xffffffffffffffff
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaFileOpen]
lea ecx, [ebp - 0x4c]
call ebx
mov edi, dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
lea ecx, [ebp - 0x28]
push ecx
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcEndOfFile]
test ax, ax
jne 0x45fe9f
lea edx, [ebp - 0x28]
push edx
call esi
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLineInputStr]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x60]
mov dword [ebp - 0x88], ecx
push edx
lea eax, [ebp - 0x90]
push 1
lea ecx, [ebp - 0x70]
push eax
push ecx
mov dword [ebp - 0x58], 4
mov dword [ebp - 0x60], 2
mov dword [ebp - 0x90], 0x4008
call edi
lea edx, [ebp - 0x70]
lea eax, [ebp - 0xb0]
push edx
push eax
mov dword [ebp - 0xa8], 0x407ccc
mov dword [ebp - 0xb0], 0x8008
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstEq]
lea ecx, [ebp - 0x70]
lea edx, [ebp - 0x60]
push ecx
push edx
push 2
mov bx, ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
test bx, bx
je 0x45fbaa
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
sub eax, 5
lea ecx, [ebp - 0x18]
jo 0x45ff35
lea edx, [ebp - 0x60]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x88], ecx
push edx
lea eax, [ebp - 0x90]
push 6
lea ecx, [ebp - 0x70]
push eax
push ecx
mov dword [ebp - 0x60], 3
mov dword [ebp - 0x90], 0x4008
call edi
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
mov ecx, 0x4690c8
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x60]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
jmp 0x45fa9d
mov edx, dword [ebp + 0xc]
sub esp, 0x10
mov eax, 0xa
mov dword [ebp - 0x88], 0x80020004
mov ebx, dword [edx]
mov edx, esp
mov dword [ebp - 0x90], eax
mov dword [edx], eax
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebx]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x84]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0x18]
push edx
push ebx
call dword [ecx + 0x1ec]
test eax, eax
fnclex
jge 0x45fa9d
push 0x1ec
push 0x406a18
push ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
jmp 0x45fa9d
test eax, eax
jne 0x45fc28
push 0x469870
push 0x4053dc
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x469870]
lea edx, [ebp - 0x50]
push edx
push eax
mov ecx, dword [eax]
mov dword [ebp - 0xb4], eax
call dword [ecx + 0x14]
test eax, eax
fnclex
jge 0x45fc58
mov ecx, dword [ebp - 0xb4]
push 0x14
push 0x4053cc
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov edx, dword [eax]
mov dword [ebp - 0xbc], eax
call dword [edx + 0x50]
test eax, eax
fnclex
jge 0x45fc86
mov edx, dword [ebp - 0xbc]
push 0x50
push 0x4074d8
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x4c]
push eax
push 0x407bfc
call edi
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], 8
call esi
lea ecx, [ebp - 0x4c]
call ebx
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x58], 0x80020004
push ecx
mov dword [ebp - 0x60], 0xa
call dword [sym.imp.MSVBVM60.DLL_rtcFreeFile]
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x28]
mov word [ebp - 0x98], ax
mov dword [ebp - 0xa0], 2
call esi
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarCopy]
mov edx, eax
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2Var]
push eax
push 0xffffffffffffffff
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaFileOpen]
lea ecx, [ebp - 0x4c]
call ebx
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaI2Var]
lea ecx, [ebp - 0x28]
push ecx
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcEndOfFile]
test ax, ax
jne 0x45fe9f
lea edx, [ebp - 0x28]
push edx
call esi
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLineInputStr]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x60]
mov dword [ebp - 0x88], ecx
push edx
lea eax, [ebp - 0x90]
push 1
lea ecx, [ebp - 0x70]
push eax
push ecx
mov dword [ebp - 0x58], 4
mov dword [ebp - 0x60], 2
mov dword [ebp - 0x90], 0x4008
call ebx
lea edx, [ebp - 0x70]
lea eax, [ebp - 0xb0]
push edx
push eax
mov dword [ebp - 0xa8], 0x407ccc
mov dword [ebp - 0xb0], 0x8008
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstEq]
lea ecx, [ebp - 0x70]
lea edx, [ebp - 0x60]
push ecx
push edx
push 2
mov si, ax
call edi
add esp, 0xc
test si, si
je 0x45fe35
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
sub eax, 5
lea ecx, [ebp - 0x18]
jo 0x45ff35
lea edx, [ebp - 0x60]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x88], ecx
push edx
lea eax, [ebp - 0x90]
push 6
lea ecx, [ebp - 0x70]
push eax
push ecx
mov dword [ebp - 0x60], 3
mov dword [ebp - 0x90], 0x4008
call ebx
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
mov ecx, 0x4690c8
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x60]
push eax
push ecx
push 2
call edi
add esp, 0xc
jmp 0x45fd2a
mov edx, dword [ebp + 0xc]
sub esp, 0x10
mov eax, 0xa
mov dword [ebp - 0x88], 0x80020004
mov esi, dword [edx]
mov edx, esp
mov dword [ebp - 0x90], eax
mov dword [edx], eax
mov eax, dword [ebp - 0x8c]
mov ecx, dword [esi]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x84]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0x18]
push edx
push esi
call dword [ecx + 0x1ec]
test eax, eax
fnclex
jge 0x45fd2a
push 0x1ec
push 0x406a18
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
jmp 0x45fd2a
lea eax, [ebp - 0x28]
push eax
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaFileClose]
push 0x45ff06
jmp 0x45feec
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x28]
call esi
lea ecx, [ebp - 0x48]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop