Function at 0x14000d060
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140209000]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor r12d, r12d
mov dword [rsp + 0x40], r12d
cmp byte [0x140213dbc], r12b
jne 0x14000d6c1
mov byte [0x140213dbc], 1
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1401cd010]
mov qword [rbp - 0x70], rax
lea rax, [0x1401ccf50]
mov qword [rbp - 0x60], rax
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov r13d, 1
mov dword [rsp + 0x40], r13d
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x58], rax
mov qword [rbp + 0x10], r12
mov dword [rbp + 0x18], r12d
lea rdx, str.SELECT_DISTINCT_folderId__folderName_FROM_archives_WHERE_archiveType0_
lea rcx, [rbp - 0x60]
call fcn.14001af10
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x58]
call fcn.14001a9c0
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9d, [r13 + 0x7f]
lea r8d, [r12 - 1]
mov rcx, qword [0x140214e20]
call fcn.140124010
nop
lea rcx, [rsp + 0x50]
call fcn.140005310
mov rbx, qword [0x140214e78]
mov rdi, qword [0x140214e80]
cmp rbx, rdi
je 0x14000d1ea
lea rcx, [rbx + 0x20]
call fcn.140005310
mov rcx, rbx
call fcn.140005310
add rbx, 0x40
cmp rbx, rdi
jne 0x14000d1c2
mov rax, qword [0x140214e78]
mov qword [0x140214e80], rax
mov r15d, 0x202
mov rbx, qword [rsp + 0x40]
nop word [rax + rax]
mov esi, r12d
lea r14, [0x1401e7a54]
test rbx, rbx
je 0x14000d5b2
cmp qword [rbx], rsi
jne 0x14000d22e
lea rdx, str.API_called_with_finalized_prepared_statement
mov ecx, 0x15
call fcn.1400a0cd0
mov eax, r13d
jmp 0x14000d231
mov eax, r12d
test eax, eax
jne 0x14000d5c3
mov r13, qword [rbx]
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x14000d24b
call qword [0x1402093f0]
mov rcx, rbx
call fcn.1400d1730
mov edi, eax
cmp eax, 0x11
jne 0x14000d376
nop
mov ecx, esi
inc esi
cmp ecx, 0x32
jge 0x14000d36f
mov edi, dword [rbx + 0x30]
mov rcx, rbx
call fcn.140124230
mov r14d, eax
test eax, eax
jne 0x14000d2a6
mov rcx, rbx
call fcn.1400d0b20
test edi, edi
js 0x14000d292
mov byte [rbx + 0xc5], 0xfe
mov rcx, rbx
call fcn.1400d1730
mov edi, eax
cmp eax, 0x11
je 0x14000d260
jmp 0x14000d36f
mov rcx, qword [r13 + 0x190]
test rcx, rcx
jne 0x14000d2b7
mov rsi, r12
jmp 0x14000d2e8
movzx edx, word [rcx + 0x14]
movzx eax, dx
and ax, r15w
cmp ax, r15w
jne 0x14000d2d4
cmp byte [rcx + 0x16], 1
jne 0x14000d2d4
mov rsi, qword [rcx + 8]
jmp 0x14000d2e8
test dl, 1
je 0x14000d2de
mov rsi, r12
jmp 0x14000d2e8
mov dl, 1
call fcn.1400ca560
mov rsi, rax
mov rdx, qword [rbx + 0xa8]
test rdx, rdx
je 0x14000d2fc
mov rcx, r13
call fcn.14009ddb0
cmp byte [r13 + 0x67], 0
jne 0x14000d360
test rsi, rsi
jne 0x14000d30d
mov r15, r12
jmp 0x14000d341
mov rdi, 0xffffffffffffffff
lea rdi, [rdi + 1]
cmp byte [rsi + rdi], 0
jne 0x14000d314
lea rdx, [rdi + 1]
mov rcx, r13
call fcn.14009e290
mov r15, rax
test rax, rax
je 0x14000d341
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbx + 0xa8], r15
mov edx, r14d
mov rcx, r13
call fcn.14009e680
mov edi, eax
mov dword [rbx + 0x34], eax
mov r15d, 0x202
jmp 0x14000d36f
mov qword [rbx + 0xa8], r12
mov edi, 7
mov dword [rbx + 0x34], edi
lea r14, [0x1401e7a54]
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x14000d385
call qword [0x140209400]
cmp edi, 0x64
jne 0x14000d5e6
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14000d3a0
call qword [0x1402093f0]
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x14000d3b6
cmp r12w, word [rbx + 0xc0]
jb 0x14000d3d1
mov rcx, qword [rbx]
mov dword [rcx + 0x50], 0x19
mov edx, 0x19
call fcn.1400a1b50
lea rcx, [0x1401c5b90]
movzx edx, word [rcx + 0x14]
movzx eax, dx
and ax, r15w
cmp ax, r15w
jne 0x14000d3ee
cmp byte [rcx + 0x16], 1
jne 0x14000d3ee
mov rsi, qword [rcx + 8]
jmp 0x14000d402
test dl, 1
je 0x14000d3f8
mov rsi, r12
jmp 0x14000d402
mov dl, 1
call fcn.1400ca560
mov rsi, rax
mov edx, dword [rbx + 0x34]
mov rcx, qword [rbx]
cmp byte [rcx + 0x67], 0
jne 0x14000d417
test edx, edx
jne 0x14000d417
mov eax, r12d
jmp 0x14000d41c
call fcn.14009e680
mov dword [rbx + 0x34], eax
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14000d431
call qword [0x140209400]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14000d443
call qword [0x1402093f0]
mov rcx, qword [rbx + 0xa0]
mov r13d, 1
test rcx, rcx
je 0x14000d46a
cmp r13w, word [rbx + 0xc0]
jae 0x14000d46a
add rcx, 0x38
jne 0x14000d485
mov rdi, r12
jmp 0x14000d4b6
mov rcx, qword [rbx]
mov dword [rcx + 0x50], 0x19
mov edx, 0x19
call fcn.1400a1b50
lea rcx, [0x1401c5b90]
movzx edx, word [rcx + 0x14]
movzx eax, dx
and ax, r15w
cmp ax, r15w
jne 0x14000d4a2
cmp byte [rcx + 0x16], 1
jne 0x14000d4a2
mov rdi, qword [rcx + 8]
jmp 0x14000d4b6
test dl, 1
je 0x14000d4ac
mov rdi, r12
jmp 0x14000d4b6
mov dl, 1
call fcn.1400ca560
mov rdi, rax
mov edx, dword [rbx + 0x34]
mov rcx, qword [rbx]
cmp byte [rcx + 0x67], 0
jne 0x14000d4cb
test edx, edx
jne 0x14000d4cb
mov eax, r12d
jmp 0x14000d4d0
call fcn.14009e680
mov dword [rbx + 0x34], eax
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14000d4e5
call qword [0x140209400]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rsi + r8], 0
jne 0x14000d500
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140003180
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdi + r8], 0
jne 0x14000d530
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140003180
nop
mov rdi, qword [0x140214e80]
cmp rdi, qword [0x140214e88]
je 0x14000d584
mov qword [rsp + 0x40], rdi
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140005180
nop
lea rcx, [rdi + 0x20]
lea rdx, [rsp + 0x70]
call fcn.140005180
nop
add qword [0x140214e80], 0x40
jmp 0x14000d599
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [0x140214e78]
call fcn.14001bea0
nop
lea rcx, [rsp + 0x70]
call fcn.140005310
lea rcx, [rsp + 0x50]
call fcn.140005310
jmp 0x14000d200
lea rdx, str.API_called_with_NULL_prepared_statement
mov ecx, 0x15
call fcn.1400a0cd0
mov qword [rsp + 0x20], r14
mov r9d, 0x16264
lea r8, str.misuse
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, 0x15
call fcn.1400a0cd0
test rbx, rbx
je 0x14000d67c
mov rdi, qword [rbx]
test rdi, rdi
jne 0x14000d629
lea rdx, str.API_called_with_finalized_prepared_statement
lea ecx, [rdi + 0x15]
call fcn.1400a0cd0
mov qword [rsp + 0x20], r14
mov r9d, 0x15f4a
lea r8, str.misuse
lea rdx, str._s_at_line__d_of___.10s_
lea ecx, [rdi + 0x15]
call fcn.1400a0cd0
jmp 0x14000d67c
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14000d638
call qword [0x1402093f0]
cmp qword [rbx + 0xb8], 0
jle 0x14000d64d
mov rdx, rbx
mov rcx, rdi
call fcn.1400d0960
mov rcx, rbx
call fcn.1400ce6b0
mov esi, eax
mov rcx, rbx
call fcn.1400ce7e0
cmp byte [rdi + 0x67], 0
jne 0x14000d669
test esi, esi
je 0x14000d673
mov edx, esi
mov rcx, rdi
call fcn.14009e680
mov rcx, rdi
call fcn.1401645d0
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rcx, qword [rbp - 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rbp + rdx - 0x74], r8d
lea rcx, [rbp - 0x58]
call fcn.14001a6e0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rax, [0x140214e78]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1401981a0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret