Function at 0x140012230
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140209000]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x40], esi
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1401cd010]
mov qword [rsp + 0x70], rax
lea rax, [0x1401ccf50]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 1
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 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 [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], r14
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
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 - 0x78], rax
mov qword [rbp - 0x10], rsi
mov dword [rbp - 8], esi
lea rdx, str.SELECT_uniqueId_FROM_archives_WHERE_folderId
lea rcx, [rbp - 0x80]
call fcn.14001af10
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140012315
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.14001c390
lea rdx, str._AND_archiveId
mov rcx, rax
call fcn.14001af10
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14001233d
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14001c390
mov rcx, rax
lea rdx, [0x1401cb240]
call fcn.14001af10
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.14001a9c0
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rdx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9d, 0x80
mov r8d, 0xffffffff
mov rcx, qword [0x140214e20]
call fcn.140124010
nop
lea rcx, [rsp + 0x48]
call fcn.140005310
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400d19c0
cmp eax, 0x64
jne 0x1400124a7
test rbx, rbx
je 0x140012409
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400123e0
call qword [0x1402093f0]
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x1400123f5
cmp si, word [rbx + 0xc0]
jb 0x140012410
mov rcx, qword [rbx]
mov dword [rcx + 0x50], 0x19
mov edx, 0x19
call fcn.1400a1b50
lea rcx, [0x1401c5b90]
movzx eax, word [rcx + 0x14]
test al, 0x24
je 0x14001241d
mov rdi, qword [rcx]
jmp 0x140012474
test al, 8
je 0x14001245c
movsd xmm1, qword [rcx]
movsd xmm0, qword [0x1401e8f80]
comisd xmm0, xmm1
jbe 0x14001243f
movabs rdi, 0x8000000000000000
jmp 0x140012474
comisd xmm1, xmmword [0x1401e8eb8]
jbe 0x140012455
movabs rdi, 0x7fffffffffffffff
jmp 0x140012474
cvttsd2si rdi, xmm1
jmp 0x140012474
test al, 0x12
je 0x140012471
cmp qword [rcx + 8], 0
je 0x140012471
call fcn.1400c9790
mov rdi, rax
jmp 0x140012474
mov rdi, rsi
test rbx, rbx
je 0x1400124a5
mov edx, dword [rbx + 0x34]
mov rcx, qword [rbx]
cmp byte [rcx + 0x67], 0
jne 0x140012489
test edx, edx
je 0x140012490
call fcn.14009e680
mov esi, eax
mov dword [rbx + 0x34], esi
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400124a5
call qword [0x140209400]
mov esi, edi
mov rcx, rbx
call fcn.1400d0a40
nop
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
mov qword [rsp + rdx + 0x70], r14
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rsp + rdx + 0x6c], r8d
lea rcx, [rbp - 0x78]
call fcn.14001a6e0
lea rcx, [rbp - 0x70]
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 + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, esi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1401981a0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret