Function at 0x14000ad60
Capabilities:
Reference sql statements

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x390
mov rax, qword [0x140174200]
xor rax, rsp
mov qword [rsp + 0x388], rax
mov rdi, rdx
mov qword [r11 - 0x2e8], rdx
mov rsi, rcx
mov qword [r11 - 0x2f0], rcx
mov qword [r11 - 0x2e0], rcx
mov qword [r11 - 0x1b0], rdx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r13b
mov dword [rsp + 0x40], 1
xor eax, eax
movups xmmword [rsp + 0x230], xmm0
movups xmmword [rsp + 0x240], xmm0
mov qword [r11 - 0x168], rax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
mov qword [r11 - 0x338], r13
xor r8d, r8d
lea rdx, [0x140158f8f]
lea rcx, [rsp + 0x68]
call fcn.140001bb0
nop
cmp qword [rsp + 0x78], r13
jne 0x14000ae1f
mov eax, r13d
jmp 0x14000ae33
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rax, qword [rsp + 0x68]
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000ae40
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [0x14013da20]
lea rcx, [rsp + 0x230]
call fcn.140038310
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x14000ae9d
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ae98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b9d2
call fcn.140037738
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], 0xf
mov byte [rsp + 0x68], 0
lea rdx, str.downloads
lea rcx, [rsp + 0x230]
call fcn.1400384b4
test al, al
je 0x14000b8dd
xorps xmm0, xmm0
movups xmmword [rsp + 0x2f0], xmm0
movups xmmword [rsp + 0x300], xmm0
movups xmmword [rsp + 0x310], xmm0
movups xmmword [rsp + 0x320], xmm0
movups xmmword [rsp + 0x330], xmm0
lea r8, str.SELECT_id__current_path_FROM_downloads
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x2f0]
call fcn.140038820
nop
mov r12d, 0xffffffff
movabs r15, 0x7fffffffffffffff
movzx ebx, byte [rsp + 0x44]
nop dword [rax]
lea rcx, [rsp + 0x2f0]
call fcn.140038bf0
test al, al
je 0x14000b80e
lea r8, [0x140159ba0]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x2f0]
call fcn.140038ce4
nop
lea rdx, [rsp + 0x368]
mov rcx, rax
call fcn.1400390c0
nop
mov rdi, qword [rsp + 0x178]
test rdi, rdi
je 0x14000afab
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14000afab
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14000afab
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
lea r8, str.current_path
lea rdx, [rsp + 0x188]
lea rcx, [rsp + 0x2f0]
call fcn.140038ce4
nop
lea rdx, [rsp + 0x258]
mov rcx, rax
call fcn.1400390c0
nop
mov rdi, qword [rsp + 0x190]
test rdi, rdi
je 0x14000b011
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14000b011
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14000b011
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x210], xmm0
mov qword [rsp + 0x220], r13
mov qword [rsp + 0x228], 0xf
mov byte [rsp + 0x210], 0
movups xmmword [rsp + 0x2a0], xmm0
movups xmmword [rsp + 0x2b0], xmm0
movups xmmword [rsp + 0x2c0], xmm0
movups xmmword [rsp + 0x2d0], xmm0
movups xmmword [rsp + 0x2e0], xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov r8d, 0x4b
lea rdx, str.SELECT_url_FROM_downloads_url_chains_WHERE_id___s_ORDER_BY_chain_index_ASC
lea rcx, [rsp + 0x48]
call fcn.140001bb0
nop
lea rdx, [rsp + 0x368]
lea rcx, [rsp + 0x1e8]
call fcn.140005ff0
mov rdi, rax
mov qword [rsp + 0xe0], rax
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x130], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x140], xmm1
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae r8, qword [rsp + 0x48]
lea r9, [rsp + 0x130]
xor edx, edx
xor ecx, ecx
call fcn.140007d90
add eax, 1
movsxd r14, eax
je 0x14000b9d8
mov rcx, r14
call fcn.14003777c
mov rsi, rax
mov qword [rsp + 0x340], rax
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x150], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x160], xmm1
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae r8, qword [rsp + 0x48]
lea r9, [rsp + 0x150]
mov rdx, r14
mov rcx, rax
call fcn.140007d90
lea r8, [r14 - 1]
add r8, rsi
mov rdx, rsi
lea rcx, [rsp + 0xa8]
call fcn.140014190
or dword [rsp + 0x40], 4
mov rcx, rsi
call fcn.140037738
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000b199
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000b194
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000ba07
mov rcx, r8
call fcn.140037738
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea r8, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 0x10
cmovae r8, qword [rsp + 0xa8]
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x2a0]
call fcn.140038820
nop
mov rdx, qword [rsp + 0xc0]
cmp rdx, 0x10
jb 0x14000b21b
inc rdx
mov rcx, qword [rsp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b216
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ba01
call fcn.140037738
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0xc0], 0xf
mov byte [rsp + 0xa8], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14000b274
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b26f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ba0d
call fcn.140037738
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
nop word [rax + rax]
lea rcx, [rsp + 0x2a0]
call fcn.140038bf0
test al, al
je 0x14000b434
lea r8, [0x140159924]
lea rdx, [rsp + 0x1b8]
lea rcx, [rsp + 0x2a0]
call fcn.140038ce4
nop
lea rdx, [rsp + 0x278]
mov rcx, rax
call fcn.1400390c0
nop
mov rdi, qword [rsp + 0x1c0]
test rdi, rdi
je 0x14000b30b
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14000b30b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14000b30b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rax, r15
mov rcx, qword [rsp + 0x288]
sub rax, rcx
cmp rax, 4
jb 0x14000ba13
lea r9, [rsp + 0x278]
cmp qword [rsp + 0x290], 0x10
cmovae r9, qword [rsp + 0x278]
mov qword [rsp + 0x30], 4
lea rax, str.___
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x278]
movzx edx, bl
lea rcx, [rsp + 0xe8]
call fcn.140007750
or dword [rsp + 0x40], 2
lea rdx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 0x10
cmovae rdx, qword [rsp + 0xe8]
mov r8, qword [rsp + 0xf8]
lea rcx, [rsp + 0x210]
call fcn.140006570
nop
mov rdx, qword [rsp + 0x100]
cmp rdx, 0x10
jb 0x14000b3e8
inc rdx
mov rcx, qword [rsp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b3e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ba18
call fcn.140037738
nop
mov rdx, qword [rsp + 0x290]
cmp rdx, 0x10
jb 0x14000b290
inc rdx
mov rcx, qword [rsp + 0x278]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b42a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ba1e
call fcn.140037738
jmp 0x14000b290
mov rax, qword [rsp + 0x220]
lea rcx, [rax - 4]
cmp rax, rcx
jb 0x14000ba24
mov qword [rsp + 0x220], rcx
lea rax, [rsp + 0x210]
cmp qword [rsp + 0x228], 0x10
cmovae rax, qword [rsp + 0x210]
mov byte [rax + rcx], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], r13
mov qword [rsp + 0xa0], r13
mov r8d, 9
lea rdx, str.__s_:__s_n
lea rcx, [rsp + 0x88]
call fcn.140001bb0
nop
lea r14, [rsp + 0x210]
cmp qword [rsp + 0x228], 0x10
cmovae r14, qword [rsp + 0x210]
lea r15, [rsp + 0x258]
cmp qword [rsp + 0x270], 0x10
cmovae r15, qword [rsp + 0x258]
lea r8, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0x10
cmovae r8, qword [rsp + 0x88]
mov qword [rsp + 0x20], r14
mov r9, r15
xor edx, edx
xor ecx, ecx
call fcn.140007d90
add eax, 1
movsxd rsi, eax
je 0x14000ba2a
mov rcx, rsi
call fcn.14003777c
mov rdi, rax
mov qword [rsp + 0x348], rax
lea r8, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0x10
cmovae r8, qword [rsp + 0x88]
mov qword [rsp + 0x20], r14
mov r9, r15
mov rdx, rsi
mov rcx, rax
call fcn.140007d90
lea r8, [rsi - 1]
add r8, rdi
mov rdx, rdi
lea rcx, [rsp + 0x108]
call fcn.140014190
or dword [rsp + 0x40], 8
mov rcx, rdi
call fcn.140037738
nop
lea rdx, [rsp + 0x108]
cmp qword [rsp + 0x120], 0x10
cmovae rdx, qword [rsp + 0x108]
mov r8, qword [rsp + 0x118]
mov rsi, qword [rsp + 0xc8]
mov rcx, rsi
call fcn.140006570
nop
mov rdx, qword [rsp + 0x120]
cmp rdx, 0x10
jb 0x14000b5ec
inc rdx
mov rcx, qword [rsp + 0x108]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b5e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ba52
call fcn.140037738
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0x10
jb 0x14000b630
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b62a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ba58
call fcn.140037738
nop
mov r8, qword [rsp + 0x2e0]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x2e0]
lea rcx, [rsp + 0x2e0]
call fcn.140014720
mov edx, 0x48
mov rcx, qword [rsp + 0x2e0]
call fcn.140037738
mov rdi, qword [rsp + 0x2d0]
test rdi, rdi
je 0x14000b69b
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14000b69b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14000b69b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rdx, qword [rsp + 0x2b8]
cmp rdx, 0x10
jb 0x14000b6de
inc rdx
mov rcx, qword [rsp + 0x2a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b6d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ba5e
call fcn.140037738
mov qword [rsp + 0x2b0], r13
mov qword [rsp + 0x2b8], 0xf
mov byte [rsp + 0x2a0], 0
mov rdx, qword [rsp + 0x228]
cmp rdx, 0x10
jb 0x14000b73d
inc rdx
mov rcx, qword [rsp + 0x210]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b738
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ba64
call fcn.140037738
mov qword [rsp + 0x220], r13
mov qword [rsp + 0x228], 0xf
mov byte [rsp + 0x210], 0
mov rdx, qword [rsp + 0x270]
cmp rdx, 0x10
jb 0x14000b79c
inc rdx
mov rcx, qword [rsp + 0x258]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b797
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ba6a
call fcn.140037738
mov qword [rsp + 0x268], r13
mov qword [rsp + 0x270], 0xf
mov byte [rsp + 0x258], 0
mov rdx, qword [rsp + 0x380]
cmp rdx, 0x10
movabs r15, 0x7fffffffffffffff
jb 0x14000af30
inc rdx
mov rcx, qword [rsp + 0x368]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b804
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ba70
call fcn.140037738
jmp 0x14000af30
mov rdi, qword [rsp + 0xd0]
jmp 0x14000b82f
mov r8, qword [rsp + 0x330]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x330]
call fcn.140014720
mov edx, 0x48
mov rcx, qword [rsp + 0x330]
call fcn.140037738
mov rbx, qword [rsp + 0x320]
test rbx, rbx
je 0x14000b899
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14000b899
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r12d
cmp r12d, 1
jne 0x14000b899
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rdx, qword [rsp + 0x308]
cmp rdx, 0x10
jb 0x14000b8dd
inc rdx
mov rcx, qword [rsp + 0x2f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b8d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ba76
call fcn.140037738
nop
mov rdx, qword [rsp + 0x250]
cmp rdx, 0x10
jb 0x14000b920
inc rdx
mov rcx, qword [rsp + 0x238]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b91b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ba7c
call fcn.140037738
mov qword [rsp + 0x248], r13
mov qword [rsp + 0x250], 0xf
mov byte [rsp + 0x238], 0
mov rdx, qword [rsp + 0x230]
test rdx, rdx
je 0x14000b957
lea rcx, [rsp + 0x230]
call fcn.140038458
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000b98d
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000b988
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000b9cc
mov rcx, r8
call fcn.140037738
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rax, rsi
mov rcx, qword [rsp + 0x388]
xor rcx, rsp
call fcn.1400371f0
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.1401135b4
nop
call fcn.1401135b4
nop
lea rdx, str.Error_during_formatting.
lea rcx, [rsp + 0x1a0]
call fcn.140007df0
lea rdx, [0x1401724c0]
lea rcx, [rsp + 0x1a0]
call fcn.1401062a8
nop
call fcn.1401135b4
nop
call fcn.1401135b4
nop
call fcn.1401135b4
nop
call fcn.140001630
call fcn.1401135b4
nop
call fcn.1401135b4
int3
call fcn.140007970
nop
lea rdx, str.Error_during_formatting.
lea rcx, [rsp + 0x1d0]
call fcn.140007df0
lea rdx, [0x1401724c0]
lea rcx, [rsp + 0x1d0]
call fcn.1401062a8
call fcn.1401135b4
nop
call fcn.1401135b4
nop
call fcn.1401135b4
nop
call fcn.1401135b4
nop
call fcn.1401135b4
nop
call fcn.1401135b4
nop
call fcn.1401135b4
nop
call fcn.1401135b4
int3