Function at 0x104fba0
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.0105ee40
sub rsp, rax
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x90d8], rax
movzx eax, word [0x01001c38]
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 [0x01001c38]
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 [0x01001c38]
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 [0x01001c38]
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 [0x01001c38]
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 [0x01001c38]
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 [0x01001c38]
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, [0x0100dc20]
call fcn.01052e60
cmp qword [rsp + 0x9100], 0
je 0x104fd53
cmp qword [rsp + 0x9110], 0
je 0x104fd53
cmp qword [rsp + 0x9118], 0
jne 0x104fd5a
xor eax, eax
jmp 0x10519b8
mov r8d, 0x6b0
lea rdx, [0x0100dbf0]
mov ecx, 2
call fcn.01014dd0
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x104fd9c
mov rax, qword [rsp + 0x9118]
mov rax, qword [rax]
mov word [rax], 0
jmp 0x104fda3
xor eax, eax
jmp 0x10519b8
mov rax, qword [rsp + 0x9110]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x9110]
lea r8, [0x0100da90]
mov edx, 0x196a
lea rcx, [rsp + 0x5590]
call fcn.01015ef0
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x104fdff
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 0x104fe0b
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, 0x6b9
lea r8, [0x0100dbf0]
mov edx, eax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015130
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x104fed0
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x104fe8c
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 0x104fe98
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.01015c70
jmp 0x104fed7
xor eax, eax
jmp 0x10519b8
mov r9, qword [rsp + 0x9110]
lea r8, [0x0100d700]
mov edx, 0x400
lea rcx, [rsp + 0x4d80]
call fcn.01015ef0
lea rdx, [rsp + 0x4d80]
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x105063e
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, 0x100
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, 0x100
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 0x1050625
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
lea rcx, [rsp + 0x6f0]
call fcn.01052500
lea r8, [rsp + 0x19a0]
mov edx, 0x84
lea rcx, [rsp + 0x6f0]
call fcn.01013c30
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
lea rcx, [rsp + 0x1590]
call fcn.01052500
lea r8, [rsp + 0x19a0]
mov edx, 0x201
lea rcx, [rsp + 0x1590]
call fcn.01013c30
mov rax, qword [rsp + 0x9100]
add rax, 0x28
mov r8, rax
mov edx, 0x84
lea rcx, [rsp + 0x7f8]
call fcn.01013c30
lea r8, [0x0100d6d8]
mov edx, 0x84
lea rcx, [rsp + 0x908]
call fcn.01013c30
mov r8, qword [rsp + 0x9110]
mov edx, 0x23
lea rcx, [rsp + 0x1540]
call fcn.01013c30
cmp dword [rsp + 0xa28], 0
je 0x10503d4
cmp dword [rsp + 0xa1c], 0
je 0x10503d4
lea rax, [0x0100a6c8]
mov qword [rsp + 0x9040], rax
jmp 0x10503e3
lea rax, [0x01001c38]
mov qword [rsp + 0x9040], rax
cmp dword [rsp + 0xa24], 0
je 0x1050408
cmp dword [rsp + 0xa18], 0
je 0x1050408
lea rax, [0x0100a6c8]
mov qword [rsp + 0x9048], rax
jmp 0x1050417
lea rax, [0x01001c38]
mov qword [rsp + 0x9048], rax
cmp dword [rsp + 0xa20], 0
je 0x105043c
cmp dword [rsp + 0xa14], 0
je 0x105043c
lea rax, [0x0100a6c8]
mov qword [rsp + 0x9050], rax
jmp 0x105044b
lea rax, [0x01001c38]
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, [0x0100d320]
mov edx, 0x196a
lea rcx, [rsp + 0x5590]
call fcn.01015ef0
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1050548
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 0x1050554
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, 0x701
lea r8, [0x0100dbf0]
mov edx, eax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015130
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1050619
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x10505d5
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 0x10505e1
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.01015c70
jmp 0x1050620
xor eax, eax
jmp 0x10519b8
jmp 0x10502ba
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x104ff63
jmp 0x105068c
mov r9d, 0x200
lea r8, [rsp + 0xc0]
mov edx, 0x13e
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x9128]
lea r9, [0x01001c18]
lea r8, [rsp + 0xc0]
mov rdx, rax
mov rcx, qword [rsp + 0x9120]
call fcn.01015ef0
xor eax, eax
jmp 0x10519b8
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.01026790
test eax, eax
je 0x10510cc
cmp dword [rsp + 0x6b4], 0
je 0x10510cc
mov dword [rsp + 0x588], 0
jmp 0x1050701
mov eax, dword [rsp + 0x588]
add eax, 1
mov dword [rsp + 0x588], eax
mov eax, dword [rsp + 0x6b4]
cmp dword [rsp + 0x588], eax
jge 0x10510ca
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 0x10510b1
mov rax, qword [rsp + 0xb8]
add rax, 4
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
mov rcx, rax
call fcn.01052500
mov rax, qword [rsp + 0xb8]
add rax, 4
lea r8, [rsp + 0x19a0]
mov edx, 0x84
mov rcx, rax
call fcn.01013c30
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x190], 0
je 0x10507f2
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, 0x720
lea rdx, [0x0100dbf0]
mov ecx, dword [rsp + 0x550]
call fcn.01014dd0
mov qword [rsp + 0x590], rax
jmp 0x105081e
mov dword [rsp + 0x550], 0x1908
mov r8d, 0x725
lea rdx, [0x0100dbf0]
mov ecx, dword [rsp + 0x550]
call fcn.01014dd0
mov qword [rsp + 0x590], rax
cmp qword [rsp + 0x590], 0
je 0x1050836
mov rax, qword [rsp + 0x590]
mov word [rax], 0
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x190], 0
je 0x105091d
cmp qword [rsp + 0x590], 0
je 0x105091d
mov eax, dword [rsp + 0x550]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x590]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x190]
call fcn.01052500
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x190]
call fcn.01015550
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x89b0], rax
mov r8d, 0x730
lea rdx, [0x0100dbf0]
mov ecx, dword [rsp + 0x89b0]
call fcn.01014dd0
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 0x190], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x190], 0
je 0x105091d
mov r8, qword [rsp + 0x590]
mov rdx, qword [rsp + 0x89b0]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x190]
call fcn.0101c790
mov rax, qword [rsp + 0xb8]
add rax, 0x2c0
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
mov rcx, rax
call fcn.01052500
mov rax, qword [rsp + 0xb8]
add rax, 0x2c0
lea r8, [rsp + 0x19a0]
mov edx, 0x84
mov rcx, rax
call fcn.01013c30
mov rax, qword [rsp + 0xb8]
add rax, 0x3c8
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
mov rcx, rax
call fcn.01052500
mov rax, qword [rsp + 0xb8]
add rax, 0x3c8
lea r8, [rsp + 0x19a0]
mov edx, 0x84
mov rcx, rax
call fcn.01013c30
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x4e0], 0
je 0x1050ab9
lea r8, [0x01001c38]
mov edx, 0x196a
lea rcx, [rsp + 0x19a0]
call fcn.01013c30
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x4e0]
call fcn.01052500
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x4e0]
call fcn.01015550
lea rcx, [rsp + 0x19a0]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x89b8], rax
mov r8d, 0x747
lea rdx, [0x0100dbf0]
mov ecx, dword [rsp + 0x89b8]
call fcn.01014dd0
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 0x4e0], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x4e0], 0
je 0x1050ab9
lea r8, [rsp + 0x19a0]
mov rdx, qword [rsp + 0x89b8]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x4e0]
call fcn.0101c790
movzx eax, word [0x01001c38]
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 0x1050d7c
cmp dword [0x01067904], 0
je 0x1050d28
mov rax, qword [rsp + 0xb8]
mov r9d, dword [rax + 0x4f0]
lea r8, [0x0100d2a0]
mov edx, 0x400
lea rcx, [rsp + 0x4d80]
call fcn.01015ef0
test eax, eax
jge 0x1050b37
mov dword [rsp + 0x9068], 1
jmp 0x1050b42
mov dword [rsp + 0x9068], 0
mov eax, dword [rsp + 0x9068]
mov dword [rsp + 0x89c0], eax
cmp dword [rsp + 0x89c0], 0
jne 0x1050cc3
lea rdx, [rsp + 0x4d80]
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x1050cc3
movzx eax, word [0x01001c38]
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 0x1050cb6
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
lea rcx, [rsp + 0x89d0]
call fcn.01052500
lea r8, [rsp + 0x19a0]
mov edx, 0x85
lea rcx, [rsp + 0x89d0]
call fcn.01013c30
test eax, eax
jge 0x1050c46
mov dword [rsp + 0x906c], 1
jmp 0x1050c51
mov dword [rsp + 0x906c], 0
mov eax, dword [rsp + 0x906c]
mov dword [rsp + 0x89c0], eax
cmp dword [rsp + 0x89c0], 0
jne 0x1050cb4
lea r9, [rsp + 0x89d0]
lea r8, [0x0100d268]
mov edx, 0x9a
lea rcx, [rsp + 0x8870]
call fcn.01015ef0
test eax, eax
jge 0x1050c9b
mov dword [rsp + 0x9070], 1
jmp 0x1050ca6
mov dword [rsp + 0x9070], 0
mov eax, dword [rsp + 0x9070]
mov dword [rsp + 0x89c0], eax
jmp 0x1050cc1
mov dword [rsp + 0x89c0], 1
jmp 0x1050cce
mov dword [rsp + 0x89c0], 1
cmp dword [rsp + 0x89c0], 0
je 0x1050d26
mov r9d, 0x200
lea r8, [rsp + 0xc0]
mov edx, 0x1be
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x9128]
lea r9, [0x01001c18]
lea r8, [rsp + 0xc0]
mov rdx, rax
mov rcx, qword [rsp + 0x9120]
call fcn.01015ef0
xor eax, eax
jmp 0x10519b8
jmp 0x1050d7c
mov r9d, 0x200
lea r8, [rsp + 0xc0]
mov edx, 0x1bf
mov rcx, qword [0x01068158]
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.01013c30
lea rcx, [rsp + 0x6a8]
call fcn.010270e0
xor eax, eax
jmp 0x10519b8
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x4e0], 0
je 0x1050da7
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x4e0]
mov qword [rsp + 0x9078], rax
jmp 0x1050db6
lea rax, [0x01001c38]
mov qword [rsp + 0x9078], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x190], 0
je 0x1050de1
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x190]
mov qword [rsp + 0x9080], rax
jmp 0x1050df0
lea rax, [0x01001c38]
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, [0x01001c38]
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, [0x0100ce80]
mov rdx, rax
mov rcx, qword [rsp + 0x590]
call fcn.01015ef0
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1050fb3
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 0x1050fbf
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, 0x7a2
lea r8, [0x0100dbf0]
mov edx, eax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015130
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1051084
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1051040
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 0x105104c
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.01015c70
jmp 0x105108b
xor eax, eax
jmp 0x10519b8
mov rcx, qword [rsp + 0x590]
call fcn.01015550
mov qword [rsp + 0x590], 0
mov dword [rsp + 0x550], 0
jmp 0x10510c5
lea rcx, [rsp + 0x6a8]
call fcn.010270e0
xor eax, eax
jmp 0x10519b8
jmp 0x10506f0
jmp 0x1051127
mov r9d, 0x200
lea r8, [rsp + 0xc0]
mov edx, 0x140
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x9128]
lea r9, [0x01001c18]
lea r8, [rsp + 0xc0]
mov rdx, rax
mov rcx, qword [rsp + 0x9120]
call fcn.01015ef0
lea rcx, [rsp + 0x6a8]
call fcn.010270e0
xor eax, eax
jmp 0x10519b8
lea rcx, [rsp + 0x6a8]
call fcn.010270e0
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.01024d80
test eax, eax
je 0x1051656
mov dword [rsp + 0x588], 0
jmp 0x10511b2
mov eax, dword [rsp + 0x588]
add eax, 1
mov dword [rsp + 0x588], eax
mov eax, dword [rsp + 0x564]
cmp dword [rsp + 0x588], eax
jge 0x1051638
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 0x105162c
mov byte [rsp + 0x8ae0], 1
mov dword [rsp + 0x8ae4], 0
jmp 0x1051218
mov eax, dword [rsp + 0x8ae4]
add eax, 1
mov dword [rsp + 0x8ae4], eax
cmp dword [rsp + 0x8ae4], 0x10
jge 0x1051247
movsxd rax, dword [rsp + 0x8ae4]
mov rcx, qword [rsp + 0x5580]
movzx eax, byte [rcx + rax + 4]
test eax, eax
je 0x1051245
mov byte [rsp + 0x8ae0], 0
jmp 0x1051247
jmp 0x1051207
mov word [rsp + 0x4d0], 0
movzx eax, byte [rsp + 0x8ae0]
test eax, eax
je 0x1051278
lea r8, [0x0100ce68]
mov edx, 0x23
lea rcx, [rsp + 0x4d0]
call fcn.01013c30
jmp 0x105129f
mov rax, qword [rsp + 0x5580]
add rax, 4
lea rdx, [rsp + 0x4d0]
mov rcx, rax
call fcn.01048600
test eax, eax
jne 0x105129f
xor eax, eax
jmp 0x10519b8
mov rax, qword [rsp + 0x5580]
add rax, 0x14
mov dword [rsp + 0x20], 0x32d4
lea r9, [rsp + 0x19a0]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
mov rcx, rax
call fcn.01052500
mov rax, qword [rsp + 0x5580]
add rax, 0x14
lea r8, [rsp + 0x19a0]
mov edx, 0x84
mov rcx, rax
call fcn.01013c30
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, [0x0100ca80]
mov edx, 0x196a
lea rcx, [rsp + 0x5590]
call fcn.01015ef0
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x105142b
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 0x1051437
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, 0x827
lea r8, [0x0100dbf0]
mov edx, eax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015130
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x10514fc
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x10514b8
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 0x10514c4
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.01015c70
jmp 0x1051503
xor eax, eax
jmp 0x10519b8
mov r9, qword [rsp + 0x9110]
lea r8, [0x0100c990]
mov edx, 0x196a
lea rcx, [rsp + 0x5590]
call fcn.01015ef0
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1051552
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 0x105155e
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, 0x82d
lea r8, [0x0100dbf0]
mov edx, eax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015130
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1051623
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x10515df
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 0x10515eb
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.01015c70
jmp 0x105162a
xor eax, eax
jmp 0x10519b8
jmp 0x1051633
xor eax, eax
jmp 0x10519b8
jmp 0x10511a1
lea rcx, [rsp + 0x558]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [rsp + 0x520]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
jmp 0x10516a4
mov r9d, 0x200
lea r8, [rsp + 0xc0]
mov edx, 0x141
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x9128]
lea r9, [0x01001c18]
lea r8, [rsp + 0xc0]
mov rdx, rax
mov rcx, qword [rsp + 0x9120]
call fcn.01015ef0
xor eax, eax
jmp 0x10519b8
mov r9d, 0x200
lea r8, [rsp + 0xc0]
mov edx, 0x132
mov rcx, qword [0x01068158]
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.01015ef0
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, [0x0100c770]
mov edx, 0x196a
lea rcx, [rsp + 0x5590]
call fcn.01015ef0
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1051774
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 0x1051780
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, 0x852
lea r8, [0x0100dbf0]
mov edx, eax
mov rax, qword [rsp + 0x9118]
mov rcx, qword [rax]
call fcn.01015130
mov rcx, qword [rsp + 0x9118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1051845
mov rax, qword [rsp + 0x9118]
cmp qword [rax], 0
je 0x1051801
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 0x105180d
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.01015c70
jmp 0x105184c
xor eax, eax
jmp 0x10519b8
mov r9, qword [rsp + 0x9110]
lea r8, [0x0100c6f0]
mov edx, 0x196a
lea rcx, [rsp + 0x19a0]
call fcn.01015ef0
lea rdx, [rsp + 0x19a0]
mov rcx, qword [rsp + 0x9100]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x10519b3
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 0x10519b3
mov r8, qword [rsp + 0x9110]
mov edx, 0x84
lea rcx, [rsp + 0x8f10]
call fcn.01013c30
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.010588f0
add rsp, 0x90e8
pop rdi
pop rsi
ret