Function at 0x140188a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
mov r15, rdx
movsxd rdx, r8d
mov rbx, rcx
mov qword [rsp + 0x1a8], r9
lea r12, [rdx + 1]
mov dword [rsp + 0x70], 0
mov rsi, qword [r15]
mov rbp, rdx
mov qword [rsp + 0xa0], 0
shl r12, 4
lea rax, [r12 + 8]
mov qword [rsp + 0x58], rax
test r9, r9
je 0x140188adc
mov eax, dword [r9]
mov dword [rsp + 0x70], eax
mov rax, qword [rbx]
lea r8d, [rbp + 1]
lea r14, [rsp + 0xc8]
mov ecx, 0x1e
mov qword [rsp + 0xa8], 0
mov rdi, r14
mov qword [rsp + 0xb0], 0
mov eax, dword [rax + 0x5c]
mov dword [rsp + 0x7c], eax
xor eax, eax
rep stosd dword [rdi], eax
mov rdi, rdx
shl rdi, 4
lea rdx, [rsi + rdi]
mov eax, dword [rdx + 0x18]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x140188b79
lea rax, [rsi + r12 + 0x18]
mov rcx, rbx
mov r15, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
movsxd rax, dword [rdx + 0x2c]
mov rdx, qword [rdx + 0x30]
add r15, rsi
imul rax, rax, 0xc
lea rdi, [rdx + rax - 0xc]
mov rdx, r14
mov r8d, dword [rdi]
call fcn.140193bb0
mov eax, dword [rdi + 8]
mov dword [rsp + 0x138], 0
inc eax
mov dword [rsp + 0xd0], eax
jmp 0x140188c1e
mov rcx, rbx
mov rdx, rsi
mov dword [rsp + 0x50], r8d
call fcn.140182eb0
mov r8d, dword [rsp + 0x50]
lea rcx, [rbx + 0x34]
mov r13d, eax
mov eax, dword [rsi + 0x14]
dec eax
cmp eax, ebp
jne 0x140188bbd
mov rdx, r15
mov dword [rsp + 0x60], r8d
mov qword [rsp + 0x50], rcx
call fcn.14018fa50
mov rsi, qword [r15]
mov r8d, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov rdx, rsi
call fcn.14018fbc0
cmp dword [rbx + 0x34], 0
jne 0x14018929c
lea rax, [rsi + r12 + 0x18]
mov rdx, r14
mov r8d, r13d
mov rcx, rbx
mov qword [rsp + 0x60], rax
mov r15, qword [rsp + 0x58]
call fcn.140193bb0
lea rax, [rsi + rdi]
movsxd rdi, dword [rax + 0x2c]
add r15, rsi
mov rdx, rdi
imul rdi, rdi, 0xc
add rdi, qword [rax + 0x30]
inc edx
mov dword [rax + 0x2c], edx
mov dword [rdi + 4], 1
mov dword [rdi], r13d
inc dword [rsi + 0x10]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x78], 0
cmp dword [rax + 4], 1
jne 0x140188c41
lea eax, [rbp + 2]
cmp dword [rsi + 0x14], eax
sete al
movzx eax, al
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x30], ebp
xor r9d, r9d
mov r8d, 0x20
mov rdx, rsi
lea rax, [rsp + 0xa0]
mov rcx, rbx
lea r12, [rbx + 0x34]
xor r14d, r14d
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x20], 0
call fcn.14018b0e0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x80], rax
cmp dword [rbx + 0x34], 0
jne 0x140188f0f
mov rbp, qword [rsp + 0xa0]
cmp byte [rbp + 0x14], 0
jne 0x140188f0f
mov rax, qword [rbp + 0x58]
movzx eax, word [rax + 4]
mov word [rsp + 0x58], ax
mov dword [rsp + 0x68], eax
movzx eax, word [rsp + 0x58]
imul rax, rax, 0x78
add rax, rbp
mov r13d, dword [rax + 0xc0]
mov r9, qword [rax + 0xb8]
cmp dword [rsp + 0xb0], r13d
jne 0x140188d13
test r13d, r13d
jle 0x140188d55
mov rdx, qword [rsp + 0xa8]
mov rcx, r9
movsxd r8, r13d
mov qword [rsp + 0x88], r9
call sub.msvcrt.dll_memcmp
mov r9, qword [rsp + 0x88]
test eax, eax
je 0x140188d55
cmp qword [rsp + 0x1a8], 0
je 0x140188d2f
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x114], eax
jg 0x140188f0f
mov rdx, qword [rsp + 0x80]
mov r8d, r13d
mov rcx, r12
mov qword [rsp + 0x88], r9
xor r14d, r14d
call fcn.1401c58f0
mov r9, qword [rsp + 0x88]
movsxd rax, dword [rsp + 0x68]
imul rax, rax, 0x78
add rax, rbp
cmp dword [rax + 0xd0], 0
jne 0x140188d82
cmp dword [rsp + 0x78], 0
jne 0x140188ef4
cmp byte [rax + 0xd4], 0
je 0x140188ef4
mov eax, r14d
or eax, dword [rbx + 0x34]
jne 0x140188da3
lea rdx, [rsp + 0xc8]
mov r8d, r13d
mov rcx, rbx
mov r14d, 1
call fcn.140193540
cmp dword [rbx + 0x34], 0
jne 0x140188e5b
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rdx + 0x58]
movzx eax, word [rax + 4]
imul rax, rax, 0x78
mov r13, qword [rdx + rax + 0xc8]
mov rdx, qword [rbx]
mov eax, dword [rsp + 0xf0]
add eax, dword [rsp + 0xe0]
cmp eax, dword [rdx + 0x84]
jl 0x140188df2
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.140193ae0
cmp byte [rsp + 0x111], 0
je 0x140188e23
mov eax, dword [rsp + 0xe0]
mov rdx, qword [rsp + 0xd8]
mov r8, r13
mov rcx, rbx
xchg al, ah
mov word [rdx], ax
lea rdx, [rsp + 0xc8]
call fcn.1401936f0
cmp word [rsp + 0x110], 0
mov r8, r13
lea rdx, [rsp + 0xd8]
jne 0x140188e41
sub r8, qword [rsp + 0x108]
mov rcx, r12
call fcn.1401c5880
mov qword [rsp + 0x108], r13
mov word [rsp + 0x110], 0
movsxd r13, dword [rsp + 0x68]
imul r13, r13, 0x78
add r13, rbp
cmp dword [rsp + 0x7c], 1
movzx eax, byte [r13 + 0xd4]
jne 0x140188eae
test al, al
je 0x140188ef4
lea rdx, [rsp + 0xd8]
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x58], rdx
call fcn.1401c5880
cmp dword [r13 + 0xd0], 0
jle 0x140188ef4
mov rdx, qword [rsp + 0x58]
xor r8d, r8d
mov rcx, r12
call fcn.1401c5880
jmp 0x140188ef4
mov edx, dword [r13 + 0xd0]
mov rcx, r12
lea r13, [rsp + 0xc8]
lea r8d, [rax + rdx*2]
lea rdx, [rsp + 0xd8]
movsxd r8, r8d
call fcn.1401c5880
movzx eax, word [rsp + 0x58]
mov r8, r13
mov rcx, rbx
lea r9, [0x14018a5a0]
imul rax, rax, 0x78
lea rdx, [rbp + rax + 0x60]
call fcn.140184700
mov rdx, qword [rsp + 0xa0]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.14018bcb0
jmp 0x140188c96
lea rdx, [rsp + 0xc8]
lea r8, [rdi + 8]
mov rcx, rbx
call fcn.140193920
mov r13d, dword [rbx + 0x34]
test r13d, r13d
jne 0x140188f75
mov r14, qword [rsp + 0xa0]
cmp byte [r14 + 0x14], 0
jne 0x140188f75
lea rax, [rsp + 0x9c]
lea rsi, [r14 + 0x60]
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
lea rdi, [rbx + 0x34]
lea rbp, [rsp + 0xb8]
mov qword [rsp + 0x70], rax
jmp 0x14018908f
xor ebp, ebp
lea r13, str.DELETE_FROM__q._q_idx_WHERE_segid_
lea r14, [rbx + 0x58]
cmp dword [rsp + 0x50], ebp
jle 0x140189015
imul rax, rbp, 0xc
add rax, qword [r15 + 8]
cmp dword [rbx + 0x34], 0
mov r12d, dword [rax]
jne 0x140188fb9
lea eax, [r12 + 1]
mov rdx, r12
mov rcx, rbx
shl rax, 0x25
shl rdx, 0x25
lea r8, [rax - 1]
call fcn.140185320
cmp qword [rbx + 0x58], 0
jne 0x140188fe1
mov rax, qword [rbx]
mov rcx, r13
mov rdx, qword [rax + 8]
mov r8, qword [rax + 0x10]
call fcn.1401faf00
mov rdx, r14
mov rcx, rbx
mov r8, rax
call fcn.1401893f0
cmp dword [rbx + 0x34], 0
jne 0x14018900d
mov rcx, qword [rbx + 0x58]
mov r8d, r12d
mov edx, 1
call fcn.1401f6d80
mov rcx, qword [rbx + 0x58]
call fcn.1401fc730
mov rcx, qword [rbx + 0x58]
call fcn.1401fb9b0
mov dword [rbx + 0x34], eax
inc rbp
jmp 0x140188f82
mov r8d, dword [r15 + 4]
cmp r8d, dword [rsp + 0x50]
je 0x140189041
movsxd rdx, dword [rsp + 0x50]
sub r8d, dword [rsp + 0x50]
imul r8d, r8d, 0xc
mov rcx, qword [r15 + 8]
imul rdx, rdx, 0xc
movsxd r8, r8d
add rdx, rcx
call sub.msvcrt.dll_memmove
mov eax, dword [rsi + 0x10]
sub eax, dword [rsp + 0x50]
mov dword [rsi + 0x10], eax
mov ebx, dword [rsp + 0x50]
sub dword [r15 + 4], ebx
cmp dword [rdi + 8], 0
mov dword [r15], 0
jne 0x140189266
mov rdi, qword [rsp + 0x60]
dec eax
dec dword [rdi + 4]
mov dword [rsi + 0x10], eax
jmp 0x140189266
cmp dword [rbx + 0x34], 0
jne 0x140189252
mov rax, qword [rsi]
test rax, rax
jne 0x14018909a
inc r13d
add rsi, 0x78
cmp r13d, dword [r14 + 0x40]
jl 0x140189076
jmp 0x140189252
cmp qword [rsi + 0x10], 0
jne 0x1401890ab
mov qword [rax + 4], 0
jmp 0x140189088
mov edx, dword [rax]
mov ecx, dword [rsi + 0x34]
mov dword [rsp + 0x9c], 0
mov rax, rdx
mov dword [rsp + 0x58], ecx
mov rcx, rbx
shl rax, 0x25
mov qword [rsp + 0x68], rax
movsxd rax, dword [rsi + 0x30]
add rax, qword [rsp + 0x68]
mov rdx, rax
mov qword [rsp + 0x60], rax
call fcn.14018a4d0
mov r12, rax
test rax, rax
je 0x140189088
mov eax, dword [rsp + 0x58]
cmp eax, dword [r12 + 0xc]
jle 0x140189103
mov dword [rbx + 0x34], 0x10b
jmp 0x140189245
mov dword [rsp + 0xc0], 0
mov r8d, dword [r12 + 8]
cmp r8d, dword [rsp + 0xc4]
jbe 0x140189128
mov rdx, rbp
mov rcx, rdi
call fcn.1401c5900
mov r9, qword [rsp + 0x70]
mov r8d, 4
mov rdx, rbp
mov rcx, rdi
call fcn.1401c57c0
movsxd r8, dword [rsi + 0x60]
mov rdx, rbp
mov rcx, rdi
call fcn.1401c5880
mov r9, qword [rsi + 0x58]
mov r8d, dword [rsi + 0x60]
mov rdx, rbp
mov rcx, rdi
call fcn.1401c57c0
movsxd r9, dword [rsp + 0x58]
mov rdx, rbp
mov rcx, rdi
mov r8d, dword [r12 + 0xc]
add r9, qword [r12]
sub r8d, dword [rsp + 0x58]
call fcn.1401c57c0
cmp dword [rbx + 0x34], 0
jne 0x140189199
mov eax, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
xchg al, ah
mov word [rdx + 2], ax
mov r8d, 4
mov rdx, rbp
mov rcx, rdi
call fcn.1401c5880
mov eax, dword [rsi + 0x30]
cmp dword [rsi + 0xc], eax
jne 0x140189204
mov ecx, dword [rsi + 0x3c]
mov eax, dword [r12 + 0xc]
cmp ecx, eax
jge 0x140189204
mov edx, dword [r12 + 8]
cmp dword [rsi + 0x38], edx
jg 0x140189204
movsxd rdx, dword [rsp + 0xc0]
sub eax, ecx
mov rcx, rdi
cdqe
sub rdx, rax
lea r8, [rdx - 5]
mov rdx, rbp
call fcn.1401c5880
movsxd r9, dword [rsi + 0x38]
mov rdx, rbp
mov rcx, rdi
mov r8d, dword [r12 + 8]
mov rax, r9
add r9, qword [r12]
sub r8d, eax
call fcn.1401c57c0
mov rax, qword [rsi]
mov edx, dword [rsi + 0x30]
cmp dword [rbx + 0x34], 0
mov dword [rax + 4], edx
jne 0x140189228
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, rbx
inc rdx
call fcn.140185320
mov r9d, dword [rsp + 0xc0]
mov r8, qword [rsp + 0xb8]
mov rcx, rbx
mov rdx, qword [rsp + 0x60]
call fcn.140185500
mov rcx, r12
call fcn.1401f9f40
jmp 0x140189088
lea rcx, [rsp + 0xb8]
call fcn.1401c58c0
mov eax, dword [rsp + 0x50]
mov dword [r15], eax
mov rcx, qword [rsp + 0xa0]
call fcn.14018b020
lea rcx, [rsp + 0xa8]
call fcn.1401c58c0
cmp qword [rsp + 0x1a8], 0
je 0x14018929c
mov rdi, qword [rsp + 0x1a8]
mov eax, dword [rsp + 0x114]
sub dword [rdi], eax
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret