Function at 0x180188be0
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, 0xa0
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x2d8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x80]
movzx eax, word [rax + 0x18]
shl eax, 0x10
cmp eax, 0x40000
jge 0x180188c39
mov dword [rsp + 0x8c], 0x40000
jmp 0x180188c56
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x80]
movzx eax, word [rax + 0x18]
shl eax, 0x10
mov dword [rsp + 0x8c], eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0xb8]
movzx eax, word [rax + 0x68]
mov word [rsp + 0x28], ax
movzx eax, word [rsp + 0x28]
shl eax, 0x10
mov edx, eax
mov ecx, 0x3e80000
call fcn.180166bc0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x28f
jge 0x180188c9b
xor eax, eax
jmp 0x180188ff8
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x24]
mov dword [rsp + 0x48], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x24]
mov dword [rsp + 0x4c], eax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x24]
mov dword [rsp + 0x50], eax
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x24]
mov dword [rsp + 0x54], eax
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x24]
mov dword [rsp + 0x58], eax
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x24]
mov dword [rsp + 0x5c], eax
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x24]
mov dword [rsp + 0x60], eax
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x24]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0xc0], 0
jg 0x180188d67
mov dword [rsp + 0x34], 0x4b0000
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
jmp 0x180188d86
mov eax, dword [rsp + 0xc0]
shl eax, 0x10
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
call fcn.180166b60
mov dword [rsp + 0x38], eax
mov ecx, dword [rsp + 0x38]
call fcn.180178b20
mov dword [rsp + 0x90], eax
mov ecx, dword [rsp + 0x2c]
call fcn.180178b20
mov ecx, dword [rsp + 0x90]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x2e
jl 0x180188dc2
mov eax, dword [rsp + 0x60]
shl eax, 0x10
mov dword [rsp + 0x3c], eax
jmp 0x180188dd3
mov edx, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x38]
call fcn.180166b60
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x48]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x180188dfb
mov eax, dword [rsp + 0x4c]
shl eax, 0x10
mov edx, dword [rsp + 0x2c]
mov ecx, eax
call fcn.180166bc0
mov dword [rsp + 0x40], eax
jmp 0x180188fe2
mov eax, dword [rsp + 0x50]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x180188e90
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x54]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x48]
shl eax, 0x10
mov edx, dword [rsp + 0x2c]
mov ecx, eax
call fcn.180166bc0
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x68], 0
jne 0x180188e53
jmp 0x180188ea1
mov r8d, dword [rsp + 0x68]
mov edx, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x70]
call fcn.180166a50
mov dword [rsp + 0x94], eax
mov ecx, dword [rsp + 0x4c]
shl ecx, 0x10
mov edx, dword [rsp + 0x2c]
call fcn.180166bc0
mov ecx, dword [rsp + 0x94]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x180188fe2
mov eax, dword [rsp + 0x58]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x180188f25
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x5c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x50]
shl eax, 0x10
mov edx, dword [rsp + 0x2c]
mov ecx, eax
call fcn.180166bc0
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x74], 0
jne 0x180188ee8
jmp 0x180188f36
mov r8d, dword [rsp + 0x74]
mov edx, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x7c]
call fcn.180166a50
mov dword [rsp + 0x98], eax
mov ecx, dword [rsp + 0x54]
shl ecx, 0x10
mov edx, dword [rsp + 0x2c]
call fcn.180166bc0
mov ecx, dword [rsp + 0x98]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x180188fe2
mov eax, dword [rsp + 0x60]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x180188fcc
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x64]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x58]
shl eax, 0x10
mov edx, dword [rsp + 0x2c]
mov ecx, eax
call fcn.180166bc0
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x80], 0
jne 0x180188f89
jmp 0x180188fcc
mov r8d, dword [rsp + 0x80]
mov edx, dword [rsp + 0x84]
mov ecx, dword [rsp + 0x88]
call fcn.180166a50
mov dword [rsp + 0x9c], eax
mov ecx, dword [rsp + 0x5c]
shl ecx, 0x10
mov edx, dword [rsp + 0x2c]
call fcn.180166bc0
mov ecx, dword [rsp + 0x9c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x180188fe2
mov eax, dword [rsp + 0x64]
shl eax, 0x10
mov edx, dword [rsp + 0x2c]
mov ecx, eax
call fcn.180166bc0
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x40]
call fcn.180166bc0
add eax, 0x8000
shr eax, 0x10
cwde
add rsp, 0xa0
pop rdi
ret