Function at 0x104d320
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x20d0
call fcn.0105fe80
sub rsp, rax
mov qword [rsp + 0x20b0], 0xfffffffffffffffe
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x20c0], rax
lea rax, [0x0100b3e0]
mov qword [rsp + 0x1480], rax
movzx eax, word [0x01001c50]
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, [0x0100b3a8]
call fcn.01053b10
lea rcx, [0x01066a38]
call qword [0x01069178]
test eax, eax
jne 0x104d424
cmp dword [0x010689c0], 0
je 0x104d417
cmp dword [0x01068484], 0
je 0x104d417
lea rdx, [0x0100b3e0]
lea rcx, [0x01001b80]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01066a38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010689c0], 0
je 0x104d44a
cmp dword [0x01068484], 0
je 0x104d44a
lea rdx, [0x0100b3e0]
lea rcx, [0x01001b48]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov eax, dword [0x01066c84]
mov dword [rsp + 0x1478], eax
lea rcx, [0x01066a38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x104d48a
cmp dword [0x01068484], 0
je 0x104d48a
lea rdx, [0x0100b3e0]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp dword [rsp + 0x1478], 0
jne 0x104d49b
xor eax, eax
jmp 0x104d967
xor edx, edx
xor ecx, ecx
call fcn.010527f0
test eax, eax
jne 0x104d4af
xor eax, eax
jmp 0x104d967
lea rdx, [0x0100b370]
lea rcx, [rsp + 0x60]
call fcn.01020b50
mov r8, qword [rsp + 0x1480]
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.01020c30
test eax, eax
jne 0x104d4e2
xor eax, eax
jmp 0x104d967
lea r9, [0x01005ac8]
mov r8, qword [rsp + 0x20e0]
lea rdx, [rsp + 0x1490]
lea rcx, [rsp + 0x60]
call fcn.01052970
test eax, eax
je 0x104d80d
lea rcx, [0x01066a38]
call qword [0x01069178]
test eax, eax
jne 0x104d54f
cmp dword [0x010689c0], 0
je 0x104d542
cmp dword [0x01068484], 0
je 0x104d542
lea rdx, [0x0100b3e0]
lea rcx, [0x01001b80]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01066a38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010689c0], 0
je 0x104d575
cmp dword [0x01068484], 0
je 0x104d575
lea rdx, [0x0100b3e0]
lea rcx, [0x01001b48]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov dword [rsp + 0x1470], 0
jmp 0x104d593
mov eax, dword [rsp + 0x1470]
add eax, 1
mov dword [rsp + 0x1470], eax
mov eax, dword [rsp + 0x1478]
cmp dword [rsp + 0x1470], eax
jge 0x104d7cc
xor edx, edx
lea rcx, [0x01066c78]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x104d7c7
mov rdx, qword [rsp + 0x14a8]
lea rcx, [rsp + 0x20a0]
call fcn.0101fbe0
nop
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov rdx, rax
lea rcx, [rsp + 0x20a0]
call fcn.0102b6e0
mov rax, qword [rsp + 0x48]
add rax, 0x14
mov rdx, rax
lea rcx, [rsp + 0x20a0]
call fcn.0102b6e0
mov rax, qword [rsp + 0x48]
add rax, 0x18
mov rdx, rax
lea rcx, [rsp + 0x20a0]
call fcn.0102b6e0
mov rax, qword [rsp + 0x48]
add rax, 0x1c
mov rdx, rax
lea rcx, [rsp + 0x20a0]
call fcn.0102b6e0
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.0101fc40
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x20a0]
call fcn.0102b780
lea rcx, [0x01069050]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x80
mov r8, rax
lea rdx, [0x01069050]
lea rcx, [rsp + 0x20a0]
call fcn.0101fc40
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, [0x0100b170]
lea rcx, [rsp + 0x1490]
call fcn.01021550
cmp dword [rsp + 0x147c], 0
je 0x104d72b
mov dword [rsp + 0x20b8], 1
jmp 0x104d736
mov dword [rsp + 0x20b8], 0
mov eax, dword [rsp + 0x20b8]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x104d75b
mov eax, dword [rsp + 0x1474]
add eax, 1
mov dword [rsp + 0x1474], eax
jmp 0x104d790
lea r9, [0x0100b170]
mov r8d, 0x126
xor edx, edx
mov ecx, 1
call fcn.01034b80
cmp dword [rsp + 0x147c], 0x2714
jne 0x104d790
lea rcx, [rsp + 0x20a0]
call fcn.0101fc10
jmp 0x104d7cc
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x28], 0
je 0x104d7aa
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x28]
call fcn.01015770
xor edx, edx
lea rcx, [0x01066c78]
call qword [sym.imp.SQLSVC.dll_SHRecMemDelete]
nop
lea rcx, [rsp + 0x20a0]
call fcn.0101fc10
jmp 0x104d582
lea rcx, [0x01066a38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x104d7ff
cmp dword [0x01068484], 0
je 0x104d7ff
lea rdx, [0x0100b3e0]
lea rcx, [0x01001b10]
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.0104d9b0
cmp dword [rsp + 0x20e8], 0
je 0x104d93c
lea rcx, [0x01066a38]
call qword [0x01069178]
test eax, eax
jne 0x104d86f
cmp dword [0x010689c0], 0
je 0x104d862
cmp dword [0x01068484], 0
je 0x104d862
lea rdx, [0x0100b3e0]
lea rcx, [0x01001b80]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01066a38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010689c0], 0
je 0x104d895
cmp dword [0x01068484], 0
je 0x104d895
lea rdx, [0x0100b3e0]
lea rcx, [0x01001b48]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov dword [rsp + 0x1470], 0
jmp 0x104d8b3
mov eax, dword [rsp + 0x1470]
add eax, 1
mov dword [rsp + 0x1470], eax
mov eax, dword [0x01066c84]
cmp dword [rsp + 0x1470], eax
jge 0x104d909
xor edx, edx
lea rcx, [0x01066c78]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x104d907
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x28], 0
je 0x104d8f8
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x28]
call fcn.01015770
xor edx, edx
lea rcx, [0x01066c78]
call qword [sym.imp.SQLSVC.dll_SHRecMemDelete]
jmp 0x104d8a2
lea rcx, [0x01066a38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x104d93c
cmp dword [0x01068484], 0
je 0x104d93c
lea rdx, [0x0100b3e0]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp dword [rsp + 0x1474], 0
je 0x104d960
mov r9d, dword [rsp + 0x1474]
mov r8d, 0x12b
xor edx, edx
mov ecx, 3
call fcn.01034b80
mov eax, dword [rsp + 0x1474]
mov rcx, qword [rsp + 0x20c0]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x20d0
pop rdi
ret