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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov rax, qword [rdx + 0x140]
mov rdi, rdx
mov rbx, rcx
mov qword [rcx + 0xb0], rax
movsxd r15, dword [rdx + 0x34]
and qword [rdx + 0x140], 0
mov rax, qword [rcx]
mov dword [rsp + 0x80], r15d
mov r12d, 1
mov qword [rsp + 0x88], rax
movsx eax, word [rdx + 0x128]
mov dword [rsp + 0x70], eax
mov eax, dword [rdx + 0x88]
mov dword [rsp + 0x78], eax
mov eax, dword [rdx + 0x38]
lea ebp, [r15 + rax]
test r15d, r15d
jne 0x18008673e
test ebp, ebp
jle 0x18008673e
add ebp, r12d
mov eax, dword [rcx + 0x90]
lea ecx, [rax + rax*2]
mov eax, dword [rdx + 0x3c]
lea rdx, [rsp + 0x78]
shl ecx, 3
sub eax, ecx
movsxd r14, ecx
mov rcx, rbx
add r14, qword [rbx + 0x88]
movsxd rsi, eax
and rsi, 0xfffffffffffffff8
call fcn.180085698
xor r8d, r8d
cmp byte [rdi + 0x20], r8b
je 0x18008677f
mov al, r12b
cmp byte [rdi + 0x21], r8b
jne 0x180086782
mov al, r8b
and dword [rbx + 0xc8], 0xffffffdf
movzx eax, al
and eax, r12d
shl eax, 5
or dword [rbx + 0xc8], eax
mov al, byte [rdi + 0x12b]
mov edx, dword [rbx + 0xc8]
test al, al
je 0x1800867de
mov ecx, 0xa
cmp ebp, ecx
cmovl ebp, ecx
movzx ecx, al
mov eax, 3
shl ecx, 2
xor ecx, edx
and ecx, 0xc
xor ecx, edx
mov dword [rbx + 0xc8], ecx
shr ecx, 2
and cx, ax
sub ax, cx
shl ax, 2
mov word [rbx + 0xc0], ax
and dword [rbx + 0xc8], 0xfffffffc
movsxd r12, ebp
mov rdi, r8
mov rax, r8
imul r12, r12, 0x38
cmp r12, rsi
jg 0x180086800
sub rsi, r12
lea rax, [rsi + r14]
jmp 0x180086803
mov rdi, r12
movsxd rcx, dword [rsp + 0x70]
mov qword [rbx + 0x68], rax
mov rax, r8
mov r13, rcx
imul r13, r13, 0x38
cmp r13, rsi
jg 0x180086824
sub rsi, r13
lea rax, [rsi + r14]
jmp 0x180086827
add rdi, r13
mov qword [rbx + 0x80], rax
movsxd rax, dword [rsp + 0x78]
mov rdx, r8
shl rax, 3
mov qword [rsp + 0x78], rax
cmp rax, rsi
jg 0x18008684d
sub rsi, rax
lea rdx, [rsi + r14]
jmp 0x180086850
add rdi, rax
shl r15, 3
mov qword [rbx + 0x70], rdx
mov rax, r8
cmp r15, rsi
jg 0x180086869
sub rsi, r15
lea rax, [rsi + r14]
jmp 0x18008686c
add rdi, r15
mov rsi, qword [rsp + 0x88]
mov qword [rbx + 0x78], rax
test rdi, rdi
je 0x180086912
mov rdx, rdi
mov rcx, rsi
call fcn.180068050
xor r8d, r8d
mov qword [rbx + 0x100], rax
mov r11, rax
cmp byte [rsi + 0x67], r8b
jne 0x18008690e
mov rax, qword [rbx + 0x68]
test rax, rax
jne 0x1800868b4
cmp r12, rdi
jg 0x1800868b4
sub rdi, r12
lea rax, [rdi + r11]
mov qword [rbx + 0x68], rax
mov rax, qword [rbx + 0x80]
test rax, rax
jne 0x1800868d0
cmp r13, rdi
jg 0x1800868d0
sub rdi, r13
lea rax, [rdi + r11]
mov rcx, qword [rbx + 0x70]
mov qword [rbx + 0x80], rax
test rcx, rcx
jne 0x1800868f1
mov rax, qword [rsp + 0x78]
cmp rax, rdi
jg 0x1800868f1
sub rdi, rax
lea rcx, [rdi + r11]
mov rax, qword [rbx + 0x78]
mov qword [rbx + 0x70], rcx
test rax, rax
jne 0x18008690a
cmp r15, rdi
jg 0x18008690a
sub rdi, r15
lea rax, [rdi + r11]
mov qword [rbx + 0x78], rax
mov ecx, dword [rsp + 0x70]
mov edi, 1
cmp byte [rsi + 0x67], r8b
je 0x18008692c
mov word [rbx + 0x20], r8w
mov qword [rbx + 0x24], 0
jmp 0x180086994
mov eax, dword [rsp + 0x80]
mov word [rbx + 0x20], cx
mov dword [rbx + 0x28], eax
mov rax, qword [rbx + 0x80]
test ecx, ecx
jle 0x18008695e
add rax, 0x18
sub ecx, edi
mov word [rax - 4], di
mov qword [rax], rsi
mov dword [rax + 8], r8d
add rax, 0x38
test ecx, ecx
jg 0x180086949
mov rax, qword [rbx + 0x68]
mov dword [rbx + 0x24], ebp
test ebp, ebp
jle 0x180086983
add rax, 0x18
sub ebp, edi
mov word [rax - 4], r8w
mov qword [rax], rsi
mov dword [rax + 8], r8d
add rax, 0x38
test ebp, ebp
jg 0x18008696d
mov rcx, qword [rbx + 0x78]
mov r8, r15
xor edx, edx
call fcn.1800e96b0
xor r8d, r8d
or dword [rbx + 0x30], 0xffffffff
mov byte [rbx + 0xc7], dil
mov dword [rbx + 0x34], r8d
mov qword [rbx + 0x38], r8
mov dword [rbx + 0x2c], edi
mov word [rbx + 0xc4], 0xff02
mov dword [rbx + 0x40], r8d
mov qword [rbx + 0x50], r8
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret