Function at 0x1050850
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x90e8
call fcn.0105fe80
sub rsp, rax
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x90d8], rax
movzx eax, word [0x01001c50]
mov word [rsp + 0x5590], ax
lea rax, [rsp + 0x5592]
mov rdi, rax
xor eax, eax
mov ecx, 0x32d2
rep stosb byte [rdi], al
movzx eax, word [0x01001c50]
mov word [rsp + 0x4d80], ax
lea rax, [rsp + 0x4d82]
mov rdi, rax
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
movzx eax, word [0x01001c50]
mov word [rsp + 0x19a0], ax
lea rax, [rsp + 0x19a2]
mov rdi, rax
xor eax, eax
mov ecx, 0x32d2
rep stosb byte [rdi], al
movzx eax, word [0x01001c50]
mov word [rsp + 0xc0], ax
lea rax, [rsp + 0xc2]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
mov qword [rsp + 0x590], 0
movzx eax, word [0x01001c50]
mov word [rsp + 0x1590], ax
lea rax, [rsp + 0x1592]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
movzx eax, word [0x01001c50]
mov word [rsp + 0x4c80], ax
lea rax, [rsp + 0x4c82]
mov rdi, rax
xor eax, eax
mov ecx, 0xfe
rep stosb byte [rdi], al
movzx eax, word [0x01001c50]
mov word [rsp + 0x5a0], ax
lea rax, [rsp + 0x5a2]
mov rdi, rax
xor eax, eax
mov ecx, 0xfe
rep stosb byte [rdi], al
mov dword [rsp + 0x4c0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0x5580], 0
mov dword [rsp + 0x6a0], 0
mov dword [rsp + 0x588], 0
mov qword [rsp + 0x5588], 0
mov dword [rsp + 0x550], 0
lea rcx, [0x0100dea0]
call fcn.01053b10
cmp qword [rsp + 0x9100], 0
je 0x1050a03
cmp qword [rsp + 0x9110], 0
je 0x1050a03
cmp qword [rsp + 0x9118], 0
jne 0x1050a0a
xor eax, eax
jmp 0x1052680
mov r8d, 0x6d7
lea rdx, [0x0100de70]
mov ecx, 2
call fcn.01014ff0
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1050a4c
mov rax, qword [rsp + 0x9118]
mov rax, qword [rax]
mov word [rax], 0
jmp 0x1050a53
xor eax, eax
jmp 0x1052680
mov rax, qword [rsp + 0x9110]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x9110]
lea r8, [0x0100dd10]
mov edx, 0x196a
lea rcx, [rsp + 0x5590]
call fcn.01016110
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1050aaf
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x9030], rax
jmp 0x1050abb
mov qword [rsp + 0x9030], 0
lea rcx, [rsp + 0x5590]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x9030]
lea rax, [rcx + rax*2 + 2]
mov r9d, 0x6e0
lea r8, [0x0100de70]
mov edx, eax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015350
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1050b80
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1050b3c
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x9038], rax
jmp 0x1050b48
mov qword [rsp + 0x9038], 0
lea rcx, [rsp + 0x5590]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x9038]
lea rax, [rcx + rax*2 + 2]
lea r8, [rsp + 0x5590]
mov rdx, rax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015e90
jmp 0x1050b87
xor eax, eax
jmp 0x1052680
mov r9, qword [rsp + 0x9110]
lea r8, [0x0100d980]
mov edx, 0x400
lea rcx, [rsp + 0x4d80]
call fcn.01016110
lea rdx, [rsp + 0x4d80]
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x10512ee
mov r8d, 0xeb0
xor edx, edx
lea rcx, [rsp + 0x6e0]
call sub.MSVCR80.dll_memset
lea rax, [rsp + 0x9020]
mov rdi, rax
mov rsi, qword [rsp + 0x9108]
mov ecx, reloc.ODBC32.dll_SQLFreeStmt
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x6e0]
lea rcx, [rsp + 0x9020]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.ODBC32.dll_SQLFreeStmt
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6f0]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
mov r8d, 0xfffffff8
mov edx, 1
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x900]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 2
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1590]
mov qword [rsp + 0x20], rax
mov r9d, 0x200
mov r8d, 0xfffffff8
mov edx, 3
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x904]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 4
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa10]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 5
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa14]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 6
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa18]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 7
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa1c]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 8
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa20]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 9
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa24]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 0xa
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa28]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, VariantTimeToDosDateTime
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa2c]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c80]
mov qword [rsp + 0x20], rax
mov r9d, pe_nt_image_headers64
mov r8d, 0xfffffff8
mov edx, SQLFreeStmt
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x5a0]
mov qword [rsp + 0x20], rax
mov r9d, pe_nt_image_headers64
mov r8d, 0xfffffff8
mov edx, SQLFreeStmt
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa34]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, SQLFreeStmt
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x10512d5
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x01002218]
lea rdx, [0x01002214]
lea rcx, [rsp + 0x6f0]
call fcn.010531b0
lea r8, [rsp + 0x19a0]
mov edx, 0x84
lea rcx, [rsp + 0x6f0]
call fcn.0105ab90
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x01002218]
lea rdx, [0x01002214]
lea rcx, [rsp + 0x1590]
call fcn.010531b0
lea r8, [rsp + 0x19a0]
mov edx, 0x201
lea rcx, [rsp + 0x1590]
call fcn.0105ab90
mov rax, qword [rsp + 0x9100]
add rax, 0x28
mov r8, rax
mov edx, 0x84
lea rcx, [rsp + 0x7f8]
call fcn.0105ab90
lea r8, [0x0100d958]
mov edx, 0x84
lea rcx, [rsp + 0x908]
call fcn.0105ab90
mov r8, qword [rsp + 0x9110]
mov edx, 0x23
lea rcx, [rsp + 0x1540]
call fcn.0105ab90
cmp dword [rsp + 0xa28], 0
je 0x1051084
cmp dword [rsp + 0xa1c], 0
je 0x1051084
lea rax, [0x0100a948]
mov qword [rsp + 0x9040], rax
jmp 0x1051093
lea rax, [0x01001c50]
mov qword [rsp + 0x9040], rax
cmp dword [rsp + 0xa24], 0
je 0x10510b8
cmp dword [rsp + 0xa18], 0
je 0x10510b8
lea rax, [0x0100a948]
mov qword [rsp + 0x9048], rax
jmp 0x10510c7
lea rax, [0x01001c50]
mov qword [rsp + 0x9048], rax
cmp dword [rsp + 0xa20], 0
je 0x10510ec
cmp dword [rsp + 0xa14], 0
je 0x10510ec
lea rax, [0x0100a948]
mov qword [rsp + 0x9050], rax
jmp 0x10510fb
lea rax, [0x01001c50]
mov qword [rsp + 0x9050], rax
mov eax, dword [rsp + 0xa2c]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x9040]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x9048]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x9050]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0xa1c]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0xa18]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0xa14]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0xa10]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x908]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x904]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x1590]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x900]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x6f0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x9110]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x7f8]
lea r8, [0x0100d5a0]
mov edx, 0x196a
lea rcx, [rsp + 0x5590]
call fcn.01016110
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x10511f8
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x9058], rax
jmp 0x1051204
mov qword [rsp + 0x9058], 0
lea rcx, [rsp + 0x5590]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x9058]
lea rax, [rcx + rax*2 + 2]
mov r9d, 0x728
lea r8, [0x0100de70]
mov edx, eax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015350
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x10512c9
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1051285
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x9060], rax
jmp 0x1051291
mov qword [rsp + 0x9060], 0
lea rcx, [rsp + 0x5590]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x9060]
lea rax, [rcx + rax*2 + 2]
lea r8, [rsp + 0x5590]
mov rdx, rax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015e90
jmp 0x10512d0
xor eax, eax
jmp 0x1052680
jmp 0x1050f6a
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x1050c13
jmp 0x105133c
mov r9d, 0x200
lea r8, [rsp + 0xc0]
mov edx, 0x13e
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x9128]
lea r9, [0x01001c30]
lea r8, [rsp + 0xc0]
mov rdx, rax
mov rcx, qword [rsp + 0x9120]
call fcn.01016110
xor eax, eax
jmp 0x1052680
mov r8d, 5
mov edx, 0x998
lea rcx, [rsp + 0x6a8]
call qword [sym.imp.SQLSVC.dll_SHRecMemInit]
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rsp + 0x6a8]
lea rdx, [rsp + 0x6e0]
mov rcx, qword [rsp + 0x9100]
call fcn.01027170
test eax, eax
je 0x1051d7c
cmp dword [rsp + 0x6b4], 0
je 0x1051d7c
mov dword [rsp + 0x588], 0
jmp 0x10513b1
mov eax, dword [rsp + 0x588]
add eax, 1
mov dword [rsp + 0x588], eax
mov eax, dword [rsp + 0x6b4]
cmp dword [rsp + 0x588], eax
jge 0x1051d7a
mov edx, dword [rsp + 0x588]
lea rcx, [rsp + 0x6a8]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x1051d61
mov rax, qword [rsp + 0xb8]
add rax, 4
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x01002218]
lea rdx, [0x01002214]
mov rcx, rax
call fcn.010531b0
mov rax, qword [rsp + 0xb8]
add rax, 4
lea r8, [rsp + 0x19a0]
mov edx, 0x84
mov rcx, rax
call fcn.0105ab90
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x190], 0
je 0x10514a2
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x190]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
lea rax, [rax + rax + 0x1908]
mov dword [rsp + 0x550], eax
mov r8d, 0x74a
lea rdx, [0x0100de70]
mov ecx, dword [rsp + 0x550]
call fcn.01014ff0
mov qword [rsp + 0x590], rax
jmp 0x10514ce
mov dword [rsp + 0x550], 0x1908
mov r8d, 0x74f
lea rdx, [0x0100de70]
mov ecx, dword [rsp + 0x550]
call fcn.01014ff0
mov qword [rsp + 0x590], rax
cmp qword [rsp + 0x590], 0
je 0x10514e6
mov rax, qword [rsp + 0x590]
mov word [rax], 0
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x190], 0
je 0x10515cd
cmp qword [rsp + 0x590], 0
je 0x10515cd
mov eax, dword [rsp + 0x550]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x590]
lea r8, [0x01002218]
lea rdx, [0x01002214]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x190]
call fcn.010531b0
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x190]
call fcn.01015770
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x89b0], rax
mov r8d, 0x75a
lea rdx, [0x0100de70]
mov ecx, dword [rsp + 0x89b0]
call fcn.01014ff0
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 0x190], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x190], 0
je 0x10515cd
mov r8, qword [rsp + 0x590]
mov rdx, qword [rsp + 0x89b0]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x190]
call fcn.0101c9a0
mov rax, qword [rsp + 0xb8]
add rax, 0x2c0
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x01002218]
lea rdx, [0x01002214]
mov rcx, rax
call fcn.010531b0
mov rax, qword [rsp + 0xb8]
add rax, 0x2c0
lea r8, [rsp + 0x19a0]
mov edx, 0x84
mov rcx, rax
call fcn.0105ab90
mov rax, qword [rsp + 0xb8]
add rax, 0x3c8
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x01002218]
lea rdx, [0x01002214]
mov rcx, rax
call fcn.010531b0
mov rax, qword [rsp + 0xb8]
add rax, 0x3c8
lea r8, [rsp + 0x19a0]
mov edx, 0x84
mov rcx, rax
call fcn.0105ab90
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x4e0], 0
je 0x1051769
lea r8, [0x01001c50]
mov edx, 0x196a
lea rcx, [rsp + 0x19a0]
call fcn.0105ab90
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x01002218]
lea rdx, [0x01002214]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x4e0]
call fcn.010531b0
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x4e0]
call fcn.01015770
lea rcx, [rsp + 0x19a0]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x89b8], rax
mov r8d, 0x771
lea rdx, [0x0100de70]
mov ecx, dword [rsp + 0x89b8]
call fcn.01014ff0
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 0x4e0], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x4e0], 0
je 0x1051769
lea r8, [rsp + 0x19a0]
mov rdx, qword [rsp + 0x89b8]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x4e0]
call fcn.0101c9a0
movzx eax, word [0x01001c50]
mov word [rsp + 0x8870], ax
lea rax, [rsp + 0x8872]
mov rdi, rax
xor eax, eax
mov ecx, 0x132
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xb8]
cmp dword [rax + 0x4f0], 0
je 0x1051a2c
cmp dword [0x01068904], 0
je 0x10519d8
mov rax, qword [rsp + 0xb8]
mov r9d, dword [rax + 0x4f0]
lea r8, [0x0100d520]
mov edx, 0x400
lea rcx, [rsp + 0x4d80]
call fcn.01016110
test eax, eax
jge 0x10517e7
mov dword [rsp + 0x9068], 1
jmp 0x10517f2
mov dword [rsp + 0x9068], 0
mov eax, dword [rsp + 0x9068]
mov dword [rsp + 0x89c0], eax
cmp dword [rsp + 0x89c0], 0
jne 0x1051973
lea rdx, [rsp + 0x4d80]
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x1051973
movzx eax, word [0x01001c50]
mov word [rsp + 0x89d0], ax
lea rax, [rsp + 0x89d2]
mov rdi, rax
xor eax, eax
mov ecx, 0x108
rep stosb byte [rdi], al
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x89d0]
mov qword [rsp + 0x20], rax
mov r9d, 0x84
mov r8d, 0xfffffff8
mov edx, 1
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x1051966
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x01002218]
lea rdx, [0x01002214]
lea rcx, [rsp + 0x89d0]
call fcn.010531b0
lea r8, [rsp + 0x19a0]
mov edx, 0x85
lea rcx, [rsp + 0x89d0]
call fcn.0105ab90
test eax, eax
jge 0x10518f6
mov dword [rsp + 0x906c], 1
jmp 0x1051901
mov dword [rsp + 0x906c], 0
mov eax, dword [rsp + 0x906c]
mov dword [rsp + 0x89c0], eax
cmp dword [rsp + 0x89c0], 0
jne 0x1051964
lea r9, [rsp + 0x89d0]
lea r8, [0x0100d4e8]
mov edx, 0x9a
lea rcx, [rsp + 0x8870]
call fcn.01016110
test eax, eax
jge 0x105194b
mov dword [rsp + 0x9070], 1
jmp 0x1051956
mov dword [rsp + 0x9070], 0
mov eax, dword [rsp + 0x9070]
mov dword [rsp + 0x89c0], eax
jmp 0x1051971
mov dword [rsp + 0x89c0], 1
jmp 0x105197e
mov dword [rsp + 0x89c0], 1
cmp dword [rsp + 0x89c0], 0
je 0x10519d6
mov r9d, 0x200
lea r8, [rsp + 0xc0]
mov edx, 0x1be
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x9128]
lea r9, [0x01001c30]
lea r8, [rsp + 0xc0]
mov rdx, rax
mov rcx, qword [rsp + 0x9120]
call fcn.01016110
xor eax, eax
jmp 0x1052680
jmp 0x1051a2c
mov r9d, 0x200
lea r8, [rsp + 0xc0]
mov edx, 0x1bf
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x9128]
lea r8, [rsp + 0xc0]
mov rdx, rax
mov rcx, qword [rsp + 0x9120]
call fcn.0105ab90
lea rcx, [rsp + 0x6a8]
call fcn.01027ae0
xor eax, eax
jmp 0x1052680
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x4e0], 0
je 0x1051a57
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x4e0]
mov qword [rsp + 0x9078], rax
jmp 0x1051a66
lea rax, [0x01001c50]
mov qword [rsp + 0x9078], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x190], 0
je 0x1051a91
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x190]
mov qword [rsp + 0x9080], rax
jmp 0x1051aa0
lea rax, [0x01001c50]
mov qword [rsp + 0x9080], rax
mov rax, qword [rsp + 0xb8]
add rax, 0x2c0
mov qword [rsp + 0x9088], rax
mov rcx, qword [rsp + 0xb8]
add rcx, 0x1b8
mov rdx, qword [rsp + 0xb8]
add rdx, 0x10c
mov qword [rsp + 0x9090], rdx
mov rdi, qword [rsp + 0xb8]
add rdi, 4
movsxd rsi, dword [rsp + 0x550]
xor edx, edx
mov rax, rsi
mov esi, 2
div rsi
lea rdx, [rsp + 0x8870]
mov qword [rsp + 0xa8], rdx
mov rdx, qword [rsp + 0xb8]
mov edx, dword [rdx + 0x1a0]
mov dword [rsp + 0xa0], edx
mov rdx, qword [rsp + 0x9078]
mov qword [rsp + 0x98], rdx
mov rdx, qword [rsp + 0xb8]
mov edx, dword [rdx + 0x4d8]
mov dword [rsp + 0x90], edx
mov rdx, qword [rsp + 0xb8]
mov edx, dword [rdx + 0x4d4]
mov dword [rsp + 0x88], edx
mov rdx, qword [rsp + 0xb8]
mov edx, dword [rdx + 0x4d0]
mov dword [rsp + 0x80], edx
lea rdx, [0x01001c50]
mov qword [rsp + 0x78], rdx
mov rdx, qword [rsp + 0x9088]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rcx
mov rcx, qword [rsp + 0xb8]
mov ecx, dword [rcx + 0x1b4]
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0xb8]
mov ecx, dword [rcx + 0x1b0]
mov dword [rsp + 0x58], ecx
mov rcx, qword [rsp + 0xb8]
mov ecx, dword [rcx + 0x1ac]
mov dword [rsp + 0x50], ecx
mov rcx, qword [rsp + 0xb8]
mov ecx, dword [rcx + 0x1a8]
mov dword [rsp + 0x48], ecx
mov rcx, qword [rsp + 0xb8]
mov ecx, dword [rcx + 0x1a4]
mov dword [rsp + 0x40], ecx
mov rcx, qword [rsp + 0x9080]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x9090]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov rcx, qword [rsp + 0xb8]
mov ecx, dword [rcx]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x9110]
lea r8, [0x0100d100]
mov rdx, rax
mov rcx, qword [rsp + 0x590]
call fcn.01016110
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1051c63
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x9098], rax
jmp 0x1051c6f
mov qword [rsp + 0x9098], 0
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x9098]
lea rax, [rcx + rax*2 + 2]
mov r9d, 0x7cf
lea r8, [0x0100de70]
mov edx, eax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015350
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1051d34
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1051cf0
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x90a0], rax
jmp 0x1051cfc
mov qword [rsp + 0x90a0], 0
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x90a0]
lea rax, [rcx + rax*2 + 2]
mov r8, qword [rsp + 0x590]
mov rdx, rax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015e90
jmp 0x1051d3b
xor eax, eax
jmp 0x1052680
mov rcx, qword [rsp + 0x590]
call fcn.01015770
mov qword [rsp + 0x590], 0
mov dword [rsp + 0x550], 0
jmp 0x1051d75
lea rcx, [rsp + 0x6a8]
call fcn.01027ae0
xor eax, eax
jmp 0x1052680
jmp 0x10513a0
jmp 0x1051dd7
mov r9d, 0x200
lea r8, [rsp + 0xc0]
mov edx, 0x140
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x9128]
lea r9, [0x01001c30]
lea r8, [rsp + 0xc0]
mov rdx, rax
mov rcx, qword [rsp + 0x9120]
call fcn.01016110
lea rcx, [rsp + 0x6a8]
call fcn.01027ae0
xor eax, eax
jmp 0x1052680
lea rcx, [rsp + 0x6a8]
call fcn.01027ae0
mov word [rsp + 0x4d0], 0x2f30
lea rax, [rsp + 0x4d2]
mov rdi, rax
xor eax, eax
mov ecx, SQLBindParameter
rep stosb byte [rdi], al
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x4c0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x520]
lea r8, [rsp + 0x558]
lea rdx, [rsp + 0x6e0]
mov rcx, qword [rsp + 0x9100]
call fcn.01025760
test eax, eax
je 0x1052306
mov dword [rsp + 0x588], 0
jmp 0x1051e62
mov eax, dword [rsp + 0x588]
add eax, 1
mov dword [rsp + 0x588], eax
mov eax, dword [rsp + 0x564]
cmp dword [rsp + 0x588], eax
jge 0x10522e8
mov edx, dword [rsp + 0x588]
lea rcx, [rsp + 0x558]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov qword [rsp + 0x5580], rax
cmp qword [rsp + 0x5580], 0
je 0x10522dc
mov byte [rsp + 0x8ae0], 1
mov dword [rsp + 0x8ae4], 0
jmp 0x1051ec8
mov eax, dword [rsp + 0x8ae4]
add eax, 1
mov dword [rsp + 0x8ae4], eax
cmp dword [rsp + 0x8ae4], 0x10
jge 0x1051ef7
movsxd rax, dword [rsp + 0x8ae4]
mov rcx, qword [rsp + 0x5580]
movzx eax, byte [rcx + rax + 4]
test eax, eax
je 0x1051ef5
mov byte [rsp + 0x8ae0], 0
jmp 0x1051ef7
jmp 0x1051eb7
mov word [rsp + 0x4d0], 0
movzx eax, byte [rsp + 0x8ae0]
test eax, eax
je 0x1051f28
lea r8, [0x0100d0e8]
mov edx, 0x23
lea rcx, [rsp + 0x4d0]
call fcn.0105ab90
jmp 0x1051f4f
mov rax, qword [rsp + 0x5580]
add rax, 4
lea rdx, [rsp + 0x4d0]
mov rcx, rax
call fcn.01049260
test eax, eax
jne 0x1051f4f
xor eax, eax
jmp 0x1052680
mov rax, qword [rsp + 0x5580]
add rax, 0x14
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x01002218]
lea rdx, [0x01002214]
mov rcx, rax
call fcn.010531b0
mov rax, qword [rsp + 0x5580]
add rax, 0x14
lea r8, [rsp + 0x19a0]
mov edx, 0x84
mov rcx, rax
call fcn.0105ab90
mov rax, qword [rsp + 0x5580]
add rax, 0x14
lea rcx, [rsp + 0x7f8]
mov qword [rsp + 0x80], rcx
mov rcx, qword [rsp + 0x5580]
mov ecx, dword [rcx + 0x144]
mov dword [rsp + 0x78], ecx
mov rcx, qword [rsp + 0x5580]
mov ecx, dword [rcx + 0x140]
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x5580]
mov ecx, dword [rcx + 0x13c]
mov dword [rsp + 0x68], ecx
mov rcx, qword [rsp + 0x5580]
mov ecx, dword [rcx + 0x138]
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x5580]
mov ecx, dword [rcx + 0x134]
mov dword [rsp + 0x58], ecx
mov rcx, qword [rsp + 0x5580]
mov ecx, dword [rcx + 0x130]
mov dword [rsp + 0x50], ecx
mov rcx, qword [rsp + 0x5580]
mov ecx, dword [rcx + 0x12c]
mov dword [rsp + 0x48], ecx
mov rcx, qword [rsp + 0x5580]
mov ecx, dword [rcx + 0x128]
mov dword [rsp + 0x40], ecx
mov rcx, qword [rsp + 0x5580]
mov ecx, dword [rcx + 0x124]
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0x5580]
mov ecx, dword [rcx + 0x120]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x5580]
mov ecx, dword [rcx + 0x11c]
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x4d0]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea r8, [0x0100cd00]
mov edx, 0x196a
lea rcx, [rsp + 0x5590]
call fcn.01016110
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x10520db
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x90a8], rax
jmp 0x10520e7
mov qword [rsp + 0x90a8], 0
lea rcx, [rsp + 0x5590]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x90a8]
lea rax, [rcx + rax*2 + 2]
mov r9d, 0x857
lea r8, [0x0100de70]
mov edx, eax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015350
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x10521ac
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1052168
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x90b0], rax
jmp 0x1052174
mov qword [rsp + 0x90b0], 0
lea rcx, [rsp + 0x5590]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x90b0]
lea rax, [rcx + rax*2 + 2]
lea r8, [rsp + 0x5590]
mov rdx, rax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015e90
jmp 0x10521b3
xor eax, eax
jmp 0x1052680
mov r9, qword [rsp + 0x9110]
lea r8, [0x0100cc10]
mov edx, 0x196a
lea rcx, [rsp + 0x5590]
call fcn.01016110
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1052202
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x90b8], rax
jmp 0x105220e
mov qword [rsp + 0x90b8], 0
lea rcx, [rsp + 0x5590]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x90b8]
lea rax, [rcx + rax*2 + 2]
mov r9d, 0x85d
lea r8, [0x0100de70]
mov edx, eax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015350
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x10522d3
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x105228f
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x90c0], rax
jmp 0x105229b
mov qword [rsp + 0x90c0], 0
lea rcx, [rsp + 0x5590]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x90c0]
lea rax, [rcx + rax*2 + 2]
lea r8, [rsp + 0x5590]
mov rdx, rax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015e90
jmp 0x10522da
xor eax, eax
jmp 0x1052680
jmp 0x10522e3
xor eax, eax
jmp 0x1052680
jmp 0x1051e51
lea rcx, [rsp + 0x558]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [rsp + 0x520]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
jmp 0x1052354
mov r9d, 0x200
lea r8, [rsp + 0xc0]
mov edx, 0x141
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x9128]
lea r9, [0x01001c30]
lea r8, [rsp + 0xc0]
mov rdx, rax
mov rcx, qword [rsp + 0x9120]
call fcn.01016110
xor eax, eax
jmp 0x1052680
mov r9d, 0x200
lea r8, [rsp + 0xc0]
mov edx, 0x132
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9, qword [rsp + 0x9110]
lea r8, [rsp + 0xc0]
mov edx, 0x196a
lea rcx, [rsp + 0x19a0]
call fcn.01016110
lea rax, [rsp + 0x19a0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x9110]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x6a0]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x5a0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x9110]
lea r8, [0x0100c9f0]
mov edx, 0x196a
lea rcx, [rsp + 0x5590]
call fcn.01016110
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1052424
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x90c8], rax
jmp 0x1052430
mov qword [rsp + 0x90c8], 0
lea rcx, [rsp + 0x5590]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x90c8]
lea rax, [rcx + rax*2 + 2]
mov r9d, 0x888
lea r8, [0x0100de70]
mov edx, eax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015350
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x10524f5
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x10524b1
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x90d0], rax
jmp 0x10524bd
mov qword [rsp + 0x90d0], 0
lea rcx, [rsp + 0x5590]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x90d0]
lea rax, [rcx + rax*2 + 2]
lea r8, [rsp + 0x5590]
mov rdx, rax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015e90
jmp 0x10524fc
xor eax, eax
jmp 0x1052680
mov rax, qword [rsp + 0x9100]
movzx eax, word [rax + 0xa4c]
cmp eax, 9
jl 0x105267b
mov r9, qword [rsp + 0x9110]
lea r8, [0x0100c970]
mov edx, 0x196a
lea rcx, [rsp + 0x19a0]
call fcn.01016110
lea rdx, [rsp + 0x19a0]
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x105267b
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8af0]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
mov r8d, 0xfffffff8
mov edx, 1
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8bf8]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
mov r8d, 0xfffffff8
mov edx, 2
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8d00]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
mov r8d, 0xfffffff8
mov edx, 3
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x5588]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8e08]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
mov r8d, 0xfffffff8
mov edx, 4
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x105267b
mov r8, qword [rsp + 0x9110]
mov edx, 0x84
lea rcx, [rsp + 0x8f10]
call fcn.0105ab90
lea rdx, [rsp + 0x8af0]
mov rcx, qword [rsp + 0x9130]
call qword [sym.imp.SQLSVC.dll_SHRecMemAdd]
mov eax, 1
mov rcx, qword [rsp + 0x90d8]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x90e8
pop rdi
pop rsi
ret