Function at 0x140002936
Capabilities:
Check os version

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
movdqa xmmword [rsp + 0x120], xmm15
movdqa xmmword [rsp + 0x110], xmm14
movdqa xmmword [rsp + 0x100], xmm13
movdqa xmmword [rsp + 0xf0], xmm12
movdqa xmmword [rsp + 0xe0], xmm11
movdqa xmmword [rsp + 0xd0], xmm10
movdqa xmmword [rsp + 0xc0], xmm9
movdqa xmmword [rsp + 0xb0], xmm8
movdqa xmmword [rsp + 0xa0], xmm7
movdqa xmmword [rsp + 0x90], xmm6
mov qword [rsp + 0x68], rcx
mov rax, qword gs:[0x60]
mov r15, qword [rax + 0x18]
test r15, r15
je 0x140003242
mov ebx, edx
add r15, 0x20
movabs r13, 0x8000000000000000
lea r12, [rsp + 0x30]
lea rax, [0x140012588]
mov qword [rsp + 0x50], rax
lea r14, [0x140012d84]
pxor xmm8, xmm8
packuswb xmm8, xmm8
movdqa xmm11, xmmword [0x140008030]
movdqa xmm12, xmmword [0x140008040]
movdqa xmm13, xmmword [0x140008050]
movdqa xmm14, xmmword [0x140008060]
movdqa xmm15, xmmword [0x140008070]
movdqa xmm7, xmmword [0x140008080]
movdqa xmm9, xmmword [0x140008090]
movdqa xmm10, xmmword [0x1400080a0]
movdqa xmm6, xmmword [0x1400080c0]
movabs rbp, 0x100000000
mov rcx, r15
mov dword [rsp + 0x64], edx
mov qword [rsp + 0x70], r15
mov rax, qword [rcx]
test rax, rax
je 0x140003242
cmp rax, r15
je 0x140003242
mov qword [rsp + 0x80], rcx
movzx ecx, word [rax + 0x48]
mov esi, ecx
shr esi, 1
mov rdx, qword [rax + 0x20]
mov qword [rsp + 0x78], rdx
mov rdi, qword [rax + 0x50]
mov eax, 1
cmp ecx, 2
jb 0x140002ab5
mov al, byte [0x140118038]
mov ecx, 1
mov rdx, rsi
call fcn.14000659d
test rax, rax
je 0x14000331e
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rax
and qword [rsp + 0x40], 0
lea rsi, [rdi + rsi*2]
cmp rdi, rsi
je 0x140002b41
lea rax, [rdi + 2]
movzx edx, word [rdi]
mov ecx, edx
and ecx, 0xf800
cmp cx, 0xd800
jne 0x140002b2d
cmp dx, 0xdbff
ja 0x1400032ae
cmp rax, rsi
je 0x1400032ae
movzx eax, word [rax]
lea ecx, [rax + 0x2000]
cmp cx, 0xfc00
jb 0x1400032ae
add rdi, 4
and edx, 0x3ff
and eax, 0x3ff
shl rdx, 0x1a
shl eax, 0x10
or rax, rdx
add rax, rbp
mov rdx, rax
jmp 0x140002b33
shl edx, 0x10
mov rdi, rax
shr rdx, 0x10
mov rcx, r12
call fcn.140004960
jmp 0x140002ac9
mov rsi, qword [rsp + 0x30]
cmp rsi, r13
je 0x1400032c7
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov r12, qword [rsp + 0x40]
test r12, r12
mov qword [rsp + 0x88], rsi
je 0x140002dd1
js 0x140003319
mov al, byte [0x140118038]
mov ecx, 1
mov rdx, r12
call fcn.14000659d
test rax, rax
je 0x140003311
mov rdi, rax
cmp r12, 0x10
jb 0x140002dd6
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + rbp]
movdqu xmm0, xmmword [rax + rbp]
pshufd xmm1, xmm0, 0xee
movq rax, xmm1
mov rdx, rax
or rdx, rcx
movabs r8, 0x8080808080808080
test rdx, r8
jne 0x140002dd8
mov r8, rcx
mov r10, rcx
mov rdx, rcx
shr rdx, 0x28
mov r9, rcx
shr r9, 0x20
pshufd xmm2, xmm0, 0x44
movdqa xmm1, xmm0
psrlq xmm1, 0x10
psrlq xmm2, 0x18
movsd xmm2, xmm1
shr ecx, 8
movd xmm3, ecx
movdqa xmm1, xmm0
punpcklqdq xmm1, xmm3
movapd xmm3, xmmword [section..rdata]
andpd xmm2, xmm3
pand xmm1, xmm3
packuswb xmm1, xmm2
movd xmm2, r9d
pshufd xmm2, xmm2, 0x50
movdqa xmm3, xmmword [0x140008010]
pandn xmm3, xmm2
movd xmm2, edx
psllq xmm2, 0x28
movdqa xmm4, xmmword [0x140008020]
pandn xmm4, xmm2
mov rcx, rax
shr rcx, 0x28
mov rdx, rax
shr rdx, 0x20
mov r9d, eax
shr r9d, 0x18
mov r11d, eax
shr r11d, 0x10
mov esi, eax
shr esi, 8
shr r8, 0x38
shr r10, 0x30
packuswb xmm1, xmmword [0x140008100]
packuswb xmm1, xmm8
por xmm4, xmm3
por xmm4, xmm1
pand xmm4, xmm11
movd xmm1, r10d
psllq xmm1, 0x30
movdqa xmm2, xmm11
pandn xmm2, xmm1
por xmm2, xmm4
pand xmm2, xmm12
movd xmm1, r8d
psllq xmm1, 0x38
movdqa xmm3, xmm12
pandn xmm3, xmm1
por xmm3, xmm2
pand xmm3, xmm13
movd xmm1, eax
pshufd xmm1, xmm1, 0x44
movdqa xmm2, xmm13
pandn xmm2, xmm1
por xmm2, xmm3
pand xmm2, xmm14
movd xmm1, esi
pslldq xmm1, 9
movdqa xmm3, xmm14
pandn xmm3, xmm1
por xmm3, xmm2
pand xmm3, xmm15
movd xmm1, r11d
pslldq xmm1, 0xa
movdqa xmm2, xmm15
pandn xmm2, xmm1
por xmm2, xmm3
pand xmm2, xmm7
movd xmm1, r9d
pslldq xmm1, 0xb
movdqa xmm3, xmm7
pandn xmm3, xmm1
por xmm3, xmm2
pand xmm3, xmm9
movd xmm1, edx
pshufd xmm1, xmm1, 0
movdqa xmm2, xmm9
pandn xmm2, xmm1
por xmm2, xmm3
movd xmm1, ecx
pslldq xmm1, 0xd
movdqa xmm3, xmm10
pandn xmm3, xmm1
shr rax, 0x30
pand xmm2, xmm10
por xmm3, xmm2
pand xmm3, xmmword [0x1400080b0]
movd xmm1, eax
pslldq xmm1, 0xe
por xmm1, xmm3
pand xmm1, xmm6
movdqa xmm2, xmm6
pandn xmm2, xmm0
por xmm2, xmm1
movdqa xmm0, xmm2
paddb xmm0, xmmword [0x1400080d0]
movdqa xmm1, xmm0
pminub xmm1, xmmword [0x1400080e0]
pcmpeqb xmm1, xmm0
pand xmm1, xmmword [0x1400080f0]
por xmm1, xmm2
movdqu xmmword [rdi + rbp], xmm1
lea rax, [rbp + 0x10]
add rbp, 0x20
cmp rbp, r12
mov rbp, rax
jbe 0x140002ba0
mov rbp, rax
jmp 0x140002dd8
mov edi, 1
xor ebp, ebp
mov rax, r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbp
sub rax, rbp
mov qword [rsp + 0x48], rax
jne 0x140002dfc
mov rsi, r12
jmp 0x140003167
mov rax, qword [rsp + 0x58]
add rbp, rax
add r12, rax
xor esi, esi
mov r13, rbp
movzx edx, byte [r13]
test dl, dl
js 0x140002e1b
lea rbx, [r13 + 1]
jmp 0x140002e82
mov eax, edx
and eax, 0x1f
movzx r8d, byte [r13 + 1]
and r8d, 0x3f
cmp dl, 0xdf
jbe 0x140002e69
movzx ecx, byte [r13 + 2]
shl r8d, 6
and ecx, 0x3f
or ecx, r8d
cmp dl, 0xf0
jb 0x140002e77
movzx edx, byte [r13 + 3]
and eax, 7
shl eax, 0x12
shl ecx, 6
and edx, 0x3f
or edx, ecx
or edx, eax
cmp edx, 0x110000
je 0x140003145
lea rbx, [r13 + 4]
jmp 0x140002e82
lea rbx, [r13 + 2]
shl eax, 6
or eax, r8d
mov edx, eax
jmp 0x140002e82
lea rbx, [r13 + 3]
shl eax, 0xc
or ecx, eax
mov edx, ecx
cmp edx, 0x3a3
je 0x140002eb4
cmp edx, 0x110000
je 0x140003145
cmp edx, 0x80
jae 0x140002ecc
lea eax, [rdx - 0x41]
xor ecx, ecx
cmp al, 0x1a
setb cl
shl ecx, 5
or ecx, edx
mov edx, ecx
jmp 0x140003005
test rsi, rsi
je 0x140002f0e
cmp rsi, qword [rsp + 0x48]
jae 0x140002f08
cmp byte [rbp + rsi], 0xbf
jg 0x140002f0e
jmp 0x1400032df
mov eax, 0x57f
xor ecx, ecx
mov r8d, 0x57f
shr rax, 1
add rax, rcx
mov r9d, dword [r14 + rax*8]
cmp r9d, edx
je 0x140002fd6
lea r10, [rax + 1]
cmp r9d, edx
cmova r8, rax
cmovb rcx, r10
mov rax, r8
sub rax, rcx
ja 0x140002ed9
jmp 0x140003005
jne 0x1400032df
lea r15, [rsi + rbp]
xor eax, eax
cmp r15, rbp
je 0x1400030da
movzx edi, byte [r15 - 1]
test dil, dil
js 0x140002f2c
dec r15
jmp 0x140002f85
movzx ecx, byte [r15 - 2]
cmp cl, 0xc0
jge 0x140002f59
movzx edx, byte [r15 - 3]
cmp dl, 0xbf
jg 0x140002f62
movzx r8d, byte [r15 - 4]
add r15, 0xfffffffffffffffc
and r8d, 7
shl r8d, 6
and edx, 0x3f
or edx, r8d
jmp 0x140002f69
add r15, 0xfffffffffffffffe
and ecx, 0x1f
jmp 0x140002f71
add r15, 0xfffffffffffffffd
and edx, 0xf
shl edx, 6
and ecx, 0x3f
or ecx, edx
shl ecx, 6
and edi, 0x3f
or edi, ecx
cmp edi, 0x110000
je 0x1400030da
test al, al
jne 0x140002f9d
mov ecx, edi
call fcn.140006270
test al, al
je 0x140002f9d
mov edi, 0x110000
xor eax, eax
jmp 0x140002f9f
mov al, 1
cmp edi, 0x110000
je 0x140002f14
mov ecx, edi
call fcn.1400063a0
test al, al
je 0x1400030da
mov rdi, rsi
add rdi, 2
je 0x14000301a
cmp rdi, qword [rsp + 0x48]
jae 0x140003014
cmp byte [rbp + rdi], 0xbf
jg 0x14000301a
jmp 0x1400032fe
mov edx, dword [r14 + rax*8 + 4]
mov eax, edx
xor eax, 0xd800
add eax, 0xffef0000
cmp eax, 0xffef0800
mov eax, 0x69
cmovb edx, eax
jae 0x140003005
lea rcx, [rsp + 0x30]
call fcn.140004960
mov edx, 0x307
lea rcx, [rsp + 0x30]
call fcn.140004960
jmp 0x140003103
jne 0x1400032fe
add rdi, rbp
xor eax, eax
cmp rdi, r12
je 0x140003117
movzx r15d, byte [rdi]
test r15b, r15b
js 0x140003036
inc rdi
jmp 0x1400030a5
mov ecx, r15d
and ecx, 0x1f
movzx r8d, byte [rdi + 1]
and r8d, 0x3f
cmp r15b, 0xdf
jbe 0x14000308a
movzx edx, byte [rdi + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp r15b, 0xf0
jb 0x140003099
movzx r15d, byte [rdi + 3]
and ecx, 7
shl ecx, 0x12
shl edx, 6
and r15d, 0x3f
or r15d, edx
or r15d, ecx
cmp r15d, 0x110000
je 0x140003117
add rdi, 4
jmp 0x1400030a5
add rdi, 2
shl ecx, 6
or ecx, r8d
mov r15d, ecx
jmp 0x1400030a5
add rdi, 3
shl ecx, 0xc
or edx, ecx
mov r15d, edx
test al, al
jne 0x1400030bf
mov ecx, r15d
call fcn.140006270
test al, al
je 0x1400030bf
mov r15d, 0x110000
xor eax, eax
jmp 0x1400030c1
mov al, 1
cmp r15d, 0x110000
je 0x14000301f
mov ecx, r15d
call fcn.1400063a0
test al, al
je 0x140003117
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rax, rdx
mov di, 0x83cf
cmp rax, 2
jb 0x14000312e
mov rax, qword [rsp + 0x38]
mov word [rax + rdx], di
add rdx, 2
mov qword [rsp + 0x40], rdx
sub rsi, r13
add rsi, rbx
mov r13, rbx
cmp rbx, r12
jne 0x140002e0c
jmp 0x140003145
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rax, rdx
mov di, 0x82cf
cmp rax, 1
ja 0x1400030f1
mov r8d, 2
lea rcx, [rsp + 0x30]
call fcn.140004790
mov rdx, qword [rsp + 0x40]
jmp 0x1400030f1
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x64]
mov r15, qword [rsp + 0x70]
movabs r13, 0x8000000000000000
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x58]
call fcn.140001453
mov rcx, rdi
mov rdx, r12
call fcn.140003370
cmp eax, ebx
movabs rbp, 0x100000000
je 0x1400031b6
mov r12, qword [rsp + 0x80]
mov r12, qword [r12]
mov rcx, rsi
mov rdx, rdi
call fcn.140001453
mov rcx, r12
lea r12, [rsp + 0x30]
jmp 0x140002a5d
mov rcx, rsi
mov rdx, rdi
call fcn.140001453
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x140003242
mov rcx, qword [rsp + 0x68]
mov edx, ebx
movaps xmm6, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
movaps xmm8, xmmword [rsp + 0xb0]
movaps xmm9, xmmword [rsp + 0xc0]
movaps xmm10, xmmword [rsp + 0xd0]
movaps xmm11, xmmword [rsp + 0xe0]
movaps xmm12, xmmword [rsp + 0xf0]
movaps xmm13, xmmword [rsp + 0x100]
movaps xmm14, xmmword [rsp + 0x110]
movaps xmm15, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140001502
movaps xmm6, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
movaps xmm8, xmmword [rsp + 0xb0]
movaps xmm9, xmmword [rsp + 0xc0]
movaps xmm10, xmmword [rsp + 0xd0]
movaps xmm11, xmmword [rsp + 0xe0]
movaps xmm12, xmmword [rsp + 0xf0]
movaps xmm13, xmmword [rsp + 0x100]
movaps xmm14, xmmword [rsp + 0x110]
movaps xmm15, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x1400032c7
mov rcx, qword [rsp + 0x38]
mov edx, 1
call fcn.1400066fd
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r8, [0x1400081e8]
lea rdx, [rsp + 0x30]
call fcn.140005ee0
xor edi, edi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, rbp
mov rdx, qword [rsp + 0x48]
mov r8, rdi
mov r9, rsi
call fcn.1400060a0
mov rsi, qword [rsp + 0x48]
lea rax, [0x1400125a0]
mov qword [rsp + 0x50], rax
jmp 0x1400032e1
mov rcx, r12
call fcn.140004740
call fcn.140004770
mov rcx, rsi
call fcn.140004740
int3