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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
mov rax, qword [rsp + 0x80]
add rax, 4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax]
cmp eax, 0x7f
je 0x1401314c0
mov rax, qword [rsp + 0x80]
movzx eax, word [rax]
cmp eax, 0x84
je 0x1401314c0
mov rax, qword [rsp + 0x80]
movzx eax, word [rax]
cmp eax, 0x80
je 0x1401314c0
mov rax, qword [rsp + 0x80]
movzx eax, word [rax]
cmp eax, 0x85
jne 0x1401314ce
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x9b
ja case.0x140131506.96
movsxd rax, dword [rsp + 0x54]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x131db0]
add rax, rcx
jmp rax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x71
je case.0x140131506.121
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x30], rax
jmp 0x140131da3
mov r9d, dword [rsp + 0x98]
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x30]
call fcn.140131430
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x14013157e
mov eax, dword [rsp + 0x38]
jmp 0x140131da8
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x71
je 0x14013158e
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
jmp 0x140131da3
mov eax, 0xffffffff
jmp 0x140131da8
cmp dword [rsp + 0x20], 0
jl 0x1401315f0
cmp dword [rsp + 0x28], 0
jne 0x1401315f8
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x2c], eax
jge 0x1401315f8
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x50], 0x71
je 0x140131608
mov eax, dword [rsp + 0x20]
jmp 0x140131da8
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
jmp 0x140131da3
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x71
je case.0x140131506.117
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
lea rcx, [0x1402b58c0]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
jmp 0x140131da3
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
lea rcx, [0x1402b58c0]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x71
je 0x14013169f
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
jmp 0x140131da3
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x24], 0
je 0x14013172a
mov eax, 2
imul rax, rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
and eax, 0xfc00
cmp eax, 0xd800
jne 0x14013172a
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x140131da3
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
cmp eax, 0x10
je 0x140131771
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
cmp eax, 0xf
je 0x140131771
mov dword [rsp + 0x58], 2
jmp 0x140131779
mov dword [rsp + 0x58], 4
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
jmp 0x140131da3
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x30]
add rax, 6
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x24], 0
je 0x1401317f0
mov eax, 2
imul rax, rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
and eax, 0xfc00
cmp eax, 0xd800
jne 0x1401317f0
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x140131da3
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
cmp eax, 0x10
je 0x14013184b
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
cmp eax, 0xf
je 0x14013184b
mov dword [rsp + 0x5c], 0
jmp 0x140131853
mov dword [rsp + 0x5c], 2
mov eax, dword [rsp + 0x5c]
add eax, 3
cdqe
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
jmp 0x140131da3
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x140131da3
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x140131da3
cmp dword [rsp + 0x24], 0
je 0x1401318c8
mov eax, 0xffffffff
jmp 0x140131da8
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x140131da3
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
cmp eax, 0x10
je 0x140131913
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
cmp eax, 0xf
jne 0x140131921
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x50]
lea rcx, [0x1402b58c0]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
jmp 0x140131da3
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
cmp eax, 0x10
je 0x140131972
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
cmp eax, 0xf
jne 0x140131980
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x50]
lea rcx, [0x1402b58c0]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
jmp 0x140131da3
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0x6a
lea rdx, [0x1402b58c0]
movzx ecx, byte [rdx + rcx]
sub eax, ecx
cdqe
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
mov eax, 1
imul rax, rax, 0x6a
lea rcx, [0x1402b58c0]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
sub eax, 0x62
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 7
ja case.default.0x140131a31
movsxd rax, dword [rsp + 0x60]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x132020]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x140131a85
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x30]
add rax, 6
mov qword [rsp + 0x30], rax
jmp 0x140131a85
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
jmp 0x140131da3
mov eax, dword [rsp + 0x90]
and eax, 0x2000000
test eax, eax
jne 0x140131b64
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
mov r8d, eax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x88]
call fcn.1401073e0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x40], 0
jne 0x140131ae5
mov eax, 0xfffffffe
jmp 0x140131da8
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
cmp eax, 0x71
je 0x140131ae5
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
jbe 0x140131b3c
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x30], rax
jae 0x140131b3c
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x28], 1
jmp 0x140131b62
mov r9d, dword [rsp + 0x98]
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
call fcn.140131430
mov dword [rsp + 0x38], eax
jmp 0x140131b6c
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
sub eax, 0x62
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 7
ja case.default.0x140131bae
movsxd rax, dword [rsp + 0x64]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x132040]
add rax, rcx
jmp rax
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x140131c0e
mov dword [rsp + 0x3c], 1
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x140131c0e
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x30]
add rax, 6
mov qword [rsp + 0x30], rax
jmp 0x140131c0e
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
imul eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
jmp 0x140131da3
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
mov rcx, qword [rsp + 0x88]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
cmp eax, 0x71
je 0x140131c55
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
jbe 0x140131c9a
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x30], rax
jb 0x140131ca4
cmp dword [rsp + 0x98], 0xa
jle 0x140131cae
mov dword [rsp + 0x28], 1
jmp 0x140131ce0
mov eax, dword [rsp + 0x98]
inc eax
mov r9d, eax
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
call fcn.140131430
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
jmp 0x140131da3
movsxd rax, dword [rsp + 0x50]
lea rcx, [0x1402b58c0]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x24], 0
je 0x140131d44
mov eax, 2
imul rax, rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
and eax, 0xfc00
cmp eax, 0xd800
jne 0x140131d44
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x140131da3
movsxd rax, dword [rsp + 0x50]
lea rcx, [0x1402b58c0]
movzx eax, byte [rcx + rax]
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x30]
movzx ecx, word [rdx + rcx]
add eax, ecx
cdqe
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
jmp 0x140131da3
movsxd rax, dword [rsp + 0x50]
lea rcx, [0x1402b58c0]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
jmp 0x140131da3
mov eax, 0xfffffffd
jmp 0x140131da8
jmp 0x1401314ce
add rsp, 0x70
pop rdi
ret