Function at 0x18026e5a0
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 [0x1804cc010]
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 0x18026e87a
call fcn.18016e190
test al, al
je 0x18026e87a
cmp qword [rsi], 0
je 0x18026e87a
cmp qword [rsi + 0x10], 0
je 0x18026e87a
cmp qword [rsi + 0x20], 0
je 0x18026e87a
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
movdqa xmm1, xmmword [0x1803e7600]
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.180154b60
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 0x18026e803
cmp qword [rcx], r15
je 0x18026e803
call fcn.18015a480
test al, al
je 0x18026e803
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 0x18026e69e
mov rcx, qword [rdi]
test rcx, rcx
je 0x18026e69e
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x28]
mov rcx, qword [r14]
call fcn.180184d40
movzx r14d, al
test rdi, rdi
je 0x18026e6c9
mov rcx, qword [rdi]
test rcx, rcx
je 0x18026e6c5
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x30], r15
test r14b, r14b
jne 0x18026e6f5
test rbx, rbx
je 0x18026e6e5
mov rcx, qword [rbx]
test rcx, rcx
je 0x18026e6e1
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 0x18026e806
test rbx, rbx
je 0x18026e70c
mov rcx, qword [rbx]
test rcx, rcx
je 0x18026e708
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 0x18026e722
xor dil, dil
jmp 0x18026e806
xor edx, edx
mov rcx, rbx
call fcn.1802c29a0
cmp eax, 5
je 0x18026e75e
xor edx, edx
mov rcx, rbx
call fcn.1802c2490
movsxd rdi, eax
xor edx, edx
mov rcx, rbx
call fcn.1802c2420
test rax, rax
je 0x18026e75e
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.1802c29a0
cmp eax, 5
je 0x18026e7b0
mov edx, 1
mov rcx, rbx
call fcn.1802c2490
movsxd r14, eax
mov edx, 1
mov rcx, rbx
call fcn.1802c2420
mov rdi, rax
test rax, rax
je 0x18026e7b0
mov r8d, r14d
mov rcx, rax
call fcn.18023c050
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.1802c29a0
cmp eax, 5
je 0x18026e803
mov edx, 2
mov rcx, rbx
call fcn.1802c2490
movsxd r14, eax
mov edx, 2
mov rcx, rbx
call fcn.1802c2420
mov rdi, rax
test rax, rax
je 0x18026e803
mov r8d, r14d
mov rcx, rax
call fcn.18023c050
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 0x18026e817
mov rcx, rbx
call fcn.1802c0c50
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x48], r15d
mov byte [rbp - 0x44], 1
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x18026e862
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026e85d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026e85d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r15w
movzx eax, dil
jmp 0x18026e87c
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret