Function at 0x140021550
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1401a2920]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
xor r14d, r14d
mov dword [rbp - 0x18], r14d
cmp qword [0x1401ab050], 5
jle 0x14002199a
mov rbx, qword [0x1401ab048]
lea rcx, [rbx + 0x138]
call qword [0x14011af98]
mov rdx, rax
lea rcx, [rbp - 0x10]
call qword [0x14011af90]
mov dword [rbp - 0x18], 1
mov r9, qword [rbx + 0x138]
mov ecx, dword [r9 - 0x10]
lea rdx, str.DELETE_FROM_FileProperties_WHERE_Id_IN__SELECT_Id_FROM_Files_WHERE
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400215d0
mov dword [rsp + 0x20], ecx
mov r8d, eax
lea rcx, [rbp - 0x10]
call qword [0x14011afa0]
nop
lea rcx, [rbp - 0x10]
call qword [0x14011af98]
mov rdx, rax
lea rcx, [rbp - 0x28]
call qword [0x14011af90]
mov dword [rbp - 0x18], 3
lea rsi, str._1_OR_FolderId_IN__SELECT_Id_FROM_Folders_WHERE
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140021620
mov rdx, qword [rbp - 0x10]
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x28]
call qword [0x14011afa0]
cmp qword [0x1401ab050], 5
jle 0x140021993
mov rbx, qword [0x1401ab048]
lea rcx, [rbp - 0x28]
call qword [0x14011af98]
mov rdx, rax
lea rcx, [rbp - 0x30]
call qword [0x14011af90]
mov dword [rbp - 0x18], 7
mov r9, qword [rbx + 0x138]
mov eax, dword [r9 - 0x10]
mov rdx, qword [rbp - 0x28]
mov dword [rsp + 0x20], eax
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x30]
call qword [0x14011afa0]
lea r8, str._1___
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14000a760
mov rbx, rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x18]
mov r8d, 0xffffffff
mov rdx, qword [rax]
mov rcx, qword [rdi + 0xc0]
call qword [0x14011b190]
test eax, eax
jne 0x1400216e5
mov rcx, qword [rbp - 0x18]
call qword [0x14011b1a8]
mov rcx, qword [rbp - 0x18]
call qword [0x14011b1b0]
mov rcx, rbx
call qword [0x14011a9b0]
nop
lea rcx, [rbp - 0x30]
call qword [0x14011a9b0]
nop
lea rcx, [rbp - 0x28]
call qword [0x14011a9b0]
nop
lea rcx, [rbp - 0x10]
call qword [0x14011a9b0]
cmp qword [0x1401ab050], 5
jle 0x14002198c
mov rbx, qword [0x1401ab048]
lea rcx, [rbx + 0x138]
call qword [0x14011af98]
mov rdx, rax
lea rcx, [rbp - 0x28]
call qword [0x14011af90]
mov dword [rbp - 0x18], 0x10
mov r9, qword [rbx + 0x138]
mov ecx, dword [r9 - 0x10]
lea rdx, str.DELETE_FROM_Files_WHERE
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x140021760
mov dword [rsp + 0x20], ecx
mov r8d, eax
lea rcx, [rbp - 0x28]
call qword [0x14011afa0]
nop
lea rcx, [rbp - 0x28]
call qword [0x14011af98]
mov rdx, rax
lea rcx, [rbp - 0x10]
call qword [0x14011af90]
mov dword [rbp - 0x18], 0x30
mov rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400217a1
mov rdx, qword [rbp - 0x28]
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x10]
call qword [0x14011afa0]
cmp qword [0x1401ab050], 5
jle 0x140021985
mov rbx, qword [0x1401ab048]
lea rcx, [rbp - 0x10]
call qword [0x14011af98]
mov rdx, rax
lea rcx, [rbp - 0x30]
call qword [0x14011af90]
mov dword [rbp - 0x18], 0x70
mov r9, qword [rbx + 0x138]
mov eax, dword [r9 - 0x10]
mov rdx, qword [rbp - 0x10]
mov dword [rsp + 0x20], eax
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x30]
call qword [0x14011afa0]
lea r8, str._1__
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14000a760
mov rbx, rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x18]
mov r8d, 0xffffffff
mov rdx, qword [rax]
mov rcx, qword [rdi + 0xc0]
call qword [0x14011b190]
test eax, eax
jne 0x140021866
mov rcx, qword [rbp - 0x18]
call qword [0x14011b1a8]
mov rcx, qword [rbp - 0x18]
call qword [0x14011b1b0]
mov rcx, rbx
call qword [0x14011a9b0]
nop
lea rcx, [rbp - 0x30]
call qword [0x14011a9b0]
nop
lea rcx, [rbp - 0x10]
call qword [0x14011a9b0]
nop
lea rcx, [rbp - 0x28]
call qword [0x14011a9b0]
cmp qword [0x1401ab050], 5
jle 0x14002197e
mov rbx, qword [0x1401ab048]
lea rcx, [rbx + 0x138]
call qword [0x14011af98]
mov rdx, rax
lea rcx, [rbp - 0x30]
call qword [0x14011af90]
mov dword [rbp - 0x18], 0x100
mov r9, qword [rbx + 0x138]
mov ecx, dword [r9 - 0x10]
lea rdx, str.DELETE_FROM_Folders_WHERE
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400218e0
mov dword [rsp + 0x20], ecx
mov r8d, eax
lea rcx, [rbp - 0x30]
call qword [0x14011afa0]
lea r8, str._1_
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14000a760
mov rbx, rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x10]
mov r8d, 0xffffffff
mov rdx, qword [rax]
mov rcx, qword [rdi + 0xc0]
call qword [0x14011b190]
test eax, eax
jne 0x140021949
mov rcx, qword [rbp - 0x10]
call qword [0x14011b1a8]
mov rcx, qword [rbp - 0x10]
call qword [0x14011b1b0]
mov rcx, rbx
call qword [0x14011a9b0]
nop
lea rcx, [rbp - 0x30]
call qword [0x14011a9b0]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400feb00
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [0x14011aaa8]
nop
call qword [0x14011aaa8]
nop
call qword [0x14011aaa8]
nop
call qword [0x14011aaa8]
nop
call qword [0x14011aaa8]
int3