Function at 0x51e740
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x402556
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x401688
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], edi
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 0x24], 0xffffffff
mov edx, 0x40d0f4
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea eax, [ebp - 0x2c]
push eax
call fcn.0054c900
mov esi, eax
dec esi
neg esi
sbb esi, esi
neg esi
neg esi
lea ecx, [ebp - 0x2c]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call ebx
cmp si, di
jne 0x51eeee
push 0x40ef58
push 0x40c6e0
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
call esi
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40f038
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov edx, dword [ebp - 0x20]
push edx
push 0x40f12c
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov eax, dword [ebp - 0x20]
push eax
push 0x40f218
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40f310
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov edx, dword [ebp - 0x20]
push edx
push 0x40f4fc
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov eax, dword [ebp - 0x20]
push eax
push 0x40f6ec
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40f22c
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov edx, dword [ebp - 0x20]
push edx
push 0x40f8d8
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov eax, dword [ebp - 0x20]
push eax
push 0x40f9cc
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40f814
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
mov edx, dword [ebp - 0x20]
push edx
push 0x40f624
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
mov eax, dword [ebp - 0x20]
push eax
push 0x40f438
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40fabc
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov edx, dword [ebp - 0x20]
push edx
push 0x40fbc4
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov eax, dword [ebp - 0x20]
push eax
push 0x40fca4
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40fd44
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov edx, dword [ebp - 0x20]
push edx
push 0x40fd70
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov eax, dword [ebp - 0x20]
push eax
push 0x40fdac
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov ax, word [0x58705c]
test ax, ax
jne 0x51ea96
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40fdfc
jmp 0x51eab1
cmp ax, 1
jne 0x51eaa2
mov edx, dword [ebp - 0x20]
push edx
jmp 0x51eaac
cmp ax, 2
jne 0x51eace
mov eax, dword [ebp - 0x20]
push eax
push 0x40fe34
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40fe80
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov eax, dword [0x5870fc]
mov edx, dword [eax]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [edx + 0x6c]
fnclex
test eax, eax
jge 0x51eb1e
push 0x6c
push 0x40c4f0
mov edx, dword [0x5870fc]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x20]
push eax
push 0x40fef4
call edi
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call edi
mov edx, eax
lea ecx, [ebp - 0x34]
call esi
push eax
push 0x40ff14
call edi
mov edx, eax
lea ecx, [ebp - 0x38]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x30]
push edx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x14
mov eax, dword [ebp - 0x20]
push eax
push 0x40ff4c
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40ff8c
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov edx, dword [ebp - 0x20]
push edx
push 0x40ffc0
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov eax, dword [ebp - 0x20]
push eax
push 0x410000
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40fc40
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
mov edx, dword [ebp - 0x20]
push edx
push 0x410054
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
mov eax, dword [0x5870fc]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push eax
call dword [ecx + 0x6c]
fnclex
test eax, eax
jge 0x51ec71
push 0x6c
push 0x40c4f0
mov ecx, dword [0x5870fc]
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [ebp - 0x20]
push edx
push 0x40fef4
call edi
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
push eax
mov eax, dword [ebp - 0x2c]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x34]
call esi
push eax
push 0x4100e8
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x30]
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
mov ecx, dword [ebp - 0x20]
push ecx
push 0x410128
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
push 0x40c6e0
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x2c]
call ebx
xor ebx, ebx
cmp word [0x587068], bx
jl 0x51ed3f
mov edx, dword [ebp - 0x20]
push edx
push 0x410170
call edi
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
push eax
mov ax, word [0x587068]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x34]
call esi
push eax
push 0x4101a4
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
mov ecx, dword [ebp - 0x20]
push ecx
push 0x4101ac
call edi
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
cmp dword [0x587050], ebx
jne 0x51ed69
push 0x587050
push 0x40c61c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x587050]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], ebx
mov edx, dword [esi]
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x60]
push ecx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [edx + 0xdc]
fnclex
cmp eax, ebx
jge 0x51edbc
push 0xdc
push 0x40c4f0
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x40be58
mov edx, dword [ebp - 0x3c]
push edx
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
call ebx
push eax
lea eax, [ebp - 0x28]
push eax
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
call esi
lea ecx, [ebp - 0x3c]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
call edi
push 0x4101dc
mov ecx, dword [ebp - 0x28]
push ecx
call ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], 0xd
mov eax, dword [0x587010]
test eax, eax
jne 0x51ee13
push 0x587010
push 0x4094e4
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVerifyVarObj]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
push 0
push 0x45
mov eax, dword [0x587010]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x36c]
push eax
lea edx, [ebp - 0x3c]
push edx
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdStAd]
add esp, 0x1c
lea ecx, [ebp - 0x3c]
call edi
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 0x24], 1
call dword [fcn.004010b4]
push 0x51ef3c
jmp 0x51ef29
call dword [fcn.004010b4]
push 0x51ef3c
jmp 0x51ef29
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret