Function at 0x18000d180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0xd0]
imul eax, eax, 3
movsxd r8, eax
shl r8, 2
xor edx, edx
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x2a20]
call fcn.18004eaa0
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x22]
test eax, eax
jne 0x18000d1ef
mov dword [rsp + 0x9c], 1
jmp 0x18000d1fa
mov dword [rsp + 0x9c], 0
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x32]
test eax, eax
jne 0x18000d217
mov dword [rsp + 0xa0], 1
jmp 0x18000d222
mov dword [rsp + 0xa0], 0
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x9c], eax
jne 0x18000d26d
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x3a]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x3b]
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x3c]
mov dword [rsp + 0x90], eax
jmp 0x18000d2bb
mov rax, qword [rsp + 0xc0]
movzx ecx, byte [rax + 0x3a]
mov eax, 0x18
sub eax, ecx
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0xc0]
movzx ecx, byte [rax + 0x3b]
mov eax, 0x18
sub eax, ecx
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0xc0]
movzx ecx, byte [rax + 0x3c]
mov eax, 0x18
sub eax, ecx
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x20], 0
jmp 0x18000d2d0
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xd8]
cmp dword [rsp + 0x20], eax
jge 0x18000d491
mov dword [rsp + 0x78], 0
jmp 0x18000d2f6
mov eax, dword [rsp + 0x78]
add eax, 1
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 3
jge 0x18000d319
movsxd rax, dword [rsp + 0x78]
mov dword [rsp + rax*4 + 0x48], 0
movsxd rax, dword [rsp + 0x78]
mov dword [rsp + rax*4 + 0x68], 0
jmp 0x18000d2eb
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x2a20]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x24], 0
jmp 0x18000d342
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0xd0]
cmp dword [rsp + 0x24], eax
jge 0x18000d48c
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0x80]
add rax, 4
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x78], 0
jmp 0x18000d38d
mov eax, dword [rsp + 0x78]
add eax, 1
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 3
jge 0x18000d487
movsxd rax, dword [rsp + 0x78]
movsxd rcx, dword [rsp + 0x78]
mov eax, dword [rsp + rax*4 + 0x48]
mov dword [rsp + rcx*4 + 0x58], eax
movsxd rax, dword [rsp + 0x78]
movsxd rcx, dword [rsp + 0x78]
mov eax, dword [rsp + rax*4 + 0x68]
mov dword [rsp + rcx*4 + 0x28], eax
movsxd rcx, dword [rsp + 0x78]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov dword [rsp + rcx*4 + 0x48], eax
movsxd rax, dword [rsp + 0x78]
mov eax, dword [rsp + rax*4 + 0x88]
movzx ecx, al
mov eax, dword [rsp + 0x98]
shr eax, cl
mov ecx, eax
and ecx, 0xff
movsxd rax, dword [rsp + 0x78]
mov dword [rsp + rax*4 + 0x68], ecx
movsxd rax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0x68]
mov dword [rcx], eax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x78]
movsxd rcx, dword [rsp + 0x78]
mov eax, dword [rsp + rax*4 + 0x28]
add eax, dword [rsp + rcx*4 + 0x48]
movsxd rcx, dword [rsp + 0x78]
sub eax, dword [rsp + rcx*4 + 0x58]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x18000d443
mov dword [rsp + 0x38], 0
jmp 0x18000d455
cmp dword [rsp + 0x38], 0xff
jle 0x18000d455
mov dword [rsp + 0x38], 0xff
movsxd rcx, dword [rsp + 0x78]
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + rcx*4 + 0x68]
sub ecx, eax
mov rax, qword [rsp + 0xc8]
mov byte [rax], cl
mov rax, qword [rsp + 0xc8]
add rax, 1
mov qword [rsp + 0xc8], rax
jmp 0x18000d382
jmp 0x18000d337
jmp 0x18000d2c5
add rsp, 0xb8
ret