Function at 0x140156da0
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 0x140156dde
cmp dword [rsp + 0x88], 0xd800
jb 0x140156e24
cmp dword [rsp + 0x88], 0xdbff
ja 0x140156e24
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x140156e1f
mov al, byte [rsp + 0x98]
mov byte [rsp + 0x20], al
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x90]
call fcn.14002d4ec
mov rcx, rax
call fcn.14000833c
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14002d098
jmp 0x1401570c8
mov dword [rsp + 0x2c], 1
cmp dword [rsp + 0x88], 0x80
jae 0x140156e43
mov dword [rsp + 0x2c], 1
jmp 0x140156e86
cmp dword [rsp + 0x88], 0x800
jae 0x140156e5a
mov dword [rsp + 0x2c], 2
jmp 0x140156e86
cmp dword [rsp + 0x88], 0x10000
jae 0x140156e71
mov dword [rsp + 0x2c], 3
jmp 0x140156e86
cmp dword [rsp + 0x88], 0x10ffff
ja 0x140156e86
mov dword [rsp + 0x2c], 4
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 1
je 0x140156f3d
cmp dword [rsp + 0x38], 2
je 0x140156f0f
cmp dword [rsp + 0x38], 3
je 0x140156ee1
cmp dword [rsp + 0x38], 4
je 0x140156eb3
jmp 0x140156f65
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, [0x14020dbb8]
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 0x14015707e
cmp dword [rsp + 0x40], 2
je 0x140157034
cmp dword [rsp + 0x40], 3
je 0x140156fea
cmp dword [rsp + 0x40], 4
je 0x140156fa0
jmp 0x1401570c8
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.14002d4ec
mov rcx, rax
call fcn.14000833c
lea rdx, [rsp + 0x22]
mov rcx, rax
call fcn.14002d098
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.14002d4ec
mov rcx, rax
call fcn.14000833c
lea rdx, [rsp + 0x24]
mov rcx, rax
call fcn.14002d098
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.14002d4ec
mov rcx, rax
call fcn.14000833c
lea rdx, [rsp + 0x26]
mov rcx, rax
call fcn.14002d098
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.14002d4ec
mov rcx, rax
call fcn.14000833c
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.14002d098
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x90]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
add rsp, 0x78
ret