Function at 0x180270910
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 [0x1804cd010]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r12, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
call fcn.180271460
test al, al
jne 0x18027095f
mov eax, 1
jmp 0x18027115b
mov rdx, rdi
mov rcx, rsi
call fcn.18026f310
test al, al
je 0x180270955
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x1803e8770]
movdqu xmmword [rbp - 0x70], xmm1
xor r15d, r15d
mov word [rbp - 0x80], r15w
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.180157a30
mov rbx, rax
lea rax, [rbp - 0x80]
cmp rax, rbx
je 0x1802709cc
lea rcx, [rbp - 0x80]
call fcn.180004e20
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 0x180270a11
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180270a0c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180270a0c
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 [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.18015eff0
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 [0x1803e8770]
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.180155210
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 0x18027107d
cmp qword [rcx], 0
je 0x18027107d
call fcn.18015ab30
test al, al
je 0x18027107d
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 0x180270b07
mov rcx, qword [rdi]
test rcx, rcx
je 0x180270b07
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x58]
mov rcx, qword [rsi]
call fcn.1801853f0
movzx esi, al
test rdi, rdi
je 0x180270b32
mov rcx, qword [rdi]
test rcx, rcx
je 0x180270b2e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x60], r15
test sil, sil
je 0x18027105c
cmp byte [rsp + 0x2c], 0
jne 0x18027105c
test rbx, rbx
je 0x180270b5d
mov rcx, qword [rbx]
test rcx, rcx
je 0x180270b59
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 [0x1803e8770]
movdqu xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], r15w
mov r15d, 2
mov r8d, r15d
lea rdx, [0x1803da51c]
lea rcx, [rsp + 0x60]
call fcn.180004ea0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18016e460
mov edi, eax
cmp eax, 0xffffffff
je 0x180270bd4
mov edx, eax
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1802c44b0
lea rbx, [r15 - 3]
cmp eax, 5
je 0x180270bdb
mov edx, edi
mov rcx, rsi
call fcn.1802c4220
jmp 0x180270bde
mov rbx, 0xffffffffffffffff
mov rax, rbx
mov qword [r14], rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x180270c26
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180270c21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180270c21
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 [rsp + 0x70], xmm0
xor esi, esi
mov word [rsp + 0x60], si
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1803e8770]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], si
lea r8d, [rsi + 8]
lea rdx, str.LastTime
lea rcx, [rsp + 0x40]
call fcn.180004ea0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.18016e460
mov edi, eax
cmp eax, 0xffffffff
je 0x180270caf
mov edx, eax
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1802c44b0
cmp eax, 5
je 0x180270ca8
mov edx, edi
mov rcx, rsi
call fcn.1802c4220
mov r14, rax
xor esi, esi
jmp 0x180270cb2
mov r14, rbx
xor esi, esi
jmp 0x180270cb2
mov r14, rbx
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180270cf7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180270cf2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180270cf2
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 [rsp + 0x50], xmm0
mov word [rsp + 0x40], si
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1803e8770]
movdqu xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], si
mov r8d, 9
lea rdx, str.ImageSize
lea rcx, [rsp + 0x60]
call fcn.180004ea0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18016e460
mov esi, eax
mov rdi, qword [rsp + 0x20]
cmp eax, 0xffffffff
je 0x180270d77
mov edx, eax
mov rcx, rdi
call fcn.1802c44b0
cmp eax, 5
je 0x180270d77
mov edx, esi
mov rcx, rdi
call fcn.1802c4220
mov rsi, rax
jmp 0x180270d7a
mov rsi, rbx
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x180270dbf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180270dba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180270dba
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 [rsp + 0x70], xmm0
xor eax, eax
mov word [rsp + 0x60], ax
cmp r14, r13
jne 0x180271085
cmp rsi, qword [rbp - 0x30]
jne 0x180271085
xor r13d, r13d
test r12, r12
je 0x180271057
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1803e8770]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], r13w
lea r8d, [rax + 0xa]
lea rdx, str.ImageWidth
lea rcx, [rsp + 0x40]
call fcn.180004ea0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.18016e460
mov edi, eax
cmp eax, 0xffffffff
je 0x180270e5f
mov edx, eax
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1802c44b0
cmp eax, 5
je 0x180270e5f
mov edx, edi
mov rcx, rsi
call fcn.1802c4180
mov r15d, eax
jmp 0x180270e62
mov r15d, ebx
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180270ea7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180270ea2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180270ea2
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 [rsp + 0x50], xmm0
mov word [rsp + 0x40], r13w
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1803e8770]
movdqu xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], r13w
mov r8d, 0xb
lea rdx, str.ImageHeight
lea rcx, [rsp + 0x60]
call fcn.180004ea0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18016e460
mov edi, eax
cmp eax, 0xffffffff
je 0x180270f28
mov edx, eax
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1802c44b0
cmp eax, 5
je 0x180270f28
mov edx, edi
mov rcx, rsi
call fcn.1802c4180
mov esi, eax
jmp 0x180270f2a
mov esi, ebx
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x180270f6f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180270f6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180270f6a
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 [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1803e8770]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], r13w
mov r8d, 9
lea rdx, str.ImageType
lea rcx, [rsp + 0x40]
call fcn.180004ea0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.18016e460
mov r14d, eax
mov rdi, qword [rsp + 0x20]
cmp eax, 0xffffffff
je 0x180270ff0
mov edx, eax
mov rcx, rdi
call fcn.1802c44b0
cmp eax, 5
je 0x180270ff0
mov edx, r14d
mov rcx, rdi
call fcn.1802c4180
mov ebx, eax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180271035
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180271030
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180271030
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 [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 0x180271082
test rbx, rbx
je 0x180271073
mov rcx, qword [rbx]
test rcx, rcx
je 0x18027106f
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 0x18027109b
mov rcx, rdi
call fcn.1802c2760
xor ebx, ebx
mov qword [rsp + 0x20], rbx
jmp 0x18027109d
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov byte [rsp + 0x2c], 1
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x1802710e9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802710e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802710e4
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 - 0x48], xmm0
mov word [rbp - 0x58], bx
lea rcx, [rbp - 8]
call fcn.180004e20
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x180271147
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180271142
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180271142
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 - 0x70], xmm0
mov word [rbp - 0x80], bx
mov eax, r15d
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180388400
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret