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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0xc]
test eax, eax
jne 0x18004cc21
mov eax, dword [rsp + 0x78]
add eax, 2
mov rcx, qword [rsp + 0x60]
cmp eax, dword [rcx + 0x14]
jle 0x18004ccb1
cmp qword [rsp + 0x80], 0
je 0x18004cc53
movsxd rax, dword [rsp + 0x78]
mov r8, rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
call fcn.1800193b0
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0xc]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0xc]
inc al
mov rcx, qword [rsp + 0x60]
mov byte [rcx + 0xc], al
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
mov qword [rcx + rax*8 + 0x28], rdx
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
movzx edx, word [rsp + 0x68]
mov word [rcx + rax*2 + 0x1c], dx
jmp 0x18004ceab
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x70]
call fcn.180018ea0
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x18004ccd3
mov eax, dword [rsp + 0x3c]
jmp 0x18004cead
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x28]
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call fcn.18004b870
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x18004cd08
mov eax, dword [rsp + 0x3c]
jmp 0x18004cead
mov eax, dword [rsp + 0x78]
add eax, 2
movzx eax, ax
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x14]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x14], eax
mov eax, dword [rsp + 0x78]
sub eax, 4
cdqe
mov rcx, qword [rsp + 0x70]
add rcx, 4
mov edx, dword [rsp + 0x28]
add edx, 4
movsxd rdx, edx
mov r8, qword [rsp + 0x30]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x48], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x48]
mov rcx, rax
call sub.msvcrt.dll_memcpy
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov edx, dword [rsp + 0x88]
mov rcx, rax
call fcn.1800193b0
mov eax, dword [rsp + 0x68]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 0x60]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x18]
sub eax, dword [rsp + 0x68]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x20]
add rcx, 2
mov r8, rax
mov rdx, qword [rsp + 0x20]
call sub.msvcrt.dll_memmove
mov eax, dword [rsp + 0x28]
sar eax, 8
mov rcx, qword [rsp + 0x20]
mov byte [rcx], al
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x28]
mov byte [rax + 1], cl
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x18]
inc ax
mov rcx, qword [rsp + 0x60]
mov word [rcx + 0x18], ax
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 9]
add eax, 4
cdqe
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
inc al
mov rcx, qword [rsp + 0x60]
movzx ecx, byte [rcx + 9]
add ecx, 4
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 9]
add eax, 4
cdqe
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
test eax, eax
jne 0x18004ce6c
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 9]
add eax, 3
cdqe
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
inc al
mov rcx, qword [rsp + 0x60]
movzx ecx, byte [rcx + 9]
add ecx, 3
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x48]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x18004ceab
mov dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
call fcn.1800281e0
cmp dword [rsp + 0x40], 0
je 0x18004ceab
mov eax, dword [rsp + 0x40]
jmp 0x18004cead
xor eax, eax
add rsp, 0x58
ret