Function at 0x180187c50
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 0x180187ca9
mov dword [rsp + 0x8c], 0x40000
jmp 0x180187cc6
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.180165c30
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x28f
jge 0x180187d0b
xor eax, eax
jmp 0x180188068
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 0x180187dd7
mov dword [rsp + 0x34], 0x4b0000
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
jmp 0x180187df6
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.180165bd0
mov dword [rsp + 0x38], eax
mov ecx, dword [rsp + 0x38]
call fcn.180177b90
mov dword [rsp + 0x90], eax
mov ecx, dword [rsp + 0x2c]
call fcn.180177b90
mov ecx, dword [rsp + 0x90]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x2e
jl 0x180187e32
mov eax, dword [rsp + 0x60]
shl eax, 0x10
mov dword [rsp + 0x3c], eax
jmp 0x180187e43
mov edx, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x38]
call fcn.180165bd0
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x48]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x180187e6b
mov eax, dword [rsp + 0x4c]
shl eax, 0x10
mov edx, dword [rsp + 0x2c]
mov ecx, eax
call fcn.180165c30
mov dword [rsp + 0x40], eax
jmp 0x180188052
mov eax, dword [rsp + 0x50]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x180187f00
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.180165c30
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x68], 0
jne 0x180187ec3
jmp 0x180187f11
mov r8d, dword [rsp + 0x68]
mov edx, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x70]
call fcn.180165ac0
mov dword [rsp + 0x94], eax
mov ecx, dword [rsp + 0x4c]
shl ecx, 0x10
mov edx, dword [rsp + 0x2c]
call fcn.180165c30
mov ecx, dword [rsp + 0x94]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x180188052
mov eax, dword [rsp + 0x58]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x180187f95
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.180165c30
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x74], 0
jne 0x180187f58
jmp 0x180187fa6
mov r8d, dword [rsp + 0x74]
mov edx, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x7c]
call fcn.180165ac0
mov dword [rsp + 0x98], eax
mov ecx, dword [rsp + 0x54]
shl ecx, 0x10
mov edx, dword [rsp + 0x2c]
call fcn.180165c30
mov ecx, dword [rsp + 0x98]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x180188052
mov eax, dword [rsp + 0x60]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x18018803c
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.180165c30
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x80], 0
jne 0x180187ff9
jmp 0x18018803c
mov r8d, dword [rsp + 0x80]
mov edx, dword [rsp + 0x84]
mov ecx, dword [rsp + 0x88]
call fcn.180165ac0
mov dword [rsp + 0x9c], eax
mov ecx, dword [rsp + 0x5c]
shl ecx, 0x10
mov edx, dword [rsp + 0x2c]
call fcn.180165c30
mov ecx, dword [rsp + 0x9c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x180188052
mov eax, dword [rsp + 0x64]
shl eax, 0x10
mov edx, dword [rsp + 0x2c]
mov ecx, eax
call fcn.180165c30
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x40]
call fcn.180165c30
add eax, 0x8000
shr eax, 0x10
cwde
add rsp, 0xa0
pop rdi
ret