Function at 0x104b880
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x4da0
call fcn.0105fe80
sub rsp, rax
mov qword [rsp + 0x4d70], 0xfffffffffffffffe
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x4d90], rax
mov word [rsp + 0x3d60], 0
lea rax, [rsp + 0x3d62]
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 + 0x4cb0], 0
lea rax, [rsp + 0x4cb8]
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 dword [rsp + 0x39b0], 0
lea rax, [rsp + 0x39b4]
mov rdi, rax
xor eax, eax
mov ecx, 0x39c
rep stosb byte [rdi], al
mov dword [rsp + 0x2da0], 0
lea rax, [rsp + 0x2da8]
mov rdi, rax
xor eax, eax
mov ecx, 0xc00
rep stosb byte [rdi], al
mov dword [rsp + 0x40a0], 0
lea rax, [rsp + 0x40a8]
mov rdi, rax
xor eax, eax
mov ecx, 0xc00
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x3d50], 0
mov dword [rsp + 0x2d90], 0
mov dword [rsp + 0x4090], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x4cc0], rax
mov rax, qword [rsp + 0x4db0]
add rax, 0x114
mov rcx, rax
call fcn.01053890
mov rax, qword [rsp + 0x4db0]
add rax, 0x21c
mov rcx, rax
call fcn.01053890
mov rax, qword [rsp + 0x4db0]
add rax, 0x3b4
mov rcx, rax
call fcn.01053890
mov rax, qword [rsp + 0x4db0]
add rax, 0x3f4
mov rcx, rax
call fcn.01053890
mov rax, qword [rsp + 0x4db0]
movzx eax, word [rax + 0x114]
test eax, eax
je 0x104babe
mov rax, qword [rsp + 0x4db0]
add rax, 0x114
mov dword [rsp + 0x20], 0x330
lea r9, [rsp + 0x3d60]
lea r8, [0x01002218]
lea rdx, [0x01002214]
mov rcx, rax
call fcn.010531b0
mov rax, qword [rsp + 0x4db0]
add rax, 0x114
lea r8, [rsp + 0x3d60]
mov edx, 0x84
mov rcx, rax
call fcn.0105ab90
test eax, eax
jge 0x104babe
jmp 0x104c38d
mov rax, qword [rsp + 0x4db0]
movzx eax, word [rax + 0x21c]
test eax, eax
je 0x104bb31
mov rax, qword [rsp + 0x4db0]
add rax, 0x21c
mov dword [rsp + 0x20], 0x330
lea r9, [rsp + 0x3d60]
lea r8, [0x01002218]
lea rdx, [0x01002214]
mov rcx, rax
call fcn.010531b0
mov rax, qword [rsp + 0x4db0]
add rax, 0x21c
lea r8, [rsp + 0x3d60]
mov edx, 0xcc
mov rcx, rax
call fcn.0105ab90
test eax, eax
jge 0x104bb31
jmp 0x104c38d
mov rax, qword [rsp + 0x4db0]
movzx eax, word [rax + 0x3b4]
test eax, eax
je 0x104bba4
mov rax, qword [rsp + 0x4db0]
add rax, 0x3b4
mov dword [rsp + 0x20], 0x330
lea r9, [rsp + 0x3d60]
lea r8, [0x01002218]
lea rdx, [0x01002214]
mov rcx, rax
call fcn.010531b0
mov rax, qword [rsp + 0x4db0]
add rax, 0x3b4
lea r8, [rsp + 0x3d60]
mov edx, 0x20
mov rcx, rax
call fcn.0105ab90
test eax, eax
jge 0x104bba4
jmp 0x104c38d
mov rax, qword [rsp + 0x4db0]
movzx eax, word [rax + 0x3f4]
test eax, eax
je 0x104bc17
mov rax, qword [rsp + 0x4db0]
add rax, 0x3f4
mov dword [rsp + 0x20], 0x330
lea r9, [rsp + 0x3d60]
lea r8, [0x01002218]
lea rdx, [0x01002214]
mov rcx, rax
call fcn.010531b0
mov rax, qword [rsp + 0x4db0]
add rax, 0x3f4
lea r8, [rsp + 0x3d60]
mov edx, 0x84
mov rcx, rax
call fcn.0105ab90
test eax, eax
jge 0x104bc17
jmp 0x104c38d
lea rdx, [0x0100a9a0]
lea rcx, [rsp + 0x2da0]
call fcn.01020b50
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0x2da0]
call fcn.01020c30
mov dword [rsp + 0x3d50], eax
cmp dword [rsp + 0x3d50], 0
jne 0x104bc78
mov r9d, dword [rsp + 0x4dc0]
mov r8, qword [rsp + 0x4db8]
mov edx, 0x119
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
jmp 0x104c38d
mov rax, qword [rsp + 0x4db0]
add rax, 0xc
mov ecx, dword [rsp + 0x4dc0]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x4db8]
mov qword [rsp + 0x20], rcx
lea r9, [0x0100a960]
mov r8, rax
lea rdx, [rsp + 0x40a0]
lea rcx, [rsp + 0x2da0]
call fcn.0104c450
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x104bccb
jmp 0x104c38d
lea rdx, [rsp + 0x4cb0]
lea rcx, [rsp + 0x2da0]
call qword [sym.imp.SQLSVC.dll_QSQLSetUserData]
lea rdx, [rsp + 0x4cb0]
lea rcx, [rsp + 0x40a0]
call qword [sym.imp.SQLSVC.dll_QSQLSetUserData]
mov rax, qword [rsp + 0x4db0]
cmp dword [rax], 0
je 0x104bd15
mov rax, qword [rsp + 0x4db0]
cmp dword [rax], 2
jne 0x104c0dd
mov rax, qword [rsp + 0x4db0]
cmp dword [rax], 0
jne 0x104bd59
mov rax, qword [rsp + 0x4db0]
add rax, 0x114
mov rcx, qword [rsp + 0x4db0]
add rcx, 0x3f4
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8d, 0x138
xor edx, edx
mov ecx, 2
call fcn.01034b80
lea rax, [rsp + 0x4d50]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x4dc0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x4db8]
lea r8, [rsp + 0x39b0]
mov rdx, qword [rsp + 0x4db0]
lea rcx, [rsp + 0x40a0]
call fcn.0104cb40
test eax, eax
jne 0x104bd9f
jmp 0x104c38d
cmp dword [rsp + 0x4d50], 0
jne 0x104be0f
mov r9d, 0x200
lea r8, [rsp + 0x2190]
mov edx, 0x12c
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x4dc0]
lea r9, [0x0100a948]
lea r8, [rsp + 0x2190]
mov rdx, rax
mov rcx, qword [rsp + 0x4db8]
call fcn.01016110
mov eax, dword [rsp + 0x4dc0]
sub eax, 1
cdqe
mov rcx, qword [rsp + 0x4db8]
mov word [rcx + rax*2], 0
jmp 0x104c38d
mov rdx, qword [rsp + 0x2db8]
lea rcx, [rsp + 0x4d40]
call fcn.0101fbe0
nop
lea rcx, [0x0100a948]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x80
mov r8, rax
lea rdx, [0x0100a948]
lea rcx, [rsp + 0x4d40]
call fcn.0101fc40
lea rcx, [0x0100a948]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x80
mov r8, rax
lea rdx, [0x0100a948]
lea rcx, [rsp + 0x4d40]
call fcn.0101fc40
lea rcx, [0x0100a948]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x80
mov r8, rax
lea rdx, [0x0100a948]
lea rcx, [rsp + 0x4d40]
call fcn.0101fc40
lea rdx, [rsp + 0x3abc]
lea rcx, [rsp + 0x4d40]
call fcn.0102b6e0
lea rcx, [rsp + 0x3ac4]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x64
mov r8, rax
lea rdx, [rsp + 0x3ac4]
lea rcx, [rsp + 0x4d40]
call fcn.0101fc40
lea rcx, [rsp + 0x3b94]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x64
mov r8, rax
lea rdx, [rsp + 0x3b94]
lea rcx, [rsp + 0x4d40]
call fcn.0101fc40
lea rdx, [rsp + 0x3d34]
lea rcx, [rsp + 0x4d40]
call fcn.0102b6e0
lea rdx, [rsp + 0x3d38]
lea rcx, [rsp + 0x4d40]
call fcn.0102b6e0
lea rdx, [rsp + 0x3d3c]
lea rcx, [rsp + 0x4d40]
call fcn.0102b6e0
lea rdx, [rsp + 0x3d40]
lea rcx, [rsp + 0x4d40]
call fcn.0102b6e0
lea rdx, [rsp + 0x3d44]
lea rcx, [rsp + 0x4d40]
call fcn.0102b6e0
lea rdx, [rsp + 0x3d48]
lea rcx, [rsp + 0x4d40]
call fcn.0102b6e0
lea rdx, [rsp + 0x3d4c]
lea rcx, [rsp + 0x4d40]
call fcn.0102b6e0
lea rcx, [rsp + 0x3c64]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x64
mov r8, rax
lea rdx, [rsp + 0x3c64]
lea rcx, [rsp + 0x4d40]
call fcn.0101fc40
lea rdx, [0x0100a5d0]
lea rcx, [rsp + 0x2da0]
call qword [sym.imp.SQLSVC.dll_QSQLPurgeExec]
test eax, eax
je 0x104bff8
mov dword [rsp + 0x2d90], 1
jmp 0x104c0d0
mov r8d, 0x400
lea rdx, [rsp + 0x2590]
lea rcx, [rsp + 0x2da0]
call fcn.0104ca40
mov rax, qword [rsp + 0x4db0]
cmp dword [rax], 0
jne 0x104c02b
mov dword [rsp + 0x4090], 1
mov word [rsp + 0x2190], 0
mov r9d, 0x200
lea r8, [rsp + 0x2190]
mov edx, 0x1a1
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
movzx eax, word [rsp + 0x2590]
test eax, eax
je 0x104c073
lea rax, [rsp + 0x2590]
mov qword [rsp + 0x4d78], rax
jmp 0x104c082
lea rax, [0x0100a5b8]
mov qword [rsp + 0x4d78], rax
movsxd rax, dword [rsp + 0x4dc0]
mov rcx, qword [rsp + 0x4d78]
mov qword [rsp + 0x20], rcx
lea r9, [0x0100a948]
lea r8, [rsp + 0x2190]
mov rdx, rax
mov rcx, qword [rsp + 0x4db8]
call fcn.01016110
mov eax, dword [rsp + 0x4dc0]
sub eax, 1
cdqe
mov rcx, qword [rsp + 0x4db8]
mov word [rcx + rax*2], 0
lea rcx, [rsp + 0x4d40]
call fcn.0101fc10
mov rax, qword [rsp + 0x4db0]
cmp dword [rax], 1
je 0x104c0f8
cmp dword [rsp + 0x4090], 0
je 0x104c2bb
cmp dword [rsp + 0x4090], 0
jne 0x104c139
mov rax, qword [rsp + 0x4db0]
add rax, 0x114
mov rcx, qword [rsp + 0x4db0]
add rcx, 0x3f4
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8d, 0x139
xor edx, edx
mov ecx, 2
call fcn.01034b80
mov dword [rsp + 0x4d54], 0xa320fa0
mov rdx, qword [rsp + 0x40b8]
lea rcx, [rsp + 0x4d60]
call fcn.0101fbe0
nop
mov rax, qword [rsp + 0x4db0]
mov eax, dword [rax]
mov dword [rsp + 0x4d58], eax
mov eax, dword [rsp + 0x4d54]
mov dword [rsp + 0x4d5c], eax
lea rdx, [rsp + 0x4d58]
lea rcx, [rsp + 0x4d60]
call fcn.0102b6e0
mov rax, qword [rsp + 0x4db0]
add rax, 0x114
mov rcx, rax
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x4db0]
add rcx, 0x114
mov r9d, 0x80
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x4d60]
call fcn.0101fc40
lea rdx, [rsp + 0x4d5c]
lea rcx, [rsp + 0x4d60]
call fcn.0102b6e0
lea rdx, [0x0100a070]
lea rcx, [rsp + 0x40a0]
call qword [sym.imp.SQLSVC.dll_QSQLPurgeExec]
test eax, eax
je 0x104c219
xor edx, edx
lea rcx, [0x01066e00]
call fcn.01039990
mov dword [rsp + 0x2d90], 1
jmp 0x104c2ae
cmp dword [rsp + 0x4090], 0
jne 0x104c2ae
mov r8d, 0x400
lea rdx, [rsp + 0x2590]
lea rcx, [rsp + 0x40a0]
call fcn.0104ca40
mov word [rsp + 0x2190], 0
mov r9d, 0x200
lea r8, [rsp + 0x2190]
mov edx, 0x1a2
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x4dc0]
lea r9, [rsp + 0x2590]
lea r8, [rsp + 0x2190]
mov rdx, rax
mov rcx, qword [rsp + 0x4db8]
call fcn.01016110
mov eax, dword [rsp + 0x4dc0]
sub eax, 1
cdqe
mov rcx, qword [rsp + 0x4db8]
mov word [rcx + rax*2], 0
lea rcx, [rsp + 0x4d60]
call fcn.0101fc10
cmp dword [rsp + 0x2d90], 0
je 0x104c38d
mov rax, qword [rsp + 0x4db0]
cmp dword [rax], 0
jne 0x104c2e3
mov dword [rsp + 0x4d80], 0x13b
jmp 0x104c33e
mov rax, qword [rsp + 0x4db0]
cmp dword [rax], 1
jne 0x104c2fd
mov dword [rsp + 0x4d84], 0x13c
jmp 0x104c330
mov rax, qword [rsp + 0x4db0]
cmp dword [rax], 2
jne 0x104c317
mov dword [rsp + 0x4d88], 0x13d
jmp 0x104c322
mov dword [rsp + 0x4d88], 0x17
mov eax, dword [rsp + 0x4d88]
mov dword [rsp + 0x4d84], eax
mov eax, dword [rsp + 0x4d84]
mov dword [rsp + 0x4d80], eax
mov r9d, 0x200
lea r8, [rsp + 0x2190]
mov edx, dword [rsp + 0x4d80]
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rax, qword [rsp + 0x4db0]
add rax, 0x114
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2190]
mov r8d, 0x13a
xor edx, edx
mov ecx, 4
call fcn.01034b80
cmp dword [rsp + 0x3d50], 0
je 0x104c3b5
xor edx, edx
lea rcx, [rsp + 0x2da0]
call qword [sym.imp.SQLSVC.dll_QSQLSetUserData]
lea rcx, [rsp + 0x2da0]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
cmp dword [rsp + 0x30], 0
je 0x104c3da
xor edx, edx
lea rcx, [rsp + 0x40a0]
call qword [sym.imp.SQLSVC.dll_QSQLSetUserData]
lea rcx, [rsp + 0x40a0]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
mov eax, dword [rsp + 0x2d90]
mov rcx, qword [rsp + 0x4d90]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x4da0
pop rdi
ret