Function at 0x495bd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4055a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x403b20
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
call fcn.00496050
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x48], 2
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
mov ecx, dword [ebp + 0xc]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x4124ec
mov word [0x4f0d00], bx
mov word [0x4f0cf8], bx
call esi
push 0x4ee348
call fcn.0045e380
mov ax, word [0x4ee348]
push 0x4f0cfa
push 0x420e64
push eax
call fcn.0045bbc0
test ax, ax
jne 0x495da4
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push 0x4f0cfa
push 2
lea ecx, [ebp - 0x2c]
push 0x4124ec
push ecx
call ebx
push eax
lea edx, [ebp - 0x28]
push 0x420e64
push edx
call ebx
push eax
lea eax, [ebp - 0x24]
push 0x420e78
push eax
call ebx
mov cx, word [0x4ee348]
push eax
push ecx
call fcn.00419698
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 0x4c], eax
call edi
mov edx, 0x420e78
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x54], 3
call esi
mov edx, 0x4124ec
lea ecx, [ebp - 0x30]
call esi
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], edx
lea ecx, [ebp - 0x34]
push eax
lea edx, [ebp - 0x30]
push ecx
push edx
lea eax, [ebp - 0x50]
push 0x4ee348
push eax
call fcn.0045e0e0
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
lea ecx, [ebp - 0x34]
mov word [0x4f0cf8], ax
lea edx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
push 5
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x18
mov edx, 0x420e94
mov ecx, 0x4ee078
call esi
mov eax, dword [0x4ee078]
push eax
push 0x416924
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
mov ecx, 0x4ee078
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ecx, dword [0x4ee078]
lea edx, [ebp - 0x24]
push ecx
push edx
call ebx
push eax
mov ax, word [0x4f0cfa]
push eax
call fcn.00419830
mov ebx, eax
call edi
mov ecx, dword [ebp - 0x24]
push ecx
push 0x4ee078
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
lea ecx, [ebp - 0x24]
mov word [0x4f0cf8], bx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call fcn.00496190
call fcn.004961e0
xor ebx, ebx
jmp 0x495daa
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp + 8]
mov cx, word [0x4f0cfa]
push ebx
mov eax, dword [edx]
push eax
push 1
push ecx
call fcn.0041a11c
mov dword [ebp - 0x4c], eax
call edi
mov dx, word [ebp - 0x4c]
mov word [0x4f0cf8], dx
mov ax, word [0x4f0cfa]
push eax
call fcn.0041a3b8
mov dword [ebp - 0x4c], eax
call edi
mov edx, 0x420e78
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], 3
call esi
mov edx, 0x4124ec
lea ecx, [ebp - 0x24]
call esi
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x58]
mov dword [ebp - 0x50], ecx
lea eax, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
lea eax, [ebp - 0x50]
push 0x4ee348
push eax
call fcn.0045e160
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x24]
push ecx
push edx
push 2
mov word [0x4f0cf8], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
cmp word [0x4ee320], bx
jne 0x495dd0
movsx eax, word [0x4f0cf8]
mov dword [0x4f0cfc], eax
call fcn.004960a0
cmp dword [0x4f0cfc], 0x65
je 0x495ec3
mov edx, dword [0x4f0d08]
lea ecx, [ebp - 0x24]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcRightTrimBstr]
mov edx, eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x4f0d08]
push ecx
push edx
push ebx
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
mov edx, dword [ebp - 0x28]
mov ecx, 0x4f0cf0
mov dword [ebp - 0x28], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, dword [0x4f0cf0]
mov ecx, dword [ebp + 0xc]
call esi
mov ax, word [0x4f0cfa]
push eax
call fcn.0041a240
mov dword [ebp - 0x4c], eax
call edi
mov edx, 0x420e78
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x54], 3
call esi
mov edx, 0x4124ec
lea ecx, [ebp - 0x24]
call esi
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x50], ecx
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
lea edx, [ebp - 0x50]
push 0x4ee348
push edx
call fcn.0045e0e0
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov word [0x4f0cf8], ax
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x24]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
mov eax, dword [0x4f5b70]
add esp, 0xc
cmp eax, ebx
jne 0x495f49
push 0x4f5b70
push 0x417d08
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
sub esp, 0x10
mov esi, dword [0x4f5b70]
mov edi, esp
mov ecx, 3
mov dword [ebp - 0x48], ecx
mov eax, 1
mov dword [edi], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
mov edx, dword [esi]
mov dword [edi + 4], ecx
push esi
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0xc], eax
call dword [edx + 0x44]
cmp eax, ebx
fnclex
jge 0x495f94
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x44
push 0x417cf8
push esi
push eax
call edi
jmp 0x495f9a
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp dword [0x4f5aac], ebx
jne 0x495fb2
push 0x4f5aac
push 0x415574
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x4f5aac]
lea edx, [ebp - 0x38]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0x18]
cmp eax, ebx
fnclex
jge 0x495fd3
push 0x18
push 0x415564
push esi
push eax
call edi
mov eax, dword [ebp - 0x38]
mov dx, word [0x4ee142]
push edx
push eax
mov ecx, dword [eax]
mov esi, eax
call dword [ecx + 0x7c]
cmp eax, ebx
fnclex
jge 0x495ff7
push 0x7c
push 0x415584
push esi
push eax
call edi
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
push 0x49603a
jmp 0x496030
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
ret