Function at 0x104ac20
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x5590
call fcn.0105ee40
sub rsp, rax
mov qword [rsp + 0x5560], 0xfffffffffffffffe
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x5580], rax
mov word [rsp + 0x4560], 0
lea rax, [rsp + 0x4562]
mov rdi, rax
xor eax, eax
mov ecx, 0x32e
rep stosb byte [rdi], al
mov word [rsp + 0x2190], 0
lea rax, [rsp + 0x2192]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
mov dword [rsp + 0x54b0], 0
lea rax, [rsp + 0x54b8]
mov rdi, rax
xor eax, eax
mov ecx, 0x88
rep stosb byte [rdi], al
mov word [rsp + 0x40], 0
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0x1f3e
rep stosb byte [rdi], al
lea rax, [rsp + 0x1f80]
mov rdi, rax
xor eax, eax
mov ecx, 0x210
rep stosb byte [rdi], al
mov word [rsp + 0x2590], 0
lea rax, [rsp + 0x2592]
mov rdi, rax
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov word [rsp + 0x2d90], 0
lea rax, [rsp + 0x2d92]
mov rdi, rax
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov dword [rsp + 0x41b0], 0
lea rax, [rsp + 0x41b4]
mov rdi, rax
xor eax, eax
mov ecx, 0x39c
rep stosb byte [rdi], al
mov dword [rsp + 0x35a0], 0
lea rax, [rsp + 0x35a8]
mov rdi, rax
xor eax, eax
mov ecx, 0xc00
rep stosb byte [rdi], al
mov dword [rsp + 0x48a0], 0
lea rax, [rsp + 0x48a8]
mov rdi, rax
xor eax, eax
mov ecx, 0xc00
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x4550], 0
mov dword [rsp + 0x3590], 0
mov dword [rsp + 0x4890], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x54c0], rax
mov rax, qword [rsp + 0x55a0]
add rax, 0x114
mov rcx, rax
call fcn.01052be0
mov rax, qword [rsp + 0x55a0]
add rax, 0x21c
mov rcx, rax
call fcn.01052be0
mov rax, qword [rsp + 0x55a0]
add rax, 0x3b4
mov rcx, rax
call fcn.01052be0
mov rax, qword [rsp + 0x55a0]
add rax, 0x3f4
mov rcx, rax
call fcn.01052be0
mov rax, qword [rsp + 0x55a0]
movzx eax, word [rax + 0x114]
test eax, eax
je 0x104ae7c
mov rax, qword [rsp + 0x55a0]
add rax, 0x114
mov dword [rsp + 0x20], 0x330
lea r9, [rsp + 0x4560]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
mov rcx, rax
call fcn.01052500
mov rax, qword [rsp + 0x55a0]
add rax, 0x114
lea r8, [rsp + 0x4560]
mov edx, 0x84
mov rcx, rax
call fcn.01013c30
test eax, eax
jge 0x104ae7c
jmp 0x104b6fb
mov rax, qword [rsp + 0x55a0]
movzx eax, word [rax + 0x21c]
test eax, eax
je 0x104aeef
mov rax, qword [rsp + 0x55a0]
add rax, 0x21c
mov dword [rsp + 0x20], 0x330
lea r9, [rsp + 0x4560]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
mov rcx, rax
call fcn.01052500
mov rax, qword [rsp + 0x55a0]
add rax, 0x21c
lea r8, [rsp + 0x4560]
mov edx, 0xcc
mov rcx, rax
call fcn.01013c30
test eax, eax
jge 0x104aeef
jmp 0x104b6fb
mov rax, qword [rsp + 0x55a0]
movzx eax, word [rax + 0x3b4]
test eax, eax
je 0x104af62
mov rax, qword [rsp + 0x55a0]
add rax, 0x3b4
mov dword [rsp + 0x20], 0x330
lea r9, [rsp + 0x4560]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
mov rcx, rax
call fcn.01052500
mov rax, qword [rsp + 0x55a0]
add rax, 0x3b4
lea r8, [rsp + 0x4560]
mov edx, 0x20
mov rcx, rax
call fcn.01013c30
test eax, eax
jge 0x104af62
jmp 0x104b6fb
mov rax, qword [rsp + 0x55a0]
movzx eax, word [rax + 0x3f4]
test eax, eax
je 0x104afd5
mov rax, qword [rsp + 0x55a0]
add rax, 0x3f4
mov dword [rsp + 0x20], 0x330
lea r9, [rsp + 0x4560]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
mov rcx, rax
call fcn.01052500
mov rax, qword [rsp + 0x55a0]
add rax, 0x3f4
lea r8, [rsp + 0x4560]
mov edx, 0x84
mov rcx, rax
call fcn.01013c30
test eax, eax
jge 0x104afd5
jmp 0x104b6fb
lea rdx, [0x0100a720]
lea rcx, [rsp + 0x35a0]
call fcn.01020890
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0x35a0]
call fcn.01020940
mov dword [rsp + 0x4550], eax
cmp dword [rsp + 0x4550], 0
jne 0x104b036
mov r9d, dword [rsp + 0x55b0]
mov r8, qword [rsp + 0x55a8]
mov edx, 0x119
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
jmp 0x104b6fb
mov rax, qword [rsp + 0x55a0]
add rax, 0xc
mov ecx, dword [rsp + 0x55b0]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x55a8]
mov qword [rsp + 0x20], rcx
lea r9, [0x0100a6e0]
mov r8, rax
lea rdx, [rsp + 0x48a0]
lea rcx, [rsp + 0x35a0]
call fcn.0104b7a0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x104b089
jmp 0x104b6fb
lea rdx, [rsp + 0x54b0]
lea rcx, [rsp + 0x35a0]
call qword [sym.imp.SQLSVC.dll_QSQLSetUserData]
lea rdx, [rsp + 0x54b0]
lea rcx, [rsp + 0x48a0]
call qword [sym.imp.SQLSVC.dll_QSQLSetUserData]
mov rax, qword [rsp + 0x55a0]
cmp dword [rax], 0
je 0x104b0d3
mov rax, qword [rsp + 0x55a0]
cmp dword [rax], 2
jne 0x104b4a9
mov rax, qword [rsp + 0x55a0]
cmp dword [rax], 0
jne 0x104b117
mov rax, qword [rsp + 0x55a0]
add rax, 0x114
mov rcx, qword [rsp + 0x55a0]
add rcx, 0x3f4
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8d, 0x138
xor edx, edx
mov ecx, 2
call fcn.01033fa0
lea rax, [rsp + 0x5550]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x55b0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x55a8]
lea r8, [rsp + 0x41b0]
mov rdx, qword [rsp + 0x55a0]
lea rcx, [rsp + 0x48a0]
call fcn.0104be90
test eax, eax
jne 0x104b15d
jmp 0x104b6fb
cmp dword [rsp + 0x5550], 0
jne 0x104b1cd
mov r9d, 0x200
lea r8, [rsp + 0x2190]
mov edx, 0x12c
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x55b0]
lea r9, [0x0100a6c8]
lea r8, [rsp + 0x2190]
mov rdx, rax
mov rcx, qword [rsp + 0x55a8]
call fcn.01015ef0
mov eax, dword [rsp + 0x55b0]
sub eax, 1
cdqe
mov rcx, qword [rsp + 0x55a8]
mov word [rcx + rax*2], 0
jmp 0x104b6fb
mov rdx, qword [rsp + 0x35b8]
lea rcx, [rsp + 0x5540]
call fcn.0101f880
nop
lea rcx, [0x0100a6c8]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x80
mov r8, rax
lea rdx, [0x0100a6c8]
lea rcx, [rsp + 0x5540]
call fcn.0101f8e0
lea rcx, [0x0100a6c8]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x80
mov r8, rax
lea rdx, [0x0100a6c8]
lea rcx, [rsp + 0x5540]
call fcn.0101f8e0
lea rcx, [0x0100a6c8]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x80
mov r8, rax
lea rdx, [0x0100a6c8]
lea rcx, [rsp + 0x5540]
call fcn.0101f8e0
mov eax, dword [rsp + 0x42bc]
mov dword [rsp + 0x5558], eax
lea rdx, [rsp + 0x5558]
lea rcx, [rsp + 0x5540]
call fcn.0101f990
lea rcx, [rsp + 0x42c4]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x64
mov r8, rax
lea rdx, [rsp + 0x42c4]
lea rcx, [rsp + 0x5540]
call fcn.0101f8e0
lea rcx, [rsp + 0x4394]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x64
mov r8, rax
lea rdx, [rsp + 0x4394]
lea rcx, [rsp + 0x5540]
call fcn.0101f8e0
lea rdx, [rsp + 0x4534]
lea rcx, [rsp + 0x5540]
call fcn.0101f990
lea rdx, [rsp + 0x4538]
lea rcx, [rsp + 0x5540]
call fcn.0101f990
lea rdx, [rsp + 0x453c]
lea rcx, [rsp + 0x5540]
call fcn.0101f990
lea rdx, [rsp + 0x4540]
lea rcx, [rsp + 0x5540]
call fcn.0101f990
lea rdx, [rsp + 0x4544]
lea rcx, [rsp + 0x5540]
call fcn.0101f990
lea rdx, [rsp + 0x4548]
lea rcx, [rsp + 0x5540]
call fcn.0101f990
lea rdx, [rsp + 0x454c]
lea rcx, [rsp + 0x5540]
call fcn.0101f990
lea rcx, [rsp + 0x4464]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x64
mov r8, rax
lea rdx, [rsp + 0x4464]
lea rcx, [rsp + 0x5540]
call fcn.0101f8e0
lea rdx, [0x0100a350]
lea rcx, [rsp + 0x35a0]
call qword [sym.imp.SQLSVC.dll_QSQLPurgeExec]
test eax, eax
je 0x104b3c4
mov dword [rsp + 0x3590], 1
jmp 0x104b49c
mov r8d, 0x400
lea rdx, [rsp + 0x2d90]
lea rcx, [rsp + 0x35a0]
call fcn.0104bd90
mov rax, qword [rsp + 0x55a0]
cmp dword [rax], 0
jne 0x104b3f7
mov dword [rsp + 0x4890], 1
mov word [rsp + 0x2190], 0
mov r9d, 0x200
lea r8, [rsp + 0x2190]
mov edx, 0x1a1
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
movzx eax, word [rsp + 0x2d90]
test eax, eax
je 0x104b43f
lea rax, [rsp + 0x2d90]
mov qword [rsp + 0x5568], rax
jmp 0x104b44e
lea rax, [0x0100a330]
mov qword [rsp + 0x5568], rax
movsxd rax, dword [rsp + 0x55b0]
mov rcx, qword [rsp + 0x5568]
mov qword [rsp + 0x20], rcx
lea r9, [0x0100a6c8]
lea r8, [rsp + 0x2190]
mov rdx, rax
mov rcx, qword [rsp + 0x55a8]
call fcn.01015ef0
mov eax, dword [rsp + 0x55b0]
sub eax, 1
cdqe
mov rcx, qword [rsp + 0x55a8]
mov word [rcx + rax*2], 0
lea rcx, [rsp + 0x5540]
call fcn.0101f8b0
mov rax, qword [rsp + 0x55a0]
cmp dword [rax], 1
je 0x104b4c4
cmp dword [rsp + 0x4890], 0
je 0x104b629
cmp dword [rsp + 0x4890], 0
jne 0x104b505
mov rax, qword [rsp + 0x55a0]
add rax, 0x114
mov rcx, qword [rsp + 0x55a0]
add rcx, 0x3f4
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8d, 0x139
xor edx, edx
mov ecx, 2
call fcn.01033fa0
mov dword [rsp + 0x5554], 0xa0009e3
mov rax, qword [rsp + 0x55a0]
add rax, 0x114
mov ecx, dword [rsp + 0x5554]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x55a0]
mov r9d, dword [rax]
lea r8, [0x01009de0]
mov edx, 0x3ff
lea rcx, [rsp + 0x2590]
call fcn.01015ef0
mov word [rsp + 0x2d8e], 0
lea rdx, [rsp + 0x2590]
lea rcx, [rsp + 0x48a0]
call qword [sym.imp.SQLSVC.dll_QSQLPurgeExec]
test eax, eax
je 0x104b594
xor edx, edx
lea rcx, [0x01065e00]
call fcn.01038eb0
mov dword [rsp + 0x3590], 1
jmp 0x104b629
cmp dword [rsp + 0x4890], 0
jne 0x104b629
mov r8d, 0x400
lea rdx, [rsp + 0x2d90]
lea rcx, [rsp + 0x48a0]
call fcn.0104bd90
mov word [rsp + 0x2190], 0
mov r9d, 0x200
lea r8, [rsp + 0x2190]
mov edx, 0x1a2
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x55b0]
lea r9, [rsp + 0x2d90]
lea r8, [rsp + 0x2190]
mov rdx, rax
mov rcx, qword [rsp + 0x55a8]
call fcn.01015ef0
mov eax, dword [rsp + 0x55b0]
sub eax, 1
cdqe
mov rcx, qword [rsp + 0x55a8]
mov word [rcx + rax*2], 0
cmp dword [rsp + 0x3590], 0
je 0x104b6fb
mov rax, qword [rsp + 0x55a0]
cmp dword [rax], 0
jne 0x104b651
mov dword [rsp + 0x5570], 0x13b
jmp 0x104b6ac
mov rax, qword [rsp + 0x55a0]
cmp dword [rax], 1
jne 0x104b66b
mov dword [rsp + 0x5574], 0x13c
jmp 0x104b69e
mov rax, qword [rsp + 0x55a0]
cmp dword [rax], 2
jne 0x104b685
mov dword [rsp + 0x5578], 0x13d
jmp 0x104b690
mov dword [rsp + 0x5578], 0x17
mov eax, dword [rsp + 0x5578]
mov dword [rsp + 0x5574], eax
mov eax, dword [rsp + 0x5574]
mov dword [rsp + 0x5570], eax
mov r9d, 0x200
lea r8, [rsp + 0x2190]
mov edx, dword [rsp + 0x5570]
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rax, qword [rsp + 0x55a0]
add rax, 0x114
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2190]
mov r8d, 0x13a
xor edx, edx
mov ecx, 4
call fcn.01033fa0
cmp dword [rsp + 0x4550], 0
je 0x104b723
xor edx, edx
lea rcx, [rsp + 0x35a0]
call qword [sym.imp.SQLSVC.dll_QSQLSetUserData]
lea rcx, [rsp + 0x35a0]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
cmp dword [rsp + 0x30], 0
je 0x104b748
xor edx, edx
lea rcx, [rsp + 0x48a0]
call qword [sym.imp.SQLSVC.dll_QSQLSetUserData]
lea rcx, [rsp + 0x48a0]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
mov eax, dword [rsp + 0x3590]
mov rcx, qword [rsp + 0x5580]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x5590
pop rdi
ret