Function at 0x14000d700
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 [0x140213db9], r12b
jne 0x14000dd61
mov byte [0x140213db9], 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_archiveType1_
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 [0x140214e48]
mov rdi, qword [0x140214e50]
cmp rbx, rdi
je 0x14000d88a
lea rcx, [rbx + 0x20]
call fcn.140005310
mov rcx, rbx
call fcn.140005310
add rbx, 0x40
cmp rbx, rdi
jne 0x14000d862
mov rax, qword [0x140214e48]
mov qword [0x140214e50], rax
mov r15d, 0x202
mov rbx, qword [rsp + 0x40]
nop word [rax + rax]
mov esi, r12d
lea r14, [0x1401e7a54]
test rbx, rbx
je 0x14000dc52
cmp qword [rbx], rsi
jne 0x14000d8ce
lea rdx, str.API_called_with_finalized_prepared_statement
mov ecx, 0x15
call fcn.1400a0cd0
mov eax, r13d
jmp 0x14000d8d1
mov eax, r12d
test eax, eax
jne 0x14000dc63
mov r13, qword [rbx]
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x14000d8eb
call qword [0x1402093f0]
mov rcx, rbx
call fcn.1400d1730
mov edi, eax
cmp eax, 0x11
jne 0x14000da16
nop
mov ecx, esi
inc esi
cmp ecx, 0x32
jge 0x14000da0f
mov edi, dword [rbx + 0x30]
mov rcx, rbx
call fcn.140124230
mov r14d, eax
test eax, eax
jne 0x14000d946
mov rcx, rbx
call fcn.1400d0b20
test edi, edi
js 0x14000d932
mov byte [rbx + 0xc5], 0xfe
mov rcx, rbx
call fcn.1400d1730
mov edi, eax
cmp eax, 0x11
je 0x14000d900
jmp 0x14000da0f
mov rcx, qword [r13 + 0x190]
test rcx, rcx
jne 0x14000d957
mov rsi, r12
jmp 0x14000d988
movzx edx, word [rcx + 0x14]
movzx eax, dx
and ax, r15w
cmp ax, r15w
jne 0x14000d974
cmp byte [rcx + 0x16], 1
jne 0x14000d974
mov rsi, qword [rcx + 8]
jmp 0x14000d988
test dl, 1
je 0x14000d97e
mov rsi, r12
jmp 0x14000d988
mov dl, 1
call fcn.1400ca560
mov rsi, rax
mov rdx, qword [rbx + 0xa8]
test rdx, rdx
je 0x14000d99c
mov rcx, r13
call fcn.14009ddb0
cmp byte [r13 + 0x67], 0
jne 0x14000da00
test rsi, rsi
jne 0x14000d9ad
mov r15, r12
jmp 0x14000d9e1
mov rdi, 0xffffffffffffffff
lea rdi, [rdi + 1]
cmp byte [rsi + rdi], 0
jne 0x14000d9b4
lea rdx, [rdi + 1]
mov rcx, r13
call fcn.14009e290
mov r15, rax
test rax, rax
je 0x14000d9e1
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 0x14000da0f
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 0x14000da25
call qword [0x140209400]
cmp edi, 0x64
jne 0x14000dc86
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14000da40
call qword [0x1402093f0]
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x14000da56
cmp r12w, word [rbx + 0xc0]
jb 0x14000da71
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 0x14000da8e
cmp byte [rcx + 0x16], 1
jne 0x14000da8e
mov rsi, qword [rcx + 8]
jmp 0x14000daa2
test dl, 1
je 0x14000da98
mov rsi, r12
jmp 0x14000daa2
mov dl, 1
call fcn.1400ca560
mov rsi, rax
mov edx, dword [rbx + 0x34]
mov rcx, qword [rbx]
cmp byte [rcx + 0x67], 0
jne 0x14000dab7
test edx, edx
jne 0x14000dab7
mov eax, r12d
jmp 0x14000dabc
call fcn.14009e680
mov dword [rbx + 0x34], eax
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14000dad1
call qword [0x140209400]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14000dae3
call qword [0x1402093f0]
mov rcx, qword [rbx + 0xa0]
mov r13d, 1
test rcx, rcx
je 0x14000db0a
cmp r13w, word [rbx + 0xc0]
jae 0x14000db0a
add rcx, 0x38
jne 0x14000db25
mov rdi, r12
jmp 0x14000db56
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 0x14000db42
cmp byte [rcx + 0x16], 1
jne 0x14000db42
mov rdi, qword [rcx + 8]
jmp 0x14000db56
test dl, 1
je 0x14000db4c
mov rdi, r12
jmp 0x14000db56
mov dl, 1
call fcn.1400ca560
mov rdi, rax
mov edx, dword [rbx + 0x34]
mov rcx, qword [rbx]
cmp byte [rcx + 0x67], 0
jne 0x14000db6b
test edx, edx
jne 0x14000db6b
mov eax, r12d
jmp 0x14000db70
call fcn.14009e680
mov dword [rbx + 0x34], eax
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14000db85
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 0x14000dba0
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 0x14000dbd0
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140003180
nop
mov rdi, qword [0x140214e50]
cmp rdi, qword [0x140214e58]
je 0x14000dc24
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 [0x140214e50], 0x40
jmp 0x14000dc39
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [0x140214e48]
call fcn.14001bea0
nop
lea rcx, [rsp + 0x70]
call fcn.140005310
lea rcx, [rsp + 0x50]
call fcn.140005310
jmp 0x14000d8a0
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 0x14000dd1c
mov rdi, qword [rbx]
test rdi, rdi
jne 0x14000dcc9
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 0x14000dd1c
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14000dcd8
call qword [0x1402093f0]
cmp qword [rbx + 0xb8], 0
jle 0x14000dced
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 0x14000dd09
test esi, esi
je 0x14000dd13
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, [0x140214e48]
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