Function at 0x180184660
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 0x1801846a1
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 0x1801846bf
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 0x180184707
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
cmp dword [rax + 0x242c], ecx
jne 0x180184707
jmp 0x180184dc3
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 0x18018475d
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 0x1801847a7
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 0x1801847a5
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 0x1801847a7
jmp 0x180184753
cmp qword [rsp + 0x40], 0
je 0x1801849c4
mov edx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
call fcn.180165bd0
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 0x18018481e
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x58], eax
ja 0x18018481e
cmp dword [rsp + 0x58], 6
jb 0x18018481e
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 0x1801849c4
cmp dword [rsp + 0xd0], 1
jne 0x1801849c4
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x20]
call fcn.180165ac0
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 0x180184886
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 0x18018493e
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 0x1801848c2
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x98], eax
jmp 0x1801848dd
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 0x180184911
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x9c], eax
jmp 0x18018492e
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 0x18018487c
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.180165bd0
test eax, eax
jge 0x18018497b
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.180165bd0
neg eax
mov dword [rsp + 0xa0], eax
jmp 0x180184999
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.180165bd0
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 0x1801849c4
xor eax, eax
test eax, eax
jne 0x1801849b6
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 0x180184a05
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 0x180184a23
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 0x180184a23
mov dword [rsp + 0x30], 0
jmp 0x180184a3d
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 0x180184a92
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.180165bd0
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 0x180184a8a
jmp 0x180184a33
xor eax, eax
test eax, eax
jne 0x180184a92
mov edx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0xd0]
call fcn.180165bd0
cmp eax, 0x28
jge 0x180184abe
mov dword [rsp + 0xa4], 1
jmp 0x180184ac9
mov dword [rsp + 0xa4], 0
cmp dword [rsp + 0xa4], 0
je 0x180184add
mov byte [rsp + 0xa8], 1
jmp 0x180184ae5
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 0x180184dc3
mov dword [rsp + 0x30], 0
jmp 0x180184b1a
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 0x180184c83
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.180165bd0
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.180165bd0
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.180165bd0
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0x30
jg 0x180184c7e
cmp dword [rsp + 0x78], 0xffffffd0
jl 0x180184c7e
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x78], 0
jge 0x180184c04
mov eax, dword [rsp + 0x7c]
neg eax
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0x20
jge 0x180184c15
mov dword [rsp + 0x7c], 0
jmp 0x180184c2e
cmp dword [rsp + 0x7c], 0x30
jge 0x180184c26
mov dword [rsp + 0x7c], 0x20
jmp 0x180184c2e
mov dword [rsp + 0x7c], 0x40
cmp dword [rsp + 0x78], 0
jge 0x180184c3f
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 0x180184b10
mov dword [rsp + 0x30], 0
jmp 0x180184c97
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 0x180184dc3
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 0x180184cdd
jmp 0x180184c8d
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
and eax, 1
test eax, eax
jne 0x180184cf1
jmp 0x180184c8d
mov dword [rsp + 0x88], 0
jmp 0x180184d0e
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 0x180184dbe
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 0x180184d5a
jmp 0x180184cfe
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x20]
and eax, 1
test eax, eax
jne 0x180184d6e
jmp 0x180184cfe
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x14]
cmp dword [rax + 8], ecx
jg 0x180184db9
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0x14], ecx
jl 0x180184db9
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
and eax, 0xfffffffe
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x20], eax
jmp 0x180184dbe
jmp 0x180184cfe
jmp 0x180184c8d
add rsp, 0xb0
pop rdi
ret