Function at 0x140049660
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, [0x1400dd268]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400496a3
mov dword [rsp + 0x30], 0
jmp 0x1400496ab
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 0x1400496e1
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 0x14004970e
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x34], eax
jmp 0x140049716
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 0x140049758
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x88]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x38], eax
jmp 0x140049760
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 0x1400497a3
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x88]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x3c], eax
jmp 0x1400497ab
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 0x1400497ee
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x88]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x40], eax
jmp 0x1400497f6
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, [0x1400dd288]
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, [0x1400dd2b8]
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, [0x1400dd2a0]
mov rdx, qword [rsp + 0x80]
mov eax, dword [rcx + rax*4]
cmp dword [rdx], eax
jae 0x140049912
mov dword [rsp + 0x44], 1
jmp 0x14004991a
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 0x140049941
mov dword [rsp + 0x48], 1
jmp 0x140049949
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 0x140049976
mov dword [rsp + 0x4c], 1
jmp 0x14004997e
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, [0x1400dd2d0]
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 0x140049ae5
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 0x24]
test eax, eax
je 0x140049a40
mov dword [rsp + 0x54], 1
jmp 0x140049a48
mov dword [rsp + 0x54], 0
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rsp + rax + 0x24]
test eax, eax
je 0x140049a64
mov dword [rsp + 0x50], 1
jmp 0x140049a6c
mov dword [rsp + 0x50], 0
mov eax, 1
imul rax, rax, 2
movzx eax, byte [rsp + rax + 0x24]
test eax, eax
je 0x140049a88
mov dword [rsp + 0x58], 1
jmp 0x140049a90
mov dword [rsp + 0x58], 0
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rsp + rax + 0x24]
test eax, eax
je 0x140049aac
mov dword [rsp + 0x5c], 1
jmp 0x140049ab4
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.14004b160
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x80]
mov dword [rax], 0xfffd
mov eax, dword [rsp + 0x2c]
add rsp, 0x78
ret