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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
sar eax, 3
cdqe
lea rcx, [0x140151320]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14004a3d3
mov dword [rsp + 0x30], 0
jmp 0x14004a3db
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
cmp qword [rsp + 0x90], 0
jne 0x14004a411
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x88], rax
jae 0x14004a43e
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x34], eax
jmp 0x14004a446
mov dword [rsp + 0x34], 0
mov eax, 1
imul rax, rax, 0
movzx ecx, byte [rsp + 0x34]
mov byte [rsp + rax + 0x24], cl
mov rax, qword [rsp + 0x88]
inc rax
cmp rax, qword [rsp + 0x90]
jae 0x14004a488
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x88]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x38], eax
jmp 0x14004a490
mov dword [rsp + 0x38], 0
mov eax, 1
imul rax, rax, 1
movzx ecx, byte [rsp + 0x38]
mov byte [rsp + rax + 0x24], cl
mov rax, qword [rsp + 0x88]
add rax, 2
cmp rax, qword [rsp + 0x90]
jae 0x14004a4d3
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x88]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x3c], eax
jmp 0x14004a4db
mov dword [rsp + 0x3c], 0
mov eax, 1
imul rax, rax, 2
movzx ecx, byte [rsp + 0x3c]
mov byte [rsp + rax + 0x24], cl
mov rax, qword [rsp + 0x88]
add rax, 3
cmp rax, qword [rsp + 0x90]
jae 0x14004a51e
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x88]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x40], eax
jmp 0x14004a526
mov dword [rsp + 0x40], 0
mov eax, 1
imul rax, rax, 3
movzx ecx, byte [rsp + 0x40]
mov byte [rsp + rax + 0x24], cl
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 0x24]
movsxd rcx, dword [rsp + 0x28]
lea rdx, [0x140151358]
and eax, dword [rdx + rcx*4]
shl eax, 0x12
mov rcx, qword [rsp + 0x80]
mov dword [rcx], eax
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rsp + rax + 0x24]
and eax, 0x3f
shl eax, 0xc
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov dword [rcx], eax
mov eax, 1
imul rax, rax, 2
movzx eax, byte [rsp + rax + 0x24]
and eax, 0x3f
shl eax, 6
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov dword [rcx], eax
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rsp + rax + 0x24]
and eax, 0x3f
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
lea rcx, [0x140151308]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x60], rcx
movzx ecx, al
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
shr eax, cl
mov rcx, qword [rsp + 0x80]
mov dword [rcx], eax
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x28]
lea rcx, [0x1401512f0]
mov rdx, qword [rsp + 0x80]
mov eax, dword [rcx + rax*4]
cmp dword [rdx], eax
jae 0x14004a642
mov dword [rsp + 0x44], 1
jmp 0x14004a64a
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
shl eax, 6
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
shr eax, 0xb
cmp eax, 0x1b
jne 0x14004a671
mov dword [rsp + 0x48], 1
jmp 0x14004a679
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
shl eax, 7
mov ecx, dword [rsp + 0x20]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0xffff
jbe 0x14004a6a6
mov dword [rsp + 0x4c], 1
jmp 0x14004a6ae
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x4c]
shl eax, 8
mov ecx, dword [rsp + 0x20]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rsp + rax + 0x24]
and eax, 0xc0
sar eax, 2
mov ecx, dword [rsp + 0x20]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, 1
imul rax, rax, 2
movzx eax, byte [rsp + rax + 0x24]
and eax, 0xc0
sar eax, 4
mov ecx, dword [rsp + 0x20]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rsp + rax + 0x24]
sar eax, 6
mov ecx, dword [rsp + 0x20]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
xor eax, 0x2a
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x28]
lea rcx, [0x140151340]
mov eax, dword [rcx + rax*4]
movzx ecx, al
mov eax, dword [rsp + 0x20]
sar eax, cl
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14004a815
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 0x24]
test eax, eax
je 0x14004a770
mov dword [rsp + 0x54], 1
jmp 0x14004a778
mov dword [rsp + 0x54], 0
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rsp + rax + 0x24]
test eax, eax
je 0x14004a794
mov dword [rsp + 0x50], 1
jmp 0x14004a79c
mov dword [rsp + 0x50], 0
mov eax, 1
imul rax, rax, 2
movzx eax, byte [rsp + rax + 0x24]
test eax, eax
je 0x14004a7b8
mov dword [rsp + 0x58], 1
jmp 0x14004a7c0
mov dword [rsp + 0x58], 0
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rsp + rax + 0x24]
test eax, eax
je 0x14004a7dc
mov dword [rsp + 0x5c], 1
jmp 0x14004a7e4
mov dword [rsp + 0x5c], 0
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
add eax, dword [rsp + 0x58]
add eax, dword [rsp + 0x5c]
mov edx, eax
mov ecx, dword [rsp + 0x2c]
call fcn.140072c90
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x80]
mov dword [rax], 0xfffd
mov eax, dword [rsp + 0x2c]
add rsp, 0x78
ret