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

Disassembly:
mov r11, rsp
push r13
sub rsp, 0x90
mov rax, qword [rcx + 8]
mov r13, rcx
mov rcx, qword [rcx + 0x10]
cmp rax, rcx
je 0x18009fb90
cmp byte [r13 + 0x5e], 0
je 0x18009fb90
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
xor esi, esi
cmp byte [r13 + 0x2b0], sil
je 0x18009fb39
sub rcx, rax
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x10], rdi
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
mov qword [r11 - 0x18], r12
mov dil, 1
mov rcx, rdx
mov qword [r11 - 0x20], r14
sar rcx, 2
mov r8d, esi
mov rax, rcx
mov dword [rsp + 0x24], esi
shr rax, 0x3f
mov ebx, esi
add rcx, rax
mov byte [rsp + 0x21], sil
xor al, al
mov qword [rsp + 0x58], rcx
mov byte [rsp + 0x20], al
xor dl, dl
mov byte [rsp + 0x30], al
mov r10, rcx
mov qword [rsp + 0x28], rcx
mov r9d, esi
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x50], rsi
mov qword [r11 - 0x28], r15
mov ebp, esi
movsxd r14, ebx
mov dword [rsp + 0x3c], ebx
mov qword [rsp + 0x60], r9
mov dword [rsp + 0x40], ebx
cmp r14, rcx
jb 0x18009f64f
test ebp, ebp
jns 0x18009fb0f
mov rax, qword [r13 + 8]
lea rcx, [r9 + r9*2]
lea r11, [rax + rcx*8]
mov qword [rsp + 0x48], r11
jmp 0x18009f679
mov rax, qword [r13 + 8]
lea rcx, [r9 + r9*2]
lea r11, [rax + rcx*8]
mov qword [rsp + 0x48], r11
test ebp, ebp
jne 0x18009f679
test dl, dl
jne 0x18009f679
xor al, al
mov dil, 1
mov byte [rsp + 0x20], al
mov byte [rsp + 0x30], al
mov dword [rsp + 0x34], edi
mov rcx, qword [r11]
xor dl, dl
mov dword [rsp + 0x38], edx
cmp rcx, qword [r11 + 8]
je 0x18009fafb
movsxd rsi, ebp
lea rax, [rsi + rsi*2]
lea r12, [rax*4]
movsx eax, byte [r13 + 0x268]
movzx r15d, byte [r12 + rcx]
mov ebx, r15d
cmp r15d, eax
je 0x18009f6d8
mov ecx, ebx
call fcn.1800cfd00
mov r11, qword [rsp + 0x48]
test eax, eax
mov r10, qword [rsp + 0x28]
mov eax, 0
mov r8d, dword [rsp + 0x24]
movzx edi, dil
cmove edi, eax
mov dword [rsp + 0x34], edi
mov r9, qword [r11]
movabs rax, 0x2aaaaaaaaaaaaaab
mov rcx, qword [r11 + 8]
sub rcx, r9
imul rcx
mov rdi, rdx
mov edx, 1
sar rdi, 1
mov rax, rdi
shr rax, 0x3f
add rdi, rax
lea eax, [rdi - 1]
cmp ebp, eax
jne 0x18009f723
mov ecx, dword [rsp + 0x38]
lea rax, [rdi + rdi*2]
cmp byte [r9 + rax*4 - 0xc], 0x5c
movzx ecx, cl
cmove ecx, edx
mov dword [rsp + 0x38], ecx
cmp r10, r14
jb 0x18009f734
jne 0x18009f72f
cmp r8d, ebp
jle 0x18009f734
xor r8b, r8b
jmp 0x18009f737
mov r8b, 2
cmp byte [rsp + 0x21], 0
je 0x18009f805
movzx eax, byte [r12 + r9 + 8]
and al, 0xfd
or al, r8b
mov byte [r12 + r9 + 8], al
movabs r12, 0x2aaaaaaaaaaaaaab
cmp r15b, 0x22
jne 0x18009f7b8
mov r9, qword [r11]
lea r10d, [rbp + 1]
mov rcx, qword [r11 + 8]
mov rax, r12
sub rcx, r9
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r10d, edx
jge 0x18009f7ae
lea rax, [rsi + 1]
lea rax, [rax + rax*2]
cmp byte [r9 + rax*4], r15b
lea rcx, [r9 + rax*4]
jne 0x18009f7ae
movzx eax, byte [rcx + 8]
mov ebp, r10d
and al, 0xfd
or al, r8b
mov byte [rcx + 8], al
jmp 0x18009fa24
mov byte [rsp + 0x21], 0
jmp 0x18009fa24
cmp r15b, 0x5c
jne 0x18009fa29
mov r9, qword [r11]
mov rax, r12
mov rcx, qword [r11 + 8]
inc ebp
sub rcx, r9
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp ebp, edx
jge 0x18009fa29
movsxd rax, ebp
lea rcx, [rax + rax*2]
movzx eax, byte [r9 + rcx*4 + 8]
and al, 0xfd
or al, r8b
mov byte [r9 + rcx*4 + 8], al
jmp 0x18009fa29
cmp byte [rsp + 0x34], 0
je 0x18009f824
mov ecx, dword [rsp + 0x30]
movsx eax, byte [r13 + 0x268]
cmp ebx, eax
movzx ecx, cl
cmove ecx, edx
mov dword [rsp + 0x30], ecx
cmp r15b, 0x22
jne 0x18009f84e
movzx eax, byte [r12 + r9 + 8]
and al, 0xfd
mov byte [rsp + 0x21], 1
or al, r8b
mov byte [r12 + r9 + 8], al
movabs r12, 0x2aaaaaaaaaaaaaab
jmp 0x18009fa29
lea rax, [r13 + 0x248]
mov r8, qword [rax + 0x10]
lea r10, [r12 + r9]
lea rcx, [r13 + 0x208]
test r8, r8
je 0x18009f906
lea rdx, [r8 + rsi]
cmp rdx, rdi
ja 0x18009f906
cmp qword [rax + 0x18], 0x10
lea rdx, [r8 + r8*2]
lea r9, [r10 + rdx*4]
jb 0x18009f894
mov rdx, qword [rax]
mov rax, rdx
add r8, rdx
jmp 0x18009f897
add r8, rax
mov rdx, r10
cmp rax, r8
je 0x18009f8bd
nop
cmp rdx, r9
je 0x18009f906
movzx ebx, byte [rdx]
movsx r11d, byte [rax]
cmp r11d, ebx
jne 0x18009f906
inc rax
add rdx, 0xc
cmp rax, r8
jne 0x18009f8a0
cmp rdx, r9
jne 0x18009f906
mov bl, 1
mov byte [rsp + 0x20], bl
mov rcx, qword [rsp + 0x28]
cmp rcx, r14
jb 0x18009f975
mov r8d, dword [rsp + 0x24]
mov rdx, rcx
mov dword [rsp + 0x24], r8d
mov eax, r8d
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], bl
jne 0x18009f902
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x24], eax
mov byte [rsp + 0x20], bl
cmp eax, ebp
jle 0x18009f975
xor cl, cl
jmp 0x18009f977
movzx ebx, byte [rsp + 0x20]
test bl, bl
jne 0x18009f8c8
mov rdx, qword [rcx + 0x10]
lea rax, [rdx + rsi]
cmp rax, rdi
ja 0x18009f8c8
cmp qword [rcx + 0x18], 0x10
lea rax, [rdx + rdx*2]
lea r8, [r10 + rax*4]
jb 0x18009f936
mov rax, qword [rcx]
mov rcx, rax
add rdx, rax
jmp 0x18009f939
add rdx, rcx
mov rax, r10
cmp rcx, rdx
je 0x18009f963
cmp rax, r8
je 0x18009f8c8
movsx r11d, byte [rcx]
movzx r9d, byte [rax]
cmp r11d, r9d
jne 0x18009f8c8
inc rcx
add rax, 0xc
cmp rcx, rdx
jne 0x18009f941
cmp rax, r8
jne 0x18009f8c8
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x24], ebp
mov cl, 2
movzx eax, byte [r10 + 8]
mov r11, qword [rsp + 0x48]
and al, 0xfd
or al, cl
mov byte [r10 + 8], al
movzx eax, bl
mov rcx, qword [r11]
xor al, byte [rcx + r12 + 8]
and al, 1
xor byte [rcx + r12 + 8], al
lea rax, [r13 + 0x228]
lea ecx, [rbp + 1]
cmp ecx, dword [rax + 0x10]
jl 0x18009fa1a
mov r9, qword [rax + 0x10]
lea r8, [r10 + 0xc]
imul rcx, r9, 0xfffffffffffffff4
add rcx, r8
cmp qword [rax + 0x18], 0x10
jb 0x18009f9cb
mov rdx, qword [rax]
mov rax, rdx
add rdx, r9
jmp 0x18009f9cf
lea rdx, [r9 + rax]
cmp rax, rdx
je 0x18009f9f2
cmp rcx, r8
je 0x18009fa1a
movzx r10d, byte [rcx]
movsx r9d, byte [rax]
cmp r9d, r10d
jne 0x18009fa1a
inc rax
add rcx, 0xc
cmp rax, rdx
jne 0x18009f9d4
xor esi, esi
movabs r12, 0x2aaaaaaaaaaaaaab
cmp rcx, r8
jne 0x18009fa13
mov r10, qword [rsp + 0x58]
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x24], esi
jmp 0x18009fa2b
mov r10, qword [rsp + 0x28]
jmp 0x18009fa2b
movabs r12, 0x2aaaaaaaaaaaaaab
mov r10, qword [rsp + 0x28]
xor esi, esi
movsxd rax, ebp
lea rcx, [rax + rax*2]
mov rax, qword [r11]
lea rdx, [rax + rcx*4]
movzx eax, byte [rsp + 0x30]
shl al, 2
xor al, byte [rdx + 8]
and al, 4
xor byte [rdx + 8], al
movzx eax, r15b
and al, 0xfe
cmp al, 0xfc
jne 0x18009fa5a
mov eax, 6
jmp 0x18009fa9c
movzx eax, r15b
and al, 0xfc
cmp al, 0xf8
jne 0x18009fa6b
mov eax, 5
jmp 0x18009fa9c
movzx eax, r15b
and al, 0xf8
cmp al, 0xf0
jne 0x18009fa7c
mov eax, 4
jmp 0x18009fa9c
movzx eax, r15b
and al, 0xf0
cmp al, 0xe0
jne 0x18009fa8d
mov eax, 3
jmp 0x18009fa9c
and r15b, 0xe0
mov eax, esi
cmp r15b, 0xc0
sete al
inc eax
mov r9, qword [rsp + 0x50]
lea r8d, [rax + rbp]
mov rcx, qword [r11 + 8]
mov rax, r12
sub rcx, qword [r11]
mov ebp, esi
mov ebx, dword [rsp + 0x3c]
mov edi, dword [rsp + 0x34]
imul rcx
mov rcx, qword [rsp + 0x58]
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
inc ebx
cmp r8d, edx
cmovl ebx, dword [rsp + 0x40]
cmovl ebp, r8d
inc r9
cmp r8d, edx
mov r8d, dword [rsp + 0x24]
mov edx, dword [rsp + 0x38]
cmovl r9, qword [rsp + 0x60]
mov qword [rsp + 0x50], r9
jmp 0x18009f61f
mov rcx, qword [rsp + 0x58]
inc ebx
inc r9
mov qword [rsp + 0x50], r9
jmp 0x18009f61d
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb0]
mov byte [r13 + 0x2b0], 0
mov edx, dword [r13 + 0x6c]
mov ecx, dword [r13 + 0x70]
cmp edx, ecx
jge 0x18009fb80
cmp qword [r13 + 0x270], 0
mov r8d, 0xa
mov ebx, 0x2710
cmove ebx, r8d
add ebx, edx
cmp ecx, ebx
cmovl ebx, ecx
mov rcx, r13
mov r8d, ebx
call fcn.18009fba0
mov dword [r13 + 0x6c], ebx
cmp dword [r13 + 0x70], ebx
jne 0x18009fb80
mov qword [r13 + 0x6c], 0x7fffffff
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb8]
add rsp, 0x90
pop r13
ret