Function at 0x104c670
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x20d0
call fcn.0105ee40
sub rsp, rax
mov qword [rsp + 0x20b0], 0xfffffffffffffffe
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x20c0], rax
lea rax, [0x0100b160]
mov qword [rsp + 0x1480], rax
movzx eax, word [0x01001c38]
mov word [rsp + 0xc70], ax
lea rax, [rsp + 0xc72]
mov rdi, rax
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x1474], 0
mov dword [rsp + 0x1470], 0
mov dword [rsp + 0x1478], 0
mov dword [rsp + 0x147c], 0
mov r8d, dword [rsp + 0x20e8]
mov rdx, qword [rsp + 0x20e0]
lea rcx, [0x0100b128]
call fcn.01052e60
lea rcx, [0x01065a38]
call qword [0x01068178]
test eax, eax
jne 0x104c774
cmp dword [0x010679c0], 0
je 0x104c767
cmp dword [0x01067484], 0
je 0x104c767
lea rdx, [0x0100b160]
lea rcx, [0x01001b70]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01065a38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010679c0], 0
je 0x104c79a
cmp dword [0x01067484], 0
je 0x104c79a
lea rdx, [0x0100b160]
lea rcx, [0x01001b38]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov eax, dword [0x01065c84]
mov dword [rsp + 0x1478], eax
lea rcx, [0x01065a38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010679c0], 0
je 0x104c7da
cmp dword [0x01067484], 0
je 0x104c7da
lea rdx, [0x0100b160]
lea rcx, [0x01001b00]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp dword [rsp + 0x1478], 0
jne 0x104c7eb
xor eax, eax
jmp 0x104ccb7
xor edx, edx
xor ecx, ecx
call fcn.01051b30
test eax, eax
jne 0x104c7ff
xor eax, eax
jmp 0x104ccb7
lea rdx, [0x0100b0f0]
lea rcx, [rsp + 0x60]
call fcn.01020890
mov r8, qword [rsp + 0x1480]
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.01020940
test eax, eax
jne 0x104c832
xor eax, eax
jmp 0x104ccb7
lea r9, [0x01005888]
mov r8, qword [rsp + 0x20e0]
lea rdx, [rsp + 0x1490]
lea rcx, [rsp + 0x60]
call fcn.01051cc0
test eax, eax
je 0x104cb5d
lea rcx, [0x01065a38]
call qword [0x01068178]
test eax, eax
jne 0x104c89f
cmp dword [0x010679c0], 0
je 0x104c892
cmp dword [0x01067484], 0
je 0x104c892
lea rdx, [0x0100b160]
lea rcx, [0x01001b70]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01065a38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010679c0], 0
je 0x104c8c5
cmp dword [0x01067484], 0
je 0x104c8c5
lea rdx, [0x0100b160]
lea rcx, [0x01001b38]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov dword [rsp + 0x1470], 0
jmp 0x104c8e3
mov eax, dword [rsp + 0x1470]
add eax, 1
mov dword [rsp + 0x1470], eax
mov eax, dword [rsp + 0x1478]
cmp dword [rsp + 0x1470], eax
jge 0x104cb1c
xor edx, edx
lea rcx, [0x01065c78]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x104cb17
mov rdx, qword [rsp + 0x14a8]
lea rcx, [rsp + 0x20a0]
call fcn.0101f880
nop
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov rdx, rax
lea rcx, [rsp + 0x20a0]
call fcn.0101f990
mov rax, qword [rsp + 0x48]
add rax, 0x14
mov rdx, rax
lea rcx, [rsp + 0x20a0]
call fcn.0101f990
mov rax, qword [rsp + 0x48]
add rax, 0x18
mov rdx, rax
lea rcx, [rsp + 0x20a0]
call fcn.0101f990
mov rax, qword [rsp + 0x48]
add rax, 0x1c
mov rdx, rax
lea rcx, [rsp + 0x20a0]
call fcn.0101f990
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0xfa0
mov r8, rax
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x28]
lea rcx, [rsp + 0x20a0]
call fcn.0101f8e0
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x20a0]
call fcn.0102ac70
lea rcx, [0x01068050]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x80
mov r8, rax
lea rdx, [0x01068050]
lea rcx, [rsp + 0x20a0]
call fcn.0101f8e0
mov word [rsp + 0xc70], 0
movzx eax, word [rsp + 0xc70]
mov dword [rsp + 0x147c], eax
mov rax, qword [rsp + 0x1480]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x400
lea rax, [rsp + 0xc70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x147c]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 1
lea rdx, [0x0100aef0]
lea rcx, [rsp + 0x1490]
call fcn.01020da0
cmp dword [rsp + 0x147c], 0
je 0x104ca7b
mov dword [rsp + 0x20b8], 1
jmp 0x104ca86
mov dword [rsp + 0x20b8], 0
mov eax, dword [rsp + 0x20b8]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x104caab
mov eax, dword [rsp + 0x1474]
add eax, 1
mov dword [rsp + 0x1474], eax
jmp 0x104cae0
lea r9, [0x0100aef0]
mov r8d, 0x126
xor edx, edx
mov ecx, 1
call fcn.01033fa0
cmp dword [rsp + 0x147c], 0x2714
jne 0x104cae0
lea rcx, [rsp + 0x20a0]
call fcn.0101f8b0
jmp 0x104cb1c
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x28], 0
je 0x104cafa
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x28]
call fcn.01015550
xor edx, edx
lea rcx, [0x01065c78]
call qword [sym.imp.SQLSVC.dll_SHRecMemDelete]
nop
lea rcx, [rsp + 0x20a0]
call fcn.0101f8b0
jmp 0x104c8d2
lea rcx, [0x01065a38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010679c0], 0
je 0x104cb4f
cmp dword [0x01067484], 0
je 0x104cb4f
lea rdx, [0x0100b160]
lea rcx, [0x01001b00]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [rsp + 0x1490]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
call fcn.0104cd00
cmp dword [rsp + 0x20e8], 0
je 0x104cc8c
lea rcx, [0x01065a38]
call qword [0x01068178]
test eax, eax
jne 0x104cbbf
cmp dword [0x010679c0], 0
je 0x104cbb2
cmp dword [0x01067484], 0
je 0x104cbb2
lea rdx, [0x0100b160]
lea rcx, [0x01001b70]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01065a38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010679c0], 0
je 0x104cbe5
cmp dword [0x01067484], 0
je 0x104cbe5
lea rdx, [0x0100b160]
lea rcx, [0x01001b38]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov dword [rsp + 0x1470], 0
jmp 0x104cc03
mov eax, dword [rsp + 0x1470]
add eax, 1
mov dword [rsp + 0x1470], eax
mov eax, dword [0x01065c84]
cmp dword [rsp + 0x1470], eax
jge 0x104cc59
xor edx, edx
lea rcx, [0x01065c78]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x104cc57
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x28], 0
je 0x104cc48
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x28]
call fcn.01015550
xor edx, edx
lea rcx, [0x01065c78]
call qword [sym.imp.SQLSVC.dll_SHRecMemDelete]
jmp 0x104cbf2
lea rcx, [0x01065a38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010679c0], 0
je 0x104cc8c
cmp dword [0x01067484], 0
je 0x104cc8c
lea rdx, [0x0100b160]
lea rcx, [0x01001b00]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp dword [rsp + 0x1474], 0
je 0x104ccb0
mov r9d, dword [rsp + 0x1474]
mov r8d, 0x12b
xor edx, edx
mov ecx, 3
call fcn.01033fa0
mov eax, dword [rsp + 0x1474]
mov rcx, qword [rsp + 0x20c0]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x20d0
pop rdi
ret