Function at 0x18026e120
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r12, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
call fcn.18026ec70
test al, al
jne 0x18026e16f
mov eax, 1
jmp 0x18026e96b
mov rdx, rdi
mov rcx, rsi
call fcn.18026cb20
test al, al
je 0x18026e165
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rbp - 0x70], xmm1
xor r15d, r15d
mov word [rbp - 0x80], r15w
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.180157470
mov rbx, rax
lea rax, [rbp - 0x80]
cmp rax, rbx
je 0x18026e1dc
lea rcx, [rbp - 0x80]
call fcn.180004df0
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x18026e221
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026e21c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026e21c
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 [rsp + 0x50], xmm0
mov word [rsp + 0x40], r15w
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], r15
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], r15
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r15w
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.18015ea30
mov r13d, dword [rbp - 0x14]
shl r13, 0x20
mov eax, dword [rbp - 0x18]
add r13, rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rbp - 0x48], xmm1
mov word [rbp - 0x58], r15w
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae r8, qword [rbp - 0x80]
lea rdx, str.SELECT_ID__LastTime__ImageSize__ImageWidth__ImageHeight__ImageType__FROM_TImageInfo___________WHERE__ImageName___s
lea rcx, [rbp - 0x58]
call fcn.180154c50
mov rdi, r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x28], r15d
mov byte [rsp + 0x2c], 1
mov rcx, qword [rsi + 0x60]
test rcx, rcx
je 0x18026e88d
cmp qword [rcx], 0
je 0x18026e88d
call fcn.18015a570
test al, al
je 0x18026e88d
mov rbx, qword [rsi + 0x60]
mov qword [rsp + 0x30], rbx
mov rsi, qword [rsi + 0x58]
mov qword [rbp - 0x60], r15
mov rdi, qword [rsi]
add rdi, 0x40
mov qword [rbp - 0x60], rdi
je 0x18026e317
mov rcx, qword [rdi]
test rcx, rcx
je 0x18026e317
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x58]
mov rcx, qword [rsi]
call fcn.180184e30
movzx esi, al
test rdi, rdi
je 0x18026e342
mov rcx, qword [rdi]
test rcx, rcx
je 0x18026e33e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x60], r15
test sil, sil
je 0x18026e86c
cmp byte [rsp + 0x2c], 0
jne 0x18026e86c
test rbx, rbx
je 0x18026e36d
mov rcx, qword [rbx]
test rcx, rcx
je 0x18026e369
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbx + 8], 0
mov qword [rsp + 0x30], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], r15w
mov r15d, 2
mov r8d, r15d
lea rdx, [0x1803d897c]
lea rcx, [rsp + 0x60]
call fcn.180004e70
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18016dea0
mov edi, eax
cmp eax, 0xffffffff
je 0x18026e3e4
mov edx, eax
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1802c1cc0
lea rbx, [r15 - 3]
cmp eax, 5
je 0x18026e3eb
mov edx, edi
mov rcx, rsi
call fcn.1802c1a30
jmp 0x18026e3ee
mov rbx, 0xffffffffffffffff
mov rax, rbx
mov qword [r14], rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18026e436
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026e431
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026e431
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 [rsp + 0x70], xmm0
xor esi, esi
mov word [rsp + 0x60], si
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], si
lea r8d, [rsi + 8]
lea rdx, str.LastTime
lea rcx, [rsp + 0x40]
call fcn.180004e70
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.18016dea0
mov edi, eax
cmp eax, 0xffffffff
je 0x18026e4bf
mov edx, eax
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1802c1cc0
cmp eax, 5
je 0x18026e4b8
mov edx, edi
mov rcx, rsi
call fcn.1802c1a30
mov r14, rax
xor esi, esi
jmp 0x18026e4c2
mov r14, rbx
xor esi, esi
jmp 0x18026e4c2
mov r14, rbx
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x18026e507
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026e502
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026e502
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 [rsp + 0x50], xmm0
mov word [rsp + 0x40], si
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], si
mov r8d, 9
lea rdx, str.ImageSize
lea rcx, [rsp + 0x60]
call fcn.180004e70
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18016dea0
mov esi, eax
mov rdi, qword [rsp + 0x20]
cmp eax, 0xffffffff
je 0x18026e587
mov edx, eax
mov rcx, rdi
call fcn.1802c1cc0
cmp eax, 5
je 0x18026e587
mov edx, esi
mov rcx, rdi
call fcn.1802c1a30
mov rsi, rax
jmp 0x18026e58a
mov rsi, rbx
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18026e5cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026e5ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026e5ca
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 [rsp + 0x70], xmm0
xor eax, eax
mov word [rsp + 0x60], ax
cmp r14, r13
jne 0x18026e895
cmp rsi, qword [rbp - 0x30]
jne 0x18026e895
xor r13d, r13d
test r12, r12
je 0x18026e867
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], r13w
lea r8d, [rax + 0xa]
lea rdx, str.ImageWidth
lea rcx, [rsp + 0x40]
call fcn.180004e70
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.18016dea0
mov edi, eax
cmp eax, 0xffffffff
je 0x18026e66f
mov edx, eax
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1802c1cc0
cmp eax, 5
je 0x18026e66f
mov edx, edi
mov rcx, rsi
call fcn.1802c1990
mov r15d, eax
jmp 0x18026e672
mov r15d, ebx
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x18026e6b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026e6b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026e6b2
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 [rsp + 0x50], xmm0
mov word [rsp + 0x40], r13w
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], r13w
mov r8d, 0xb
lea rdx, str.ImageHeight
lea rcx, [rsp + 0x60]
call fcn.180004e70
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18016dea0
mov edi, eax
cmp eax, 0xffffffff
je 0x18026e738
mov edx, eax
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1802c1cc0
cmp eax, 5
je 0x18026e738
mov edx, edi
mov rcx, rsi
call fcn.1802c1990
mov esi, eax
jmp 0x18026e73a
mov esi, ebx
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18026e77f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026e77a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026e77a
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 [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], r13w
mov r8d, 9
lea rdx, str.ImageType
lea rcx, [rsp + 0x40]
call fcn.180004e70
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.18016dea0
mov r14d, eax
mov rdi, qword [rsp + 0x20]
cmp eax, 0xffffffff
je 0x18026e800
mov edx, eax
mov rcx, rdi
call fcn.1802c1cc0
cmp eax, 5
je 0x18026e800
mov edx, r14d
mov rcx, rdi
call fcn.1802c1990
mov ebx, eax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x18026e845
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026e840
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026e840
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 [rsp + 0x50], xmm0
mov word [rsp + 0x40], r13w
mov dword [r12 + 4], r15d
mov dword [r12 + 8], esi
mov dword [r12], ebx
mov eax, r13d
jmp 0x18026e892
test rbx, rbx
je 0x18026e883
mov rcx, qword [rbx]
test rcx, rcx
je 0x18026e87f
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbx + 8], 0
mov qword [rsp + 0x30], r15
mov rdi, qword [rsp + 0x20]
mov eax, 1
mov r15d, eax
test rdi, rdi
je 0x18026e8ab
mov rcx, rdi
call fcn.1802bff70
xor ebx, ebx
mov qword [rsp + 0x20], rbx
jmp 0x18026e8ad
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov byte [rsp + 0x2c], 1
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x18026e8f9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026e8f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026e8f4
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 - 0x48], xmm0
mov word [rbp - 0x58], bx
lea rcx, [rbp - 8]
call fcn.180004df0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x18026e957
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026e952
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026e952
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 - 0x70], xmm0
mov word [rbp - 0x80], bx
mov eax, r15d
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret