Function at 0x104e740
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, 0x33d8
call fcn.0105ee40
sub rsp, rax
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x33c0], rax
lea rax, [rsp + 0x2b00]
lea rcx, [0x0100c480]
mov rdi, rax
mov rsi, rcx
mov ecx, gethostbyname
rep movsb byte [rdi], byte [rsi]
movzx eax, word [0x01001c38]
mov word [rsp + 0x6d0], ax
lea rax, [rsp + 0x6d2]
mov rdi, rax
xor eax, eax
mov ecx, 0xffe
rep stosb byte [rdi], al
movzx eax, word [0x01001c38]
mov word [rsp + 0x26f0], ax
lea rax, [rsp + 0x26f2]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
movzx eax, word [0x01001c38]
mov word [rsp + 0x2b40], ax
lea rax, [rsp + 0x2b42]
mov rdi, rax
xor eax, eax
mov ecx, 0x804
rep stosb byte [rdi], al
movzx eax, word [0x01001c38]
mov word [rsp + 0x16e0], ax
lea rax, [rsp + 0x16e2]
mov rdi, rax
xor eax, eax
mov ecx, SQLBindParameter
rep stosb byte [rdi], al
movzx eax, word [0x01001c38]
mov word [rsp + 0x2d0], ax
lea rax, [rsp + 0x2d2]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
movzx eax, word [0x01001c38]
mov word [rsp + 0x1730], ax
lea rax, [rsp + 0x1732]
mov rdi, rax
xor eax, eax
mov ecx, 0xfe
rep stosb byte [rdi], al
mov dword [rsp + 0x1830], 0
mov dword [rsp + 0x16d4], 0
mov qword [rsp + 0x3358], 0
movzx eax, word [0x01001c38]
mov word [rsp + 0xb0], ax
lea rax, [rsp + 0xb2]
mov rdi, rax
xor eax, eax
mov ecx, 0x210
rep stosb byte [rdi], al
mov dword [rsp + 0x1834], 0
mov dword [rsp + 0x16d0], 0
mov qword [rsp + 0x3350], 0
lea rcx, [0x0100c448]
call fcn.01052e60
mov rax, qword [rsp + 0x3400]
add rax, 0xc
mov rcx, rax
call fcn.01046d80
test eax, eax
je 0x104e90c
mov rax, qword [rsp + 0x3400]
add rax, 0xc
lea rdx, [rsp + 0x16e0]
mov rcx, rax
call fcn.01048400
jmp 0x104e943
mov rax, qword [rsp + 0x3400]
cmp dword [rax + 4], 3
je 0x104e943
mov r9d, dword [rsp + 0x3410]
mov r8, qword [rsp + 0x3408]
mov edx, 0x16
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
xor eax, eax
jmp 0x104f38e
mov rax, qword [rsp + 0x3400]
cmp dword [rax + 4], 1
je 0x104e971
mov rax, qword [rsp + 0x3400]
cmp dword [rax + 4], 2
je 0x104e971
mov rax, qword [rsp + 0x3400]
cmp dword [rax + 4], 3
jne 0x104e9fa
cmp qword [rsp + 0x3420], 0
jne 0x104e983
xor eax, eax
jmp 0x104f38e
mov rax, qword [rsp + 0x3420]
mov dword [rax], 1
movsxd rax, dword [rsp + 0x3410]
lea rcx, [rsp + 0x2b00]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x3408]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1834]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 1
lea rdx, [0x0100c420]
mov rcx, qword [rsp + 0x33f8]
call fcn.01020da0
test eax, eax
je 0x104e9f3
cmp dword [rsp + 0x1834], 0
je 0x104e9fa
xor eax, eax
jmp 0x104f38e
mov rax, qword [rsp + 0x3400]
mov eax, dword [rax + 4]
mov dword [rsp + 0x3390], eax
cmp dword [rsp + 0x3390], 1
je 0x104ea53
cmp dword [rsp + 0x3390], 2
je 0x104ebaa
cmp dword [rsp + 0x3390], 3
je 0x104f01d
cmp dword [rsp + 0x3390], 4
je 0x104f1a8
cmp dword [rsp + 0x3390], 5
je 0x104f260
jmp 0x104f315
lea rax, [rsp + 0x3370]
mov rcx, qword [rsp + 0x3400]
mov rdi, rax
lea rsi, [rcx + 0xc]
mov ecx, reloc.ODBC32.dll_SQLFreeStmt
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x3430]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x3410]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x3408]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3358]
lea r8, [rsp + 0x16e0]
lea rdx, [rsp + 0x3370]
mov rcx, qword [rsp + 0x33f0]
call fcn.0104fba0
test eax, eax
je 0x104eb8d
movsxd rax, dword [rsp + 0x3410]
lea rcx, [rsp + 0x2b00]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x3408]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1834]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 1
mov rdx, qword [rsp + 0x3358]
mov rcx, qword [rsp + 0x33f8]
call fcn.01020da0
test eax, eax
je 0x104eb4c
cmp dword [rsp + 0x1834], 0
je 0x104eb33
mov dword [rsp + 0x3394], 0
jmp 0x104eb3e
mov dword [rsp + 0x3394], 1
mov eax, dword [rsp + 0x3394]
mov dword [rsp + 0x1830], eax
cmp dword [rsp + 0x1830], 0
je 0x104eb6f
mov rax, qword [rsp + 0x3428]
mov eax, dword [rax]
add eax, 1
mov rcx, qword [rsp + 0x3428]
mov dword [rcx], eax
jmp 0x104eb8d
cmp dword [0x010676a4], 0
je 0x104eb8d
mov rdx, qword [rsp + 0x3358]
lea rcx, [rsp + 0x16e0]
call fcn.010519e0
cmp qword [rsp + 0x3358], 0
je 0x104eba5
mov rcx, qword [rsp + 0x3358]
call fcn.01015550
jmp 0x104f361
mov r8d, 0xeb0
xor edx, edx
lea rcx, [rsp + 0x1840]
call sub.MSVCR80.dll_memset
lea rax, [rsp + 0x3380]
mov rcx, qword [rsp + 0x3400]
mov rdi, rax
lea rsi, [rcx + 0xc]
mov ecx, reloc.ODBC32.dll_SQLFreeStmt
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x26f0]
lea r8, [rsp + 0x1840]
lea rdx, [rsp + 0x3380]
mov rcx, qword [rsp + 0x33f0]
call fcn.01023ef0
test eax, eax
je 0x104efca
mov dword [rsp + 0x20], 0x212
lea r9, [rsp + 0xb0]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
lea rcx, [rsp + 0x1850]
call fcn.01052500
mov dword [rsp + 0x20], 0x806
lea r9, [rsp + 0x2b40]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
lea rcx, [rsp + 0x26f0]
call fcn.01052500
lea r9, [rsp + 0x16e0]
lea r8, [0x0100c2f0]
mov edx, 0x800
lea rcx, [rsp + 0x6d0]
call fcn.01015ef0
movsxd rax, dword [rsp + 0x3410]
lea rcx, [rsp + 0x2b00]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x3408]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1834]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
lea rdx, [rsp + 0x6d0]
mov rcx, qword [rsp + 0x33f0]
call fcn.01020da0
mov dword [rsp + 0x16d4], eax
cmp dword [rsp + 0x16d4], 0
je 0x104edae
cmp dword [rsp + 0x1834], 0
jne 0x104edae
lea rax, [rsp + 0x3350]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1730]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
mov r8d, 0xfffffff8
mov edx, 1
mov rcx, qword [rsp + 0x33f0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x3350]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x16d0]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 2
mov rcx, qword [rsp + 0x33f0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, qword [rsp + 0x33f0]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x104ed87
jmp 0x104ed70
mov rcx, qword [rsp + 0x33f0]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x104ecfe
mov rcx, qword [rsp + 0x33f0]
call qword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
jmp 0x104edb8
jmp 0x104efca
cmp dword [rsp + 0x1b88], 0
je 0x104eddd
cmp dword [rsp + 0x1b7c], 0
je 0x104eddd
lea rax, [0x0100a6c8]
mov qword [rsp + 0x3398], rax
jmp 0x104edec
lea rax, [0x01001c38]
mov qword [rsp + 0x3398], rax
cmp dword [rsp + 0x1b84], 0
je 0x104ee11
cmp dword [rsp + 0x1b78], 0
je 0x104ee11
lea rax, [0x0100a6c8]
mov qword [rsp + 0x33a0], rax
jmp 0x104ee20
lea rax, [0x01001c38]
mov qword [rsp + 0x33a0], rax
cmp dword [rsp + 0x1b80], 0
je 0x104ee45
cmp dword [rsp + 0x1b74], 0
je 0x104ee45
lea rax, [0x0100a6c8]
mov qword [rsp + 0x33a8], rax
jmp 0x104ee54
lea rax, [0x01001c38]
mov qword [rsp + 0x33a8], rax
lea rax, [rsp + 0x26a0]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x16d0]
mov dword [rsp + 0x88], eax
lea rax, [rsp + 0x1730]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x1b8c]
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x3398]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x33a0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x33a8]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x1b7c]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x1b78]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x1b74]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x1b70]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x1a64]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x2b40]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x1a60]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x26a0]
lea r8, [0x0100bf50]
mov edx, 0x800
lea rcx, [rsp + 0x6d0]
call fcn.01015ef0
test eax, eax
jge 0x104ef3f
jmp 0x104efca
movsxd rax, dword [rsp + 0x3410]
lea rcx, [rsp + 0x2b00]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x3408]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1834]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 1
lea rdx, [rsp + 0x6d0]
mov rcx, qword [rsp + 0x33f8]
call fcn.01020da0
test eax, eax
je 0x104efc8
cmp dword [rsp + 0x1834], 0
je 0x104efaf
mov dword [rsp + 0x33b0], 0
jmp 0x104efba
mov dword [rsp + 0x33b0], 1
mov eax, dword [rsp + 0x33b0]
mov dword [rsp + 0x1830], eax
jmp 0x104f018
mov r9d, 0x200
lea r8, [rsp + 0x2d0]
mov edx, 0x13e
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x3410]
lea r9, [0x01001c18]
lea r8, [rsp + 0x2d0]
mov rdx, rax
mov rcx, qword [rsp + 0x3408]
call fcn.01015ef0
xor eax, eax
jmp 0x104f38e
jmp 0x104f361
movzx eax, word [rsp + 0x16e0]
test eax, eax
je 0x104f0f6
lea rax, [rsp + 0x16e0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x16e0]
lea r8, [0x0100be70]
mov edx, 0x800
lea rcx, [rsp + 0x6d0]
call fcn.01015ef0
mov dword [rsp + 0x3360], 0
jmp 0x104f079
mov eax, dword [rsp + 0x3360]
add eax, 1
mov dword [rsp + 0x3360], eax
mov rax, qword [rsp + 0x3430]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x3360], eax
jge 0x104f0f4
mov edx, dword [rsp + 0x3360]
mov rcx, qword [rsp + 0x3430]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov qword [rsp + 0x3368], rax
cmp qword [rsp + 0x3368], 0
je 0x104f0ef
mov rax, qword [rsp + 0x3368]
add rax, 0x420
mov rdx, rax
lea rcx, [rsp + 0x16e0]
call qword [sym.imp.MSVCR80.dll_wcscmp]
test eax, eax
jne 0x104f0ef
mov edx, dword [rsp + 0x3360]
mov rcx, qword [rsp + 0x3430]
call qword [sym.imp.SQLSVC.dll_SHRecMemDelete]
jmp 0x104f0f4
jmp 0x104f068
jmp 0x104f11e
mov rax, qword [rsp + 0x33f0]
add rax, 0x28
mov r9, rax
lea r8, [0x0100b2d0]
mov edx, 0x800
lea rcx, [rsp + 0x6d0]
call fcn.01015ef0
movsxd rax, dword [rsp + 0x3410]
lea rcx, [rsp + 0x2b00]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x3408]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1834]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 1
lea rdx, [rsp + 0x6d0]
mov rcx, qword [rsp + 0x33f8]
call fcn.01020da0
cmp dword [rsp + 0x1834], 0
jne 0x104f18a
mov dword [rsp + 0x33b4], 1
jmp 0x104f195
mov dword [rsp + 0x33b4], 0
mov eax, dword [rsp + 0x33b4]
mov dword [rsp + 0x1830], eax
jmp 0x104f361
lea r9, [rsp + 0x16e0]
lea r8, [0x0100be10]
mov edx, 0x800
lea rcx, [rsp + 0x6d0]
call fcn.01015ef0
movsxd rax, dword [rsp + 0x3410]
lea rcx, [rsp + 0x2b00]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x3408]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1834]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 1
lea rdx, [rsp + 0x6d0]
mov rcx, qword [rsp + 0x33f8]
call fcn.01020da0
cmp dword [rsp + 0x1834], 0
je 0x104f242
cmp dword [rsp + 0x1834], 0x5606
je 0x104f242
mov dword [rsp + 0x33b8], 0
jmp 0x104f24d
mov dword [rsp + 0x33b8], 1
mov eax, dword [rsp + 0x33b8]
mov dword [rsp + 0x1830], eax
jmp 0x104f361
lea r9, [rsp + 0x16e0]
lea r8, [0x0100bdb0]
mov edx, 0x800
lea rcx, [rsp + 0x6d0]
call fcn.01015ef0
movsxd rax, dword [rsp + 0x3410]
lea rcx, [rsp + 0x2b00]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x3408]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1834]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 1
lea rdx, [rsp + 0x6d0]
mov rcx, qword [rsp + 0x33f8]
call fcn.01020da0
cmp dword [rsp + 0x1834], 0
je 0x104f2fa
cmp dword [rsp + 0x1834], 0x5606
je 0x104f2fa
mov dword [rsp + 0x33bc], 0
jmp 0x104f305
mov dword [rsp + 0x33bc], 1
mov eax, dword [rsp + 0x33bc]
mov dword [rsp + 0x1830], eax
jmp 0x104f361
mov r9d, 0x200
lea r8, [rsp + 0x2d0]
mov edx, 0x124
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x3410]
mov rcx, qword [rsp + 0x3400]
mov r9d, dword [rcx + 4]
lea r8, [rsp + 0x2d0]
mov rdx, rax
mov rcx, qword [rsp + 0x3408]
call fcn.01015ef0
cmp qword [rsp + 0x3418], 0
je 0x104f387
cmp dword [rsp + 0x1834], 0
je 0x104f387
mov rax, qword [rsp + 0x3418]
mov ecx, dword [rsp + 0x1834]
mov dword [rax], ecx
mov eax, dword [rsp + 0x1830]
mov rcx, qword [rsp + 0x33c0]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x33d8
pop rdi
pop rsi
ret