Function at 0x18017f580
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 0x18017f5c1
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 0x18017f5df
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 0x18017f627
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
cmp dword [rax + 0x242c], ecx
jne 0x18017f627
jmp 0x18017fce3
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 0x18017f67d
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 0x18017f6c7
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 0x18017f6c5
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 0x18017f6c7
jmp 0x18017f673
cmp qword [rsp + 0x40], 0
je 0x18017f8e4
mov edx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
call fcn.180160af0
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 0x18017f73e
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x58], eax
ja 0x18017f73e
cmp dword [rsp + 0x58], 6
jb 0x18017f73e
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 0x18017f8e4
cmp dword [rsp + 0xd0], 1
jne 0x18017f8e4
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x20]
call fcn.1801609e0
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 0x18017f7a6
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 0x18017f85e
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 0x18017f7e2
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x98], eax
jmp 0x18017f7fd
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 0x18017f831
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x9c], eax
jmp 0x18017f84e
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 0x18017f79c
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.180160af0
test eax, eax
jge 0x18017f89b
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.180160af0
neg eax
mov dword [rsp + 0xa0], eax
jmp 0x18017f8b9
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.180160af0
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 0x18017f8e4
xor eax, eax
test eax, eax
jne 0x18017f8d6
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 0x18017f925
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 0x18017f943
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 0x18017f943
mov dword [rsp + 0x30], 0
jmp 0x18017f95d
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 0x18017f9b2
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.180160af0
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 0x18017f9aa
jmp 0x18017f953
xor eax, eax
test eax, eax
jne 0x18017f9b2
mov edx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0xd0]
call fcn.180160af0
cmp eax, 0x28
jge 0x18017f9de
mov dword [rsp + 0xa4], 1
jmp 0x18017f9e9
mov dword [rsp + 0xa4], 0
cmp dword [rsp + 0xa4], 0
je 0x18017f9fd
mov byte [rsp + 0xa8], 1
jmp 0x18017fa05
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 0x18017fce3
mov dword [rsp + 0x30], 0
jmp 0x18017fa3a
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 0x18017fba3
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.180160af0
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.180160af0
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.180160af0
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0x30
jg 0x18017fb9e
cmp dword [rsp + 0x78], 0xffffffd0
jl 0x18017fb9e
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x78], 0
jge 0x18017fb24
mov eax, dword [rsp + 0x7c]
neg eax
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0x20
jge 0x18017fb35
mov dword [rsp + 0x7c], 0
jmp 0x18017fb4e
cmp dword [rsp + 0x7c], 0x30
jge 0x18017fb46
mov dword [rsp + 0x7c], 0x20
jmp 0x18017fb4e
mov dword [rsp + 0x7c], 0x40
cmp dword [rsp + 0x78], 0
jge 0x18017fb5f
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 0x18017fa30
mov dword [rsp + 0x30], 0
jmp 0x18017fbb7
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 0x18017fce3
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 0x18017fbfd
jmp 0x18017fbad
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
and eax, 1
test eax, eax
jne 0x18017fc11
jmp 0x18017fbad
mov dword [rsp + 0x88], 0
jmp 0x18017fc2e
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 0x18017fcde
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 0x18017fc7a
jmp 0x18017fc1e
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x20]
and eax, 1
test eax, eax
jne 0x18017fc8e
jmp 0x18017fc1e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x14]
cmp dword [rax + 8], ecx
jg 0x18017fcd9
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0x14], ecx
jl 0x18017fcd9
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
and eax, 0xfffffffe
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x20], eax
jmp 0x18017fcde
jmp 0x18017fc1e
jmp 0x18017fbad
add rsp, 0xb0
pop rdi
ret