Function at 0x140027ac0
Capabilities:
Reference sql statements

Disassembly:
push rdi
push r12
push r13
mov eax, 0x540
call fcn.140189b00
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x568], rbx
mov qword [rsp + 0x570], rbp
mov qword [rsp + 0x578], rsi
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x530], rax
movzx edi, dl
mov rbp, rcx
lea r13, str.LoadSampleQueueTable
mov qword [rsp + 0x20], r13
lea r9, [0x1401cd578]
mov r8d, 0xb6
lea rdx, str..cntmss_dbDda.cpp
lea ecx, [r8 - 0x72]
call fcn.1400382e0
test rbp, rbp
jne 0x140027b41
xor al, al
jmp 0x14002874d
call fcn.140024fb0
mov rsi, rax
test rax, rax
je 0x14002874d
mov byte [rsp + 0x130], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rsp + 0x131]
call fcn.140041940
test dil, dil
je 0x140027b8f
lea r8, str.SELECT_HS__FID__ARID__OSFLD__OFID_FROM_TBL_SAA_
mov edx, 0x400
lea rcx, [rsp + 0x130]
call fcn.1400418a0
jmp 0x140027ba8
lea r8, str.SELECT_HS__FID__ARID__OSFLD__OFID_FROM_TBL_SAA_WHERE_FC___0_
mov edx, 0x400
lea rcx, [rsp + 0x130]
call fcn.1400418a0
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x130]
mov rcx, rsi
call fcn.140036934
test eax, eax
je 0x140027c0a
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
lea r9, str._s___sqlite3_prepare_v2___d
mov r8d, 0xca
lea rdx, str..cntmss_dbDda.cpp
lea ecx, [r12 + 0x44]
call fcn.1400382e0
mov rcx, rsi
call fcn.140036958
xor al, al
jmp 0x14002874d
mov rcx, qword [rsp + 0x30]
call fcn.14003692e
mov edi, eax
cmp eax, 0x64
je 0x140027c4b
cmp eax, 0x65
je 0x140027c4b
test eax, eax
je 0x140027c4b
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
lea r9, str._s___sqlite3_step_____d
mov r8d, reloc.WLDAP32.dll_Ordinal_211
lea rdx, str..cntmss_dbDda.cpp
mov ecx, 0x45
call fcn.1400382e0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
cmp edi, 0x64
jne 0x140028567
mov qword [rsp + 0x80], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x68], 0
mov qword [rsp + 0xa8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0xa0], r12
mov byte [rsp + 0x90], 0
mov qword [rsp + 0xd0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0xc8], r12
mov byte [rsp + 0xb8], 0
mov qword [rsp + reloc.WS2_32.dll_ntohs8], 0xf
mov qword [rsp + 0xf0], r12
mov byte [rsp + 0xe0], 0
mov qword [rsp + 0x120], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x118], r12
mov byte [rsp + 0x108], 0
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.140036952
mov rbx, rax
test rax, rax
je 0x140027e6b
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rdx, [rsp + 0xb8]
mov r8, qword [rsp + 0xb8]
mov r10, qword [rsp + 0xd0]
cmp r10, 0x10
cmovae rdx, r8
mov rcx, qword [rsp + 0xc8]
cmp rbx, rdx
jb 0x140027d8b
lea rax, [rsp + 0xb8]
cmp r10, 0x10
cmovae rax, r8
add rax, rcx
cmp rax, rbx
jbe 0x140027d8b
lea rax, [rsp + 0xb8]
cmp r10, 0x10
cmovae rax, r8
mov r8, rbx
sub r8, rax
mov r9, rdi
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xb0]
call fcn.1400023d0
jmp 0x140027e43
cmp rdi, 0xfffffffffffffffe
jbe 0x140027dae
call fcn.14003b3f0
mov r10, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
mov r8, qword [rsp + 0xb8]
cmp r10, rdi
jae 0x140027dd8
mov r8, rcx
mov rdx, rdi
lea rcx, [rsp + 0xb0]
call fcn.1400026b0
mov r10, qword [rsp + 0xd0]
mov r8, qword [rsp + 0xb8]
jmp 0x140027dfa
test rdi, rdi
jne 0x140027dfa
mov qword [rsp + 0xc8], r12
lea rax, [rsp + 0xb8]
cmp r10, 0x10
cmovae rax, r8
mov byte [rax], dil
jmp 0x140027e43
test rdi, rdi
je 0x140027e43
lea rcx, [rsp + 0xb8]
cmp r10, 0x10
cmovae rcx, r8
mov r9, rdi
mov r8, rbx
mov rdx, r10
call fcn.140041310
mov qword [rsp + 0xc8], rdi
lea rax, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 0x10
cmovae rax, qword [rsp + 0xb8]
mov byte [rax + rdi], 0
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
lea r9, str._s___HS___s
mov r8d, 0xe0
lea rdx, str..cntmss_dbDda.cpp
mov ecx, 0x44
call fcn.1400382e0
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.140036952
mov rbx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rdx, [rsp + 0x68]
mov r8, qword [rsp + 0x68]
mov r10, qword [rsp + 0x80]
cmp r10, 0x10
cmovae rdx, r8
mov rcx, qword [rsp + 0x78]
cmp rbx, rdx
jb 0x140027ef2
lea rax, [rsp + 0x68]
cmp r10, 0x10
cmovae rax, r8
add rax, rcx
cmp rax, rbx
jbe 0x140027ef2
lea rax, [rsp + 0x68]
cmp r10, 0x10
cmovae rax, r8
mov r8, rbx
sub r8, rax
mov r9, rdi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.1400023d0
jmp 0x140027f8c
cmp rdi, 0xfffffffffffffffe
jbe 0x140027f0f
call fcn.14003b3f0
mov r10, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x68]
cmp r10, rdi
jae 0x140027f33
mov r8, rcx
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1400026b0
mov r10, qword [rsp + 0x80]
mov r8, qword [rsp + 0x68]
jmp 0x140027f4f
test rdi, rdi
jne 0x140027f4f
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x68]
cmp r10, 0x10
cmovae rax, r8
mov byte [rax], dil
jmp 0x140027f8c
test rdi, rdi
je 0x140027f8c
lea rcx, [rsp + 0x68]
cmp r10, 0x10
cmovae rcx, r8
mov r9, rdi
mov r8, rbx
mov rdx, r10
call fcn.140041310
mov qword [rsp + 0x78], rdi
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rax, qword [rsp + 0x68]
mov byte [rax + rdi], 0
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
lea r9, str._s___FID___s
mov r8d, 0xe5
lea rdx, str..cntmss_dbDda.cpp
mov ecx, 0x44
call fcn.1400382e0
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.140036952
mov rbx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rdx, [rsp + 0x90]
mov r8, qword [rsp + 0x90]
mov r10, qword [rsp + 0xa8]
cmp r10, 0x10
cmovae rdx, r8
mov rcx, qword [rsp + 0xa0]
cmp rbx, rdx
jb 0x140028050
lea rax, [rsp + 0x90]
cmp r10, 0x10
cmovae rax, r8
add rax, rcx
cmp rax, rbx
jbe 0x140028050
lea rax, [rsp + 0x90]
cmp r10, 0x10
cmovae rax, r8
mov r8, rbx
sub r8, rax
mov r9, rdi
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x88]
call fcn.1400023d0
jmp 0x140028108
cmp rdi, 0xfffffffffffffffe
jbe 0x140028073
call fcn.14003b3f0
mov r10, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x90]
cmp r10, rdi
jae 0x14002809d
mov r8, rcx
mov rdx, rdi
lea rcx, [rsp + 0x88]
call fcn.1400026b0
mov r10, qword [rsp + 0xa8]
mov r8, qword [rsp + 0x90]
jmp 0x1400280bf
test rdi, rdi
jne 0x1400280bf
mov qword [rsp + 0xa0], r12
lea rax, [rsp + 0x90]
cmp r10, 0x10
cmovae rax, r8
mov byte [rax], dil
jmp 0x140028108
test rdi, rdi
je 0x140028108
lea rcx, [rsp + 0x90]
cmp r10, 0x10
cmovae rcx, r8
mov r9, rdi
mov r8, rbx
mov rdx, r10
call fcn.140041310
mov qword [rsp + 0xa0], rdi
lea rax, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0x10
cmovae rax, qword [rsp + 0x90]
mov byte [rax + rdi], 0
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
lea r9, str._s___ARID___s
mov r8d, 0xea
lea rdx, str..cntmss_dbDda.cpp
mov ecx, 0x44
call fcn.1400382e0
mov edx, 3
mov rcx, qword [rsp + 0x30]
call fcn.140036952
mov rbx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rdx, [rsp + 0xe0]
mov r8, qword [rsp + 0xe0]
mov r10, qword [rsp + 0xf8]
cmp r10, 0x10
cmovae rdx, r8
mov rcx, qword [rsp + 0xf0]
cmp rbx, rdx
jb 0x1400281cc
lea rax, [rsp + 0xe0]
cmp r10, 0x10
cmovae rax, r8
add rax, rcx
cmp rax, rbx
jbe 0x1400281cc
lea rax, [rsp + 0xe0]
cmp r10, 0x10
cmovae rax, r8
mov r8, rbx
sub r8, rax
mov r9, rdi
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0xd8]
call fcn.1400023d0
jmp 0x140028284
cmp rdi, 0xfffffffffffffffe
jbe 0x1400281ef
call fcn.14003b3f0
mov r10, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
mov r8, qword [rsp + 0xe0]
cmp r10, rdi
jae 0x140028219
mov r8, rcx
mov rdx, rdi
lea rcx, [rsp + 0xd8]
call fcn.1400026b0
mov r10, qword [rsp + 0xf8]
mov r8, qword [rsp + 0xe0]
jmp 0x14002823b
test rdi, rdi
jne 0x14002823b
mov qword [rsp + 0xf0], r12
lea rax, [rsp + 0xe0]
cmp r10, 0x10
cmovae rax, r8
mov byte [rax], dil
jmp 0x140028284
test rdi, rdi
je 0x140028284
lea rcx, [rsp + 0xe0]
cmp r10, 0x10
cmovae rcx, r8
mov r9, rdi
mov r8, rbx
mov rdx, r10
call fcn.140041310
mov qword [rsp + 0xf0], rdi
lea rax, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 0x10
cmovae rax, qword [rsp + 0xe0]
mov byte [rdi + rax], 0
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
lea r9, str._s___OSFLD___s
mov r8d, 0xef
lea rdx, str..cntmss_dbDda.cpp
mov ecx, 0x44
call fcn.1400382e0
mov edx, 4
mov rcx, qword [rsp + 0x30]
call fcn.140036952
mov rbx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rdx, [rsp + 0x108]
mov r8, qword [rsp + 0x108]
mov r10, qword [rsp + 0x120]
cmp r10, 0x10
cmovae rdx, r8
mov rcx, qword [rsp + 0x118]
cmp rbx, rdx
jb 0x140028348
lea rax, [rsp + 0x108]
cmp r10, 0x10
cmovae rax, r8
add rax, rcx
cmp rax, rbx
jbe 0x140028348
lea rax, [rsp + 0x108]
cmp r10, 0x10
cmovae rax, r8
mov r8, rbx
sub r8, rax
mov r9, rdi
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x100]
call fcn.1400023d0
jmp 0x140028400
cmp rdi, 0xfffffffffffffffe
jbe 0x14002836b
call fcn.14003b3f0
mov r10, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x118]
mov r8, qword [rsp + 0x108]
cmp r10, rdi
jae 0x140028395
mov r8, rcx
mov rdx, rdi
lea rcx, [rsp + 0x100]
call fcn.1400026b0
mov r10, qword [rsp + 0x120]
mov r8, qword [rsp + 0x108]
jmp 0x1400283b7
test rdi, rdi
jne 0x1400283b7
mov qword [rsp + 0x118], r12
lea rax, [rsp + 0x108]
cmp r10, 0x10
cmovae rax, r8
mov byte [rax], dil
jmp 0x140028400
test rdi, rdi
je 0x140028400
lea rcx, [rsp + 0x108]
cmp r10, 0x10
cmovae rcx, r8
mov r9, rdi
mov r8, rbx
mov rdx, r10
call fcn.140041310
mov qword [rsp + 0x118], rdi
lea rax, [rsp + 0x108]
cmp qword [rsp + 0x120], 0x10
cmovae rax, qword [rsp + 0x108]
mov byte [rdi + rax], 0
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
lea r9, str._s___OFID___s
mov r8d, 0xf4
lea rdx, str..cntmss_dbDda.cpp
mov ecx, 0x44
call fcn.1400382e0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140027920
mov rcx, qword [rsp + 0x30]
call fcn.14003692e
mov edi, eax
cmp eax, 0x64
je 0x140028479
cmp eax, 0x65
je 0x140028479
test eax, eax
je 0x140028479
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
lea r9, str._s___sqlite3_step_____d
mov r8d, 0xfe
lea rdx, str..cntmss_dbDda.cpp
mov ecx, 0x45
call fcn.1400382e0
nop
cmp qword [rsp + 0x120], 0x10
jb 0x140028491
mov rcx, qword [rsp + 0x108]
call fcn.140041700
mov qword [rsp + 0x120], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x118], r12
mov byte [rsp + 0x108], 0
cmp qword [rsp + 0xf8], 0x10
jb 0x1400284c5
mov rcx, qword [rsp + 0xe0]
call fcn.140041700
mov qword [rsp + reloc.WS2_32.dll_ntohs8], 0xf
mov qword [rsp + 0xf0], r12
mov byte [rsp + 0xe0], 0
cmp qword [rsp + 0xd0], 0x10
jb 0x1400284f9
mov rcx, qword [rsp + 0xb8]
call fcn.140041700
mov qword [rsp + 0xd0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0xc8], r12
mov byte [rsp + 0xb8], 0
cmp qword [rsp + 0xa8], 0x10
jb 0x14002852d
mov rcx, qword [rsp + 0x90]
call fcn.140041700
mov qword [rsp + 0xa8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0xa0], r12
mov byte [rsp + 0x90], 0
cmp qword [rsp + 0x80], 0x10
jb 0x14002855e
mov rcx, qword [rsp + 0x68]
call fcn.140041700
cmp edi, 0x64
je 0x140027c63
mov rcx, qword [rsp + 0x30]
call fcn.140036928
test eax, eax
je 0x14002859c
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
lea r9, str._s___sqlite3_finalize_____d
mov r8d, 0x106
lea rdx, str..cntmss_dbDda.cpp
mov ecx, 0x45
call fcn.1400382e0
mov rcx, rsi
call fcn.140036958
mov ebx, r12d
movabs rsi, 0xa3d70a3d70a3d70b
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
test r8, r8
jne 0x1400285c5
mov rdx, r12
jmp 0x1400285e2
mov rcx, r9
sub rcx, r8
mov rax, rsi
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rdi, ebx
cmp rdi, rdx
jae 0x140028630
test r8, r8
je 0x14002860e
sub r9, r8
mov rax, rsi
imul r9
add rdx, r9
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jb 0x140028618
call fcn.140041c30
mov r8, qword [rsp + 0x40]
imul rdi, rdi, 0xc8
lea rdx, [r8 + rdi]
mov rcx, rbp
call fcn.140032e30
add ebx, 1
jmp 0x1400285b1
mov qword [rsp + 0x20], r13
lea r9, str._s_____
mov r8d, 0x110
lea rdx, str..cntmss_dbDda.cpp
mov ecx, 0x44
call fcn.1400382e0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002874b
mov rbx, qword [rsp + 0x48]
cmp rcx, rbx
je 0x140028746
lea rdi, [rcx + 0xc0]
cmp qword [rdi], 0x10
jb 0x140028686
mov rcx, qword [rdi - 0x18]
call fcn.140041700
mov qword [rdi], reloc.WS2_32.dll_ntohs
mov qword [rdi - 8], r12
mov byte [rdi - 0x18], 0
cmp qword [rdi - 0x28], 0x10
jb 0x1400286a5
mov rcx, qword [rdi - 0x40]
call fcn.140041700
mov qword [rdi - 0x28], 0xf
mov qword [rdi - 0x30], r12
mov byte [rdi - 0x40], 0
cmp qword [rdi - 0x50], 0x10
jb 0x1400286c5
mov rcx, qword [rdi - 0x68]
call fcn.140041700
mov qword [rdi - 0x50], 0xf
mov qword [rdi - 0x58], r12
mov byte [rdi - 0x68], 0
cmp qword [rdi - 0x78], 0x10
jb 0x1400286e8
mov rcx, qword [rdi - 0x90]
call fcn.140041700
mov qword [rdi - 0x78], 0xf
mov qword [rdi - 0x80], r12
mov byte [rdi - 0x90], 0
cmp qword [rdi - 0xa0], 0x10
jb 0x140028711
mov rcx, qword [rdi - 0xb8]
call fcn.140041700
mov qword [rdi - 0xa0], 0xf
mov qword [rdi - 0xa8], r12
mov byte [rdi - 0xb8], 0
add rdi, 0xc8
lea rax, [rdi - 0xc0]
cmp rax, rbx
jne 0x140028677
mov rcx, qword [rsp + 0x40]
call fcn.140041700
xor al, al
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140041910
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret