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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
xor r15d, r15d
mov r14d, edx
mov qword [rcx + 0x30], rax
mov rbx, rcx
mov rax, qword [rcx + 0x20]
mov edi, r15d
mov qword [rcx + 0x28], rax
lea ebp, [r15 - 1]
mov qword [rcx + 0x78], r15
mov qword [rcx + 0x70], r15
mov dword [rcx + 0x68], r15d
mov dword [rcx + 0x3c], r15d
cmp r15w, word [rcx + 0xb8]
jge 0x140151266
mov esi, r15d
nop dword [rax]
mov rax, qword [rbx + 0xd0]
lea edx, [rbp + 1]
mov dword [rbx + 0x88], r15d
mov r9d, r14d
mov qword [rbx + 0x80], r15
mov rcx, rbx
movsx ebp, word [rsi + rax]
mov r8d, ebp
call fcn.140151630
test al, al
jne 0x1401512a5
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x140151251
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
lea eax, [r8 - 1]
test edx, eax
jne 0x1401511b0
cmp edx, dword [rbx + 0x60]
jl 0x1401511b0
cmp edx, dword [rbx + 0x64]
jg 0x1401511b0
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x1401511b0
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rcx, qword [rbx + 0x30]
mov r10, qword [r9 + 0x10]
cmp rcx, r10
je 0x1401511d6
test byte [r9 + 0x18], 8
je 0x1401511d6
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1401511e7
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge al
sub rcx, r10
sar rcx, 2
test ecx, ecx
js 0x14015129e
jle 0x14015122d
mov dword [r9 + 0x1c], ecx
test al, al
je 0x14015121d
mov rcx, qword [rbx + 0x70]
movzx eax, word [rcx + 0x18]
test al, 8
je 0x140151215
or ax, 0x10
jmp 0x140151219
or ax, 0x20
mov word [rcx + 0x18], ax
mov rcx, qword [rbx + 0x70]
mov rax, qword [rbx + 0x30]
mov qword [rcx + 0x28], rax
inc word [rbx + 0x68]
mov rcx, qword [rbx + 0x70]
mov rax, qword [rbx + 0x80]
mov byte [rbx + 0x6b], r15b
mov qword [rcx + 0x28], rax
cmp qword [rbx + 0x78], r15
jne 0x140151251
mov rax, qword [rbx + 0x80]
mov qword [rbx + 0x78], rax
movsx eax, word [rbx + 0xb8]
inc edi
add rsi, 2
cmp edi, eax
jl 0x140151140
movzx esi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp si, 1
jbe 0x14015130e
test rdx, rdx
je 0x14015130e
mov ebp, 0xffff
lea rdi, [rdx + 8]
cmp si, 1
jbe 0x1401512a9
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1401512ac
mov dword [rbx + 0x38], 0x63
mov al, 1
jmp 0x14015131d
mov r10, r15
mov rax, rdi
mov qword [rax], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x1401512ca
dec r11d
add r11d, eax
jmp 0x1401512e1
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.1401522e0
test al, al
jne 0x1401512a5
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.1401522e0
test al, al
jne 0x1401512a5
mov rdx, qword [rdi]
add si, bp
jne 0x140151286
jmp 0x140151312
mov qword [rbx + 0x78], r15
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret