Function at 0x180272ac0
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 [0x1804e0010]
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 0x180272d9a
call fcn.180172d80
test al, al
je 0x180272d9a
cmp qword [rsi], 0
je 0x180272d9a
cmp qword [rsi + 0x10], 0
je 0x180272d9a
cmp qword [rsi + 0x20], 0
je 0x180272d9a
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
movdqa xmm1, xmmword [0x1803f7240]
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.18015a250
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 0x180272d23
cmp qword [rcx], r15
je 0x180272d23
call fcn.18015fb70
test al, al
je 0x180272d23
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 0x180272bbe
mov rcx, qword [rdi]
test rcx, rcx
je 0x180272bbe
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x28]
mov rcx, qword [r14]
call fcn.180189980
movzx r14d, al
test rdi, rdi
je 0x180272be9
mov rcx, qword [rdi]
test rcx, rcx
je 0x180272be5
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x30], r15
test r14b, r14b
jne 0x180272c15
test rbx, rbx
je 0x180272c05
mov rcx, qword [rbx]
test rcx, rcx
je 0x180272c01
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 0x180272d26
test rbx, rbx
je 0x180272c2c
mov rcx, qword [rbx]
test rcx, rcx
je 0x180272c28
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 0x180272c42
xor dil, dil
jmp 0x180272d26
xor edx, edx
mov rcx, rbx
call fcn.1802caab0
cmp eax, 5
je 0x180272c7e
xor edx, edx
mov rcx, rbx
call fcn.1802ca5a0
movsxd rdi, eax
xor edx, edx
mov rcx, rbx
call fcn.1802ca530
test rax, rax
je 0x180272c7e
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.1802caab0
cmp eax, 5
je 0x180272cd0
mov edx, 1
mov rcx, rbx
call fcn.1802ca5a0
movsxd r14, eax
mov edx, 1
mov rcx, rbx
call fcn.1802ca530
mov rdi, rax
test rax, rax
je 0x180272cd0
mov r8d, r14d
mov rcx, rax
call fcn.18023a610
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.1802caab0
cmp eax, 5
je 0x180272d23
mov edx, 2
mov rcx, rbx
call fcn.1802ca5a0
movsxd r14, eax
mov edx, 2
mov rcx, rbx
call fcn.1802ca530
mov rdi, rax
test rax, rax
je 0x180272d23
mov r8d, r14d
mov rcx, rax
call fcn.18023a610
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 0x180272d37
mov rcx, rbx
call fcn.1802c8d60
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x48], r15d
mov byte [rbp - 0x44], 1
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x180272d82
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180272d7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180272d7d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r15w
movzx eax, dil
jmp 0x180272d9c
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret