Function at 0x140195300
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 0x14019535c
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 0x1401953f9
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.1401a0430
mov eax, dword [rdi + 8]
mov dword [rsp + 0x138], 0
inc eax
mov dword [rsp + 0xd0], eax
jmp 0x14019549e
mov rcx, rbx
mov rdx, rsi
mov dword [rsp + 0x50], r8d
call fcn.14018f730
mov r8d, dword [rsp + 0x50]
lea rcx, [rbx + 0x34]
mov r13d, eax
mov eax, dword [rsi + 0x14]
dec eax
cmp eax, ebp
jne 0x14019543d
mov rdx, r15
mov dword [rsp + 0x60], r8d
mov qword [rsp + 0x50], rcx
call fcn.14019c2d0
mov rsi, qword [r15]
mov r8d, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov rdx, rsi
call fcn.14019c440
cmp dword [rbx + 0x34], 0
jne 0x140195b1c
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.1401a0430
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 0x1401954c1
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.140197960
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x80], rax
cmp dword [rbx + 0x34], 0
jne 0x14019578f
mov rbp, qword [rsp + 0xa0]
cmp byte [rbp + 0x14], 0
jne 0x14019578f
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 0x140195593
test r13d, r13d
jle 0x1401955d5
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 0x1401955d5
cmp qword [rsp + 0x1a8], 0
je 0x1401955af
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x114], eax
jg 0x14019578f
mov rdx, qword [rsp + 0x80]
mov r8d, r13d
mov rcx, r12
mov qword [rsp + 0x88], r9
xor r14d, r14d
call fcn.1401d2170
mov r9, qword [rsp + 0x88]
movsxd rax, dword [rsp + 0x68]
imul rax, rax, 0x78
add rax, rbp
cmp dword [rax + 0xd0], 0
jne 0x140195602
cmp dword [rsp + 0x78], 0
jne 0x140195774
cmp byte [rax + 0xd4], 0
je 0x140195774
mov eax, r14d
or eax, dword [rbx + 0x34]
jne 0x140195623
lea rdx, [rsp + 0xc8]
mov r8d, r13d
mov rcx, rbx
mov r14d, 1
call fcn.14019fdc0
cmp dword [rbx + 0x34], 0
jne 0x1401956db
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 0x140195672
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.1401a0360
cmp byte [rsp + 0x111], 0
je 0x1401956a3
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.14019ff70
cmp word [rsp + 0x110], 0
mov r8, r13
lea rdx, [rsp + 0xd8]
jne 0x1401956c1
sub r8, qword [rsp + 0x108]
mov rcx, r12
call fcn.1401d2100
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 0x14019572e
test al, al
je 0x140195774
lea rdx, [rsp + 0xd8]
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x58], rdx
call fcn.1401d2100
cmp dword [r13 + 0xd0], 0
jle 0x140195774
mov rdx, qword [rsp + 0x58]
xor r8d, r8d
mov rcx, r12
call fcn.1401d2100
jmp 0x140195774
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.1401d2100
movzx eax, word [rsp + 0x58]
mov r8, r13
mov rcx, rbx
lea r9, [0x140196e20]
imul rax, rax, 0x78
lea rdx, [rbp + rax + 0x60]
call fcn.140190f80
mov rdx, qword [rsp + 0xa0]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.140198530
jmp 0x140195516
lea rdx, [rsp + 0xc8]
lea r8, [rdi + 8]
mov rcx, rbx
call fcn.1401a01a0
mov r13d, dword [rbx + 0x34]
test r13d, r13d
jne 0x1401957f5
mov r14, qword [rsp + 0xa0]
cmp byte [r14 + 0x14], 0
jne 0x1401957f5
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 0x14019590f
xor ebp, ebp
lea r13, str.DELETE_FROM__q._q_idx_WHERE_segid_
lea r14, [rbx + 0x58]
cmp dword [rsp + 0x50], ebp
jle 0x140195895
imul rax, rbp, 0xc
add rax, qword [r15 + 8]
cmp dword [rbx + 0x34], 0
mov r12d, dword [rax]
jne 0x140195839
lea eax, [r12 + 1]
mov rdx, r12
mov rcx, rbx
shl rax, 0x25
shl rdx, 0x25
lea r8, [rax - 1]
call fcn.140191ba0
cmp qword [rbx + 0x58], 0
jne 0x140195861
mov rax, qword [rbx]
mov rcx, r13
mov rdx, qword [rax + 8]
mov r8, qword [rax + 0x10]
call fcn.140207780
mov rdx, r14
mov rcx, rbx
mov r8, rax
call fcn.140195c70
cmp dword [rbx + 0x34], 0
jne 0x14019588d
mov rcx, qword [rbx + 0x58]
mov r8d, r12d
mov edx, 1
call fcn.140203600
mov rcx, qword [rbx + 0x58]
call fcn.140208fb0
mov rcx, qword [rbx + 0x58]
call fcn.140208230
mov dword [rbx + 0x34], eax
inc rbp
jmp 0x140195802
mov r8d, dword [r15 + 4]
cmp r8d, dword [rsp + 0x50]
je 0x1401958c1
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 0x140195ae6
mov rdi, qword [rsp + 0x60]
dec eax
dec dword [rdi + 4]
mov dword [rsi + 0x10], eax
jmp 0x140195ae6
cmp dword [rbx + 0x34], 0
jne 0x140195ad2
mov rax, qword [rsi]
test rax, rax
jne 0x14019591a
inc r13d
add rsi, 0x78
cmp r13d, dword [r14 + 0x40]
jl 0x1401958f6
jmp 0x140195ad2
cmp qword [rsi + 0x10], 0
jne 0x14019592b
mov qword [rax + 4], 0
jmp 0x140195908
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.140196d50
mov r12, rax
test rax, rax
je 0x140195908
mov eax, dword [rsp + 0x58]
cmp eax, dword [r12 + 0xc]
jle 0x140195983
mov dword [rbx + 0x34], 0x10b
jmp 0x140195ac5
mov dword [rsp + 0xc0], 0
mov r8d, dword [r12 + 8]
cmp r8d, dword [rsp + 0xc4]
jbe 0x1401959a8
mov rdx, rbp
mov rcx, rdi
call fcn.1401d2180
mov r9, qword [rsp + 0x70]
mov r8d, 4
mov rdx, rbp
mov rcx, rdi
call fcn.1401d2040
movsxd r8, dword [rsi + 0x60]
mov rdx, rbp
mov rcx, rdi
call fcn.1401d2100
mov r9, qword [rsi + 0x58]
mov r8d, dword [rsi + 0x60]
mov rdx, rbp
mov rcx, rdi
call fcn.1401d2040
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.1401d2040
cmp dword [rbx + 0x34], 0
jne 0x140195a19
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.1401d2100
mov eax, dword [rsi + 0x30]
cmp dword [rsi + 0xc], eax
jne 0x140195a84
mov ecx, dword [rsi + 0x3c]
mov eax, dword [r12 + 0xc]
cmp ecx, eax
jge 0x140195a84
mov edx, dword [r12 + 8]
cmp dword [rsi + 0x38], edx
jg 0x140195a84
movsxd rdx, dword [rsp + 0xc0]
sub eax, ecx
mov rcx, rdi
cdqe
sub rdx, rax
lea r8, [rdx - 5]
mov rdx, rbp
call fcn.1401d2100
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.1401d2040
mov rax, qword [rsi]
mov edx, dword [rsi + 0x30]
cmp dword [rbx + 0x34], 0
mov dword [rax + 4], edx
jne 0x140195aa8
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, rbx
inc rdx
call fcn.140191ba0
mov r9d, dword [rsp + 0xc0]
mov r8, qword [rsp + 0xb8]
mov rcx, rbx
mov rdx, qword [rsp + 0x60]
call fcn.140191d80
mov rcx, r12
call fcn.1402067c0
jmp 0x140195908
lea rcx, [rsp + 0xb8]
call fcn.1401d2140
mov eax, dword [rsp + 0x50]
mov dword [r15], eax
mov rcx, qword [rsp + 0xa0]
call fcn.1401978a0
lea rcx, [rsp + 0xa8]
call fcn.1401d2140
cmp qword [rsp + 0x1a8], 0
je 0x140195b1c
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