Function at 0x18026d8c0
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 [0x1804ca010]
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 0x18026db9a
call fcn.18016e280
test al, al
je 0x18026db9a
cmp qword [rsi], 0
je 0x18026db9a
cmp qword [rsi + 0x10], 0
je 0x18026db9a
cmp qword [rsi + 0x20], 0
je 0x18026db9a
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
movdqa xmm1, xmmword [0x1803e6740]
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.180154c50
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 0x18026db23
cmp qword [rcx], r15
je 0x18026db23
call fcn.18015a570
test al, al
je 0x18026db23
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 0x18026d9be
mov rcx, qword [rdi]
test rcx, rcx
je 0x18026d9be
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x28]
mov rcx, qword [r14]
call fcn.180184e30
movzx r14d, al
test rdi, rdi
je 0x18026d9e9
mov rcx, qword [rdi]
test rcx, rcx
je 0x18026d9e5
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x30], r15
test r14b, r14b
jne 0x18026da15
test rbx, rbx
je 0x18026da05
mov rcx, qword [rbx]
test rcx, rcx
je 0x18026da01
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 0x18026db26
test rbx, rbx
je 0x18026da2c
mov rcx, qword [rbx]
test rcx, rcx
je 0x18026da28
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 0x18026da42
xor dil, dil
jmp 0x18026db26
xor edx, edx
mov rcx, rbx
call fcn.1802c1cc0
cmp eax, 5
je 0x18026da7e
xor edx, edx
mov rcx, rbx
call fcn.1802c17b0
movsxd rdi, eax
xor edx, edx
mov rcx, rbx
call fcn.1802c1740
test rax, rax
je 0x18026da7e
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.1802c1cc0
cmp eax, 5
je 0x18026dad0
mov edx, 1
mov rcx, rbx
call fcn.1802c17b0
movsxd r14, eax
mov edx, 1
mov rcx, rbx
call fcn.1802c1740
mov rdi, rax
test rax, rax
je 0x18026dad0
mov r8d, r14d
mov rcx, rax
call fcn.18023a0d0
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.1802c1cc0
cmp eax, 5
je 0x18026db23
mov edx, 2
mov rcx, rbx
call fcn.1802c17b0
movsxd r14, eax
mov edx, 2
mov rcx, rbx
call fcn.1802c1740
mov rdi, rax
test rax, rax
je 0x18026db23
mov r8d, r14d
mov rcx, rax
call fcn.18023a0d0
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 0x18026db37
mov rcx, rbx
call fcn.1802bff70
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x48], r15d
mov byte [rbp - 0x44], 1
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x18026db82
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026db7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026db7d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r15w
movzx eax, dil
jmp 0x18026db9c
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180385c10
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret