Function at 0x1801bc060
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 0x1801bc0b9
mov dword [rsp + 0x8c], 0x40000
jmp 0x1801bc0d6
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.18019a040
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x28f
jge 0x1801bc11b
xor eax, eax
jmp 0x1801bc478
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 0x1801bc1e7
mov dword [rsp + 0x34], 0x4b0000
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
jmp 0x1801bc206
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.180199fe0
mov dword [rsp + 0x38], eax
mov ecx, dword [rsp + 0x38]
call fcn.1801abfa0
mov dword [rsp + 0x90], eax
mov ecx, dword [rsp + 0x2c]
call fcn.1801abfa0
mov ecx, dword [rsp + 0x90]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x2e
jl 0x1801bc242
mov eax, dword [rsp + 0x60]
shl eax, 0x10
mov dword [rsp + 0x3c], eax
jmp 0x1801bc253
mov edx, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x38]
call fcn.180199fe0
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x48]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x1801bc27b
mov eax, dword [rsp + 0x4c]
shl eax, 0x10
mov edx, dword [rsp + 0x2c]
mov ecx, eax
call fcn.18019a040
mov dword [rsp + 0x40], eax
jmp 0x1801bc462
mov eax, dword [rsp + 0x50]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x1801bc310
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.18019a040
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x68], 0
jne 0x1801bc2d3
jmp 0x1801bc321
mov r8d, dword [rsp + 0x68]
mov edx, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x70]
call fcn.180199ed0
mov dword [rsp + 0x94], eax
mov ecx, dword [rsp + 0x4c]
shl ecx, 0x10
mov edx, dword [rsp + 0x2c]
call fcn.18019a040
mov ecx, dword [rsp + 0x94]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x1801bc462
mov eax, dword [rsp + 0x58]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x1801bc3a5
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.18019a040
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x74], 0
jne 0x1801bc368
jmp 0x1801bc3b6
mov r8d, dword [rsp + 0x74]
mov edx, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x7c]
call fcn.180199ed0
mov dword [rsp + 0x98], eax
mov ecx, dword [rsp + 0x54]
shl ecx, 0x10
mov edx, dword [rsp + 0x2c]
call fcn.18019a040
mov ecx, dword [rsp + 0x98]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x1801bc462
mov eax, dword [rsp + 0x60]
shl eax, 0x10
cmp dword [rsp + 0x3c], eax
jge 0x1801bc44c
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.18019a040
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x80], 0
jne 0x1801bc409
jmp 0x1801bc44c
mov r8d, dword [rsp + 0x80]
mov edx, dword [rsp + 0x84]
mov ecx, dword [rsp + 0x88]
call fcn.180199ed0
mov dword [rsp + 0x9c], eax
mov ecx, dword [rsp + 0x5c]
shl ecx, 0x10
mov edx, dword [rsp + 0x2c]
call fcn.18019a040
mov ecx, dword [rsp + 0x9c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x1801bc462
mov eax, dword [rsp + 0x64]
shl eax, 0x10
mov edx, dword [rsp + 0x2c]
mov ecx, eax
call fcn.18019a040
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x40]
call fcn.18019a040
add eax, 0x8000
shr eax, 0x10
cwde
add rsp, 0xa0
pop rdi
ret