Function at 0x104f3f0
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.0105fe80
sub rsp, rax
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x33c0], rax
lea rax, [rsp + 0x2b00]
lea rcx, [0x0100c700]
mov rdi, rax
mov rsi, rcx
mov ecx, gethostbyname
rep movsb byte [rdi], byte [rsi]
movzx eax, word [0x01001c50]
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 [0x01001c50]
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 [0x01001c50]
mov word [rsp + 0x2b40], ax
lea rax, [rsp + 0x2b42]
mov rdi, rax
xor eax, eax
mov ecx, 0x804
rep stosb byte [rdi], al
mov word [rsp + 0x16e0], 0
lea rax, [rsp + 0x16e2]
mov rdi, rax
xor eax, eax
mov ecx, SQLBindParameter
rep stosb byte [rdi], al
movzx eax, word [0x01001c50]
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 [0x01001c50]
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 [0x01001c50]
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, [0x0100c6c8]
call fcn.01053b10
mov rax, qword [rsp + 0x3400]
add rax, 0xc
mov rcx, rax
call fcn.010479a0
test eax, eax
je 0x104f5b7
mov rax, qword [rsp + 0x3400]
add rax, 0xc
lea rdx, [rsp + 0x16e0]
mov rcx, rax
call fcn.01049060
jmp 0x104f5ee
mov rax, qword [rsp + 0x3400]
cmp dword [rax + 4], 3
je 0x104f5ee
mov r9d, dword [rsp + 0x3410]
mov r8, qword [rsp + 0x3408]
mov edx, 0x16
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
xor eax, eax
jmp 0x1050039
mov rax, qword [rsp + 0x3400]
cmp dword [rax + 4], 1
je 0x104f61c
mov rax, qword [rsp + 0x3400]
cmp dword [rax + 4], 2
je 0x104f61c
mov rax, qword [rsp + 0x3400]
cmp dword [rax + 4], 3
jne 0x104f6a5
cmp qword [rsp + 0x3420], 0
jne 0x104f62e
xor eax, eax
jmp 0x1050039
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, [0x0100c6a0]
mov rcx, qword [rsp + 0x33f8]
call fcn.01021550
test eax, eax
je 0x104f69e
cmp dword [rsp + 0x1834], 0
je 0x104f6a5
xor eax, eax
jmp 0x1050039
mov rax, qword [rsp + 0x3400]
mov eax, dword [rax + 4]
mov dword [rsp + 0x3390], eax
cmp dword [rsp + 0x3390], 1
je 0x104f6fe
cmp dword [rsp + 0x3390], 2
je 0x104f855
cmp dword [rsp + 0x3390], 3
je 0x104fcc8
cmp dword [rsp + 0x3390], 4
je 0x104fe53
cmp dword [rsp + 0x3390], 5
je 0x104ff0b
jmp 0x104ffc0
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.01050850
test eax, eax
je 0x104f838
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.01021550
test eax, eax
je 0x104f7f7
cmp dword [rsp + 0x1834], 0
je 0x104f7de
mov dword [rsp + 0x3394], 0
jmp 0x104f7e9
mov dword [rsp + 0x3394], 1
mov eax, dword [rsp + 0x3394]
mov dword [rsp + 0x1830], eax
cmp dword [rsp + 0x1830], 0
je 0x104f81a
mov rax, qword [rsp + 0x3428]
mov eax, dword [rax]
add eax, 1
mov rcx, qword [rsp + 0x3428]
mov dword [rcx], eax
jmp 0x104f838
cmp dword [0x010686a4], 0
je 0x104f838
mov rdx, qword [rsp + 0x3358]
lea rcx, [rsp + 0x16e0]
call fcn.010526a0
cmp qword [rsp + 0x3358], 0
je 0x104f850
mov rcx, qword [rsp + 0x3358]
call fcn.01015770
jmp 0x105000c
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.010248d0
test eax, eax
je 0x104fc75
mov dword [rsp + 0x20], 0x212
lea r9, [rsp + 0xb0]
lea r8, [0x01002218]
lea rdx, [0x01002214]
lea rcx, [rsp + 0x1850]
call fcn.010531b0
mov dword [rsp + 0x20], 0x806
lea r9, [rsp + 0x2b40]
lea r8, [0x01002218]
lea rdx, [0x01002214]
lea rcx, [rsp + 0x26f0]
call fcn.010531b0
lea r9, [rsp + 0x16e0]
lea r8, [0x0100c570]
mov edx, 0x800
lea rcx, [rsp + 0x6d0]
call fcn.01016110
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.01021550
mov dword [rsp + 0x16d4], eax
cmp dword [rsp + 0x16d4], 0
je 0x104fa59
cmp dword [rsp + 0x1834], 0
jne 0x104fa59
lea rax, [rsp + 0x3350]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1730]
mov qword [rsp + 0x20], rax
mov r9d, pe_nt_image_headers64
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 0x104fa32
jmp 0x104fa1b
mov rcx, qword [rsp + 0x33f0]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x104f9a9
mov rcx, qword [rsp + 0x33f0]
call qword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
jmp 0x104fa63
jmp 0x104fc75
cmp dword [rsp + 0x1b88], 0
je 0x104fa88
cmp dword [rsp + 0x1b7c], 0
je 0x104fa88
lea rax, [0x0100a948]
mov qword [rsp + 0x3398], rax
jmp 0x104fa97
lea rax, [0x01001c50]
mov qword [rsp + 0x3398], rax
cmp dword [rsp + 0x1b84], 0
je 0x104fabc
cmp dword [rsp + 0x1b78], 0
je 0x104fabc
lea rax, [0x0100a948]
mov qword [rsp + 0x33a0], rax
jmp 0x104facb
lea rax, [0x01001c50]
mov qword [rsp + 0x33a0], rax
cmp dword [rsp + 0x1b80], 0
je 0x104faf0
cmp dword [rsp + 0x1b74], 0
je 0x104faf0
lea rax, [0x0100a948]
mov qword [rsp + 0x33a8], rax
jmp 0x104faff
lea rax, [0x01001c50]
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, [0x0100c1d0]
mov edx, 0x800
lea rcx, [rsp + 0x6d0]
call fcn.01016110
test eax, eax
jge 0x104fbea
jmp 0x104fc75
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.01021550
test eax, eax
je 0x104fc73
cmp dword [rsp + 0x1834], 0
je 0x104fc5a
mov dword [rsp + 0x33b0], 0
jmp 0x104fc65
mov dword [rsp + 0x33b0], 1
mov eax, dword [rsp + 0x33b0]
mov dword [rsp + 0x1830], eax
jmp 0x104fcc3
mov r9d, 0x200
lea r8, [rsp + 0x2d0]
mov edx, 0x13e
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
movsxd rax, dword [rsp + 0x3410]
lea r9, [0x01001c30]
lea r8, [rsp + 0x2d0]
mov rdx, rax
mov rcx, qword [rsp + 0x3408]
call fcn.01016110
xor eax, eax
jmp 0x1050039
jmp 0x105000c
movzx eax, word [rsp + 0x16e0]
test eax, eax
je 0x104fda1
lea rax, [rsp + 0x16e0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x16e0]
lea r8, [0x0100c0f0]
mov edx, 0x800
lea rcx, [rsp + 0x6d0]
call fcn.01016110
mov dword [rsp + 0x3360], 0
jmp 0x104fd24
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 0x104fd9f
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 0x104fd9a
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 0x104fd9a
mov edx, dword [rsp + 0x3360]
mov rcx, qword [rsp + 0x3430]
call qword [sym.imp.SQLSVC.dll_SHRecMemDelete]
jmp 0x104fd9f
jmp 0x104fd13
jmp 0x104fdc9
mov rax, qword [rsp + 0x33f0]
add rax, 0x28
mov r9, rax
lea r8, [0x0100b550]
mov edx, 0x800
lea rcx, [rsp + 0x6d0]
call fcn.01016110
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.01021550
cmp dword [rsp + 0x1834], 0
jne 0x104fe35
mov dword [rsp + 0x33b4], 1
jmp 0x104fe40
mov dword [rsp + 0x33b4], 0
mov eax, dword [rsp + 0x33b4]
mov dword [rsp + 0x1830], eax
jmp 0x105000c
lea r9, [rsp + 0x16e0]
lea r8, [0x0100c090]
mov edx, 0x800
lea rcx, [rsp + 0x6d0]
call fcn.01016110
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.01021550
cmp dword [rsp + 0x1834], 0
je 0x104feed
cmp dword [rsp + 0x1834], 0x5606
je 0x104feed
mov dword [rsp + 0x33b8], 0
jmp 0x104fef8
mov dword [rsp + 0x33b8], 1
mov eax, dword [rsp + 0x33b8]
mov dword [rsp + 0x1830], eax
jmp 0x105000c
lea r9, [rsp + 0x16e0]
lea r8, [0x0100c030]
mov edx, 0x800
lea rcx, [rsp + 0x6d0]
call fcn.01016110
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.01021550
cmp dword [rsp + 0x1834], 0
je 0x104ffa5
cmp dword [rsp + 0x1834], 0x5606
je 0x104ffa5
mov dword [rsp + 0x33bc], 0
jmp 0x104ffb0
mov dword [rsp + 0x33bc], 1
mov eax, dword [rsp + 0x33bc]
mov dword [rsp + 0x1830], eax
jmp 0x105000c
mov r9d, 0x200
lea r8, [rsp + 0x2d0]
mov edx, 0x124
mov rcx, qword [0x01069158]
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.01016110
cmp qword [rsp + 0x3418], 0
je 0x1050032
cmp dword [rsp + 0x1834], 0
je 0x1050032
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.01059ab0
add rsp, 0x33d8
pop rdi
pop rsi
ret