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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
cmp dword [rsp + 0xd0], 0
jne 0x180185631
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 8]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x24], eax
jmp 0x18018564f
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0xd0]
imul rax, rax, 0x2430
mov rcx, qword [rsp + 0xc0]
lea rax, [rcx + rax + 0x3c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
cmp dword [rax + 0x2428], ecx
jne 0x180185697
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
cmp dword [rax + 0x242c], ecx
jne 0x180185697
jmp 0x180185d53
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x2428], ecx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
mov dword [rax + 0x242c], ecx
mov eax, 0x2430
imul rax, rax, 1
mov rcx, qword [rsp + 0xc0]
lea rax, [rcx + rax + 0x3c]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
jmp 0x1801856ed
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xd8]
cmp dword [rsp + 0x30], eax
jae 0x180185737
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0xfc]
and eax, 0x10
test eax, eax
je 0x180185735
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0xdc]
mov qword [rsp + 0x40], rax
jmp 0x180185737
jmp 0x1801856e3
cmp qword [rsp + 0x40], 0
je 0x180185954
mov edx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
call fcn.180166b60
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x80]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x30]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x4c], 0x28
cmp dword [rsp + 0x54], 0
je 0x1801857ae
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x58], eax
ja 0x1801857ae
cmp dword [rsp + 0x58], 6
jb 0x1801857ae
mov dword [rsp + 0x4c], 0x34
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
and eax, 0xffffffc0
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
je 0x180185954
cmp dword [rsp + 0xd0], 1
jne 0x180185954
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x20]
call fcn.180166a50
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x30], 0
jmp 0x180185816
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xd8]
cmp dword [rsp + 0x30], eax
jae 0x1801858ce
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0xf4]
cmp dword [rsp + 0x5c], eax
jle 0x180185852
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x98], eax
jmp 0x18018586d
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0xf4]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0xf8]
neg eax
cmp dword [rsp + 0x5c], eax
jle 0x1801858a1
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x9c], eax
jmp 0x1801858be
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0xf8]
neg eax
mov dword [rsp + 0x9c], eax
mov eax, dword [rsp + 0x9c]
mov dword [rsp + 0x5c], eax
jmp 0x18018580c
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x64]
sub ecx, eax
mov eax, ecx
mov edx, eax
mov ecx, dword [rsp + 0x5c]
call fcn.180166b60
test eax, eax
jge 0x18018590b
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x64]
sub ecx, eax
mov eax, ecx
mov edx, eax
mov ecx, dword [rsp + 0x5c]
call fcn.180166b60
neg eax
mov dword [rsp + 0xa0], eax
jmp 0x180185929
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x64]
sub ecx, eax
mov eax, ecx
mov edx, eax
mov ecx, dword [rsp + 0x5c]
call fcn.180166b60
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
and eax, 0xffffff80
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x180185954
xor eax, eax
test eax, eax
jne 0x180185946
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
mov dword [rax + 4], ecx
cmp dword [rsp + 0xd0], 0
jne 0x180185995
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x24]
mov dword [rax + 0x18], ecx
jmp 0x1801859b3
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x14], ecx
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x24]
mov dword [rax + 0x1c], ecx
xor eax, eax
test eax, eax
jne 0x1801859b3
mov dword [rsp + 0x30], 0
jmp 0x1801859cd
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x30], eax
jae 0x180185a22
mov eax, dword [rsp + 0x30]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0xc]
mov qword [rsp + 0x68], rax
mov edx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax]
call fcn.180166b60
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 4]
mov dword [rax + 8], ecx
xor eax, eax
test eax, eax
jne 0x180185a1a
jmp 0x1801859c3
xor eax, eax
test eax, eax
jne 0x180185a22
mov edx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0xd0]
call fcn.180166b60
cmp eax, 0x28
jge 0x180185a4e
mov dword [rsp + 0xa4], 1
jmp 0x180185a59
mov dword [rsp + 0xa4], 0
cmp dword [rsp + 0xa4], 0
je 0x180185a6d
mov byte [rsp + 0xa8], 1
jmp 0x180185a75
mov byte [rsp + 0xa8], 0
mov rax, qword [rsp + 0x28]
movzx ecx, byte [rsp + 0xa8]
mov byte [rax + 0xd4], cl
cmp dword [rsp + 0xd0], 1
jne 0x180185d53
mov dword [rsp + 0x30], 0
jmp 0x180185aaa
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xd8]
cmp dword [rsp + 0x30], eax
jae 0x180185c13
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0xdc]
mov qword [rsp + 0x70], rax
mov edx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax]
call fcn.180166b60
add eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 4]
mov dword [rax + 8], ecx
mov edx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0xc]
call fcn.180166b60
add eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0x10]
mov dword [rax + 0x14], ecx
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
and eax, 0xfffffffe
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0xc]
mov eax, dword [rax]
sub eax, ecx
mov edx, dword [rsp + 0x20]
mov ecx, eax
call fcn.180166b60
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0x30
jg 0x180185c0e
cmp dword [rsp + 0x78], 0xffffffd0
jl 0x180185c0e
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x78], 0
jge 0x180185b94
mov eax, dword [rsp + 0x7c]
neg eax
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0x20
jge 0x180185ba5
mov dword [rsp + 0x7c], 0
jmp 0x180185bbe
cmp dword [rsp + 0x7c], 0x30
jge 0x180185bb6
mov dword [rsp + 0x7c], 0x20
jmp 0x180185bbe
mov dword [rsp + 0x7c], 0x40
cmp dword [rsp + 0x78], 0
jge 0x180185bcf
mov eax, dword [rsp + 0x7c]
neg eax
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
add eax, 0x20
and eax, 0xffffffc0
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x7c]
mov eax, dword [rax + 8]
sub eax, ecx
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x14], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
or eax, 1
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x20], eax
jmp 0x180185aa0
mov dword [rsp + 0x30], 0
jmp 0x180185c27
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xd8]
cmp dword [rsp + 0x30], eax
jae 0x180185d53
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0xdc]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
and eax, 4
test eax, eax
jne 0x180185c6d
jmp 0x180185c1d
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
and eax, 1
test eax, eax
jne 0x180185c81
jmp 0x180185c1d
mov dword [rsp + 0x88], 0
jmp 0x180185c9e
mov eax, dword [rsp + 0x88]
inc eax
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xd8]
cmp dword [rsp + 0x88], eax
jae 0x180185d4e
mov eax, dword [rsp + 0x88]
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0xdc]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x20]
and eax, 4
test eax, eax
je 0x180185cea
jmp 0x180185c8e
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x20]
and eax, 1
test eax, eax
jne 0x180185cfe
jmp 0x180185c8e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x14]
cmp dword [rax + 8], ecx
jg 0x180185d49
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0x14], ecx
jl 0x180185d49
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
and eax, 0xfffffffe
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x20], eax
jmp 0x180185d4e
jmp 0x180185c8e
jmp 0x180185c1d
add rsp, 0xb0
pop rdi
ret