Function at 0x180182b70
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 0x180182bc9
mov dword [rsp + 0x8c], 0x40000
jmp 0x180182be6
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.180160b50
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x28f
jge 0x180182c2b
xor eax, eax
jmp 0x180182f88
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 0x180182cf7
mov dword [rsp + 0x34], 0x4b0000
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
jmp 0x180182d16
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.180160af0
mov dword [rsp + 0x38], eax
mov ecx, dword [rsp + 0x38]
call fcn.180172ab0
mov dword [rsp + 0x90], eax
mov ecx, dword [rsp + 0x2c]
call fcn.180172ab0
mov ecx, dword [rsp + 0x90]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x2e
jl 0x180182d52
mov eax, dword [rsp + 0x60]
shl eax, 0x10
mov dword [rsp + 0x3c], eax
jmp 0x180182d63
mov edx, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x38]
call fcn.180160af0
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x48]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x180182d8b
mov eax, dword [rsp + 0x4c]
shl eax, 0x10
mov edx, dword [rsp + 0x2c]
mov ecx, eax
call fcn.180160b50
mov dword [rsp + 0x40], eax
jmp 0x180182f72
mov eax, dword [rsp + 0x50]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x180182e20
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.180160b50
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x68], 0
jne 0x180182de3
jmp 0x180182e31
mov r8d, dword [rsp + 0x68]
mov edx, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x70]
call fcn.1801609e0
mov dword [rsp + 0x94], eax
mov ecx, dword [rsp + 0x4c]
shl ecx, 0x10
mov edx, dword [rsp + 0x2c]
call fcn.180160b50
mov ecx, dword [rsp + 0x94]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x180182f72
mov eax, dword [rsp + 0x58]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x180182eb5
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.180160b50
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x74], 0
jne 0x180182e78
jmp 0x180182ec6
mov r8d, dword [rsp + 0x74]
mov edx, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x7c]
call fcn.1801609e0
mov dword [rsp + 0x98], eax
mov ecx, dword [rsp + 0x54]
shl ecx, 0x10
mov edx, dword [rsp + 0x2c]
call fcn.180160b50
mov ecx, dword [rsp + 0x98]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x180182f72
mov eax, dword [rsp + 0x60]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x180182f5c
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.180160b50
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x80], 0
jne 0x180182f19
jmp 0x180182f5c
mov r8d, dword [rsp + 0x80]
mov edx, dword [rsp + 0x84]
mov ecx, dword [rsp + 0x88]
call fcn.1801609e0
mov dword [rsp + 0x9c], eax
mov ecx, dword [rsp + 0x5c]
shl ecx, 0x10
mov edx, dword [rsp + 0x2c]
call fcn.180160b50
mov ecx, dword [rsp + 0x9c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x180182f72
mov eax, dword [rsp + 0x64]
shl eax, 0x10
mov edx, dword [rsp + 0x2c]
mov ecx, eax
call fcn.180160b50
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x40]
call fcn.180160b50
add eax, 0x8000
shr eax, 0x10
cwde
add rsp, 0xa0
pop rdi
ret