Function at 0x1802700b0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x1804cd010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [rcx + 0x58]
test rcx, rcx
je 0x18027038a
call fcn.18016e840
test al, al
je 0x18027038a
cmp qword [rsi], 0
je 0x18027038a
cmp qword [rsi + 0x10], 0
je 0x18027038a
cmp qword [rsi + 0x20], 0
je 0x18027038a
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
movdqa xmm1, xmmword [0x1803e8770]
movdqu xmmword [rbp - 0x18], xmm1
xor r15d, r15d
mov word [rbp - 0x28], r15w
mov r8, rbx
lea rdx, str.SELECT_Exif__Data__Thumb___FROM_TImageInfo_WHERE___ID__I64d
lea rcx, [rbp - 0x28]
call fcn.180155210
mov ebx, r15d
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x48], r15d
mov byte [rbp - 0x44], 1
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x180270313
cmp qword [rcx], r15
je 0x180270313
call fcn.18015ab30
test al, al
je 0x180270313
mov rbx, qword [rdi + 0x60]
mov qword [rbp - 0x40], rbx
mov r14, qword [rdi + 0x58]
mov qword [rbp - 0x30], r15
mov rdi, qword [r14]
add rdi, 0x40
mov qword [rbp - 0x30], rdi
je 0x1802701ae
mov rcx, qword [rdi]
test rcx, rcx
je 0x1802701ae
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x28]
mov rcx, qword [r14]
call fcn.1801853f0
movzx r14d, al
test rdi, rdi
je 0x1802701d9
mov rcx, qword [rdi]
test rcx, rcx
je 0x1802701d5
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x30], r15
test r14b, r14b
jne 0x180270205
test rbx, rbx
je 0x1802701f5
mov rcx, qword [rbx]
test rcx, rcx
je 0x1802701f1
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbx + 8], 0
mov qword [rbp - 0x40], r15
xor dil, dil
mov rbx, qword [rbp - 0x50]
jmp 0x180270316
test rbx, rbx
je 0x18027021c
mov rcx, qword [rbx]
test rcx, rcx
je 0x180270218
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbx + 8], 0
mov qword [rbp - 0x40], r15
mov rbx, qword [rbp - 0x50]
cmp byte [rbp - 0x44], 0
je 0x180270232
xor dil, dil
jmp 0x180270316
xor edx, edx
mov rcx, rbx
call fcn.1802c44b0
cmp eax, 5
je 0x18027026e
xor edx, edx
mov rcx, rbx
call fcn.1802c3fa0
movsxd rdi, eax
xor edx, edx
mov rcx, rbx
call fcn.1802c3f30
test rax, rax
je 0x18027026e
mov rcx, qword [rsi + 0x10]
mov r9, qword [rcx]
mov r8, rdi
mov rdx, rax
call qword [r9 + 0x18]
mov edx, 1
mov rcx, rbx
call fcn.1802c44b0
cmp eax, 5
je 0x1802702c0
mov edx, 1
mov rcx, rbx
call fcn.1802c3fa0
movsxd r14, eax
mov edx, 1
mov rcx, rbx
call fcn.1802c3f30
mov rdi, rax
test rax, rax
je 0x1802702c0
mov r8d, r14d
mov rcx, rax
call fcn.18023c8c0
mov rcx, qword [rsi]
mov r9, qword [rcx]
mov r8, r14
mov rdx, rdi
call qword [r9 + 0x18]
mov edx, 2
mov rcx, rbx
call fcn.1802c44b0
cmp eax, 5
je 0x180270313
mov edx, 2
mov rcx, rbx
call fcn.1802c3fa0
movsxd r14, eax
mov edx, 2
mov rcx, rbx
call fcn.1802c3f30
mov rdi, rax
test rax, rax
je 0x180270313
mov r8d, r14d
mov rcx, rax
call fcn.18023c8c0
mov rcx, qword [rsi + 0x20]
mov r9, qword [rcx]
mov r8, r14
mov rdx, rdi
call qword [r9 + 0x18]
mov dil, 1
test rbx, rbx
je 0x180270327
mov rcx, rbx
call fcn.1802c2760
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x48], r15d
mov byte [rbp - 0x44], 1
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x180270372
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18027036d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18027036d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r15w
movzx eax, dil
jmp 0x18027038c
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180388400
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret