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

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp dword [rsp + 0x88], 0x10ffff
ja 0x140148b36
cmp dword [rsp + 0x88], 0xd800
jb 0x140148b7c
cmp dword [rsp + 0x88], 0xdbff
ja 0x140148b7c
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x140148b77
mov al, byte [rsp + 0x98]
mov byte [rsp + 0x20], al
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x90]
call fcn.14002a988
mov rcx, rax
call fcn.140006408
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14002a698
jmp 0x140148e20
mov dword [rsp + 0x2c], 1
cmp dword [rsp + 0x88], 0x80
jae 0x140148b9b
mov dword [rsp + 0x2c], 1
jmp 0x140148bde
cmp dword [rsp + 0x88], 0x800
jae 0x140148bb2
mov dword [rsp + 0x2c], 2
jmp 0x140148bde
cmp dword [rsp + 0x88], 0x10000
jae 0x140148bc9
mov dword [rsp + 0x2c], 3
jmp 0x140148bde
cmp dword [rsp + 0x88], 0x10ffff
ja 0x140148bde
mov dword [rsp + 0x2c], 4
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 1
je 0x140148c95
cmp dword [rsp + 0x38], 2
je 0x140148c67
cmp dword [rsp + 0x38], 3
je 0x140148c39
cmp dword [rsp + 0x38], 4
je 0x140148c0b
jmp 0x140148cbd
mov eax, dword [rsp + 0x88]
bts eax, 7
and eax, 0xbf
mov ecx, 1
imul rcx, rcx, 3
mov byte [rsp + rcx + 0x3c], al
mov eax, dword [rsp + 0x88]
shr eax, 6
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
bts eax, 7
and eax, 0xbf
mov ecx, 1
imul rcx, rcx, 2
mov byte [rsp + rcx + 0x3c], al
mov eax, dword [rsp + 0x88]
shr eax, 6
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
bts eax, 7
and eax, 0xbf
mov ecx, 1
imul rcx, rcx, 1
mov byte [rsp + rcx + 0x3c], al
mov eax, dword [rsp + 0x88]
shr eax, 6
mov dword [rsp + 0x88], eax
movsxd rax, dword [rsp + 0x2c]
lea rcx, [0x1401e1878]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x88]
or ecx, eax
mov eax, ecx
mov ecx, 1
imul rcx, rcx, 0
mov byte [rsp + rcx + 0x3c], al
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 1
je 0x140148dd6
cmp dword [rsp + 0x40], 2
je 0x140148d8c
cmp dword [rsp + 0x40], 3
je 0x140148d42
cmp dword [rsp + 0x40], 4
je 0x140148cf8
jmp 0x140148e20
mov rax, qword [rsp + 0x30]
mov al, byte [rax]
mov byte [rsp + 0x21], al
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov al, byte [rsp + 0x21]
mov byte [rsp + 0x22], al
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x90]
call fcn.14002a988
mov rcx, rax
call fcn.140006408
lea rdx, [rsp + 0x22]
mov rcx, rax
call fcn.14002a698
mov rax, qword [rsp + 0x30]
mov al, byte [rax]
mov byte [rsp + 0x23], al
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov al, byte [rsp + 0x23]
mov byte [rsp + 0x24], al
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x90]
call fcn.14002a988
mov rcx, rax
call fcn.140006408
lea rdx, [rsp + 0x24]
mov rcx, rax
call fcn.14002a698
mov rax, qword [rsp + 0x30]
mov al, byte [rax]
mov byte [rsp + 0x25], al
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov al, byte [rsp + 0x25]
mov byte [rsp + 0x26], al
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.14002a988
mov rcx, rax
call fcn.140006408
lea rdx, [rsp + 0x26]
mov rcx, rax
call fcn.14002a698
mov rax, qword [rsp + 0x30]
mov al, byte [rax]
mov byte [rsp + 0x27], al
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov al, byte [rsp + 0x27]
mov byte [rsp + 0x28], al
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.14002a988
mov rcx, rax
call fcn.140006408
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.14002a698
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x90]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
add rsp, 0x78
ret