Function at 0x140046d00
Capabilities:
Check os version

Disassembly:
lea r12, [rsp - 0xa8]
cmp r12, qword [r14 + 0x10]
jbe 0x1400471e8
sub rsp, 0x128
mov qword [rsp + 0x120], rbp
lea rbp, [rsp + 0x120]
mov rcx, qword [rax]
cmp rcx, 1
je 0x1400471d6
cmp rcx, 2
je 0x140046d4f
mov qword [rsp + 0x130], rax
mov qword [rax], 1
xor ecx, ecx
jmp 0x140046d81
mov rbp, qword [rsp + 0x120]
add rsp, 0x128
ret
mov qword [rsp + 0x40], rcx
mov rdx, qword [rax + rcx*8 + 0x18]
mov rax, rdx
call fcn.140046d00
mov rcx, qword [rsp + 0x40]
inc rcx
mov rax, qword [rsp + 0x130]
cmp qword [rax + 8], rcx
ja 0x140046d5f
cmp qword [rax + 0x10], 0
je 0x140046dfb
cmp byte [0x14041a6a0], 0
jne 0x140046d9f
xor edx, edx
xor ecx, ecx
xor ebx, ebx
jmp 0x140046dd4
nop
call fcn.140067ec0
xorps xmm15, xmm15
mov r14, qword [0x14041a548]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [0x14041a6b0]
mov rcx, qword [0x14041a6b8]
mov rdx, qword [rsp]
mov rbx, rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x28], rdx
mov rsi, qword [rax + 8]
lea rsi, [rax + rsi*8]
lea rsi, [rsi + 0x18]
mov qword [rsp + 0x110], rsi
xor esi, esi
jmp 0x140046e4a
mov qword [rax], 2
mov rbp, qword [rsp + 0x120]
add rsp, 0x128
ret
mov qword [rsp + 0x38], rsi
mov rdx, rsi
shl rdx, 3
add rdx, qword [rsp + 0x110]
mov rax, qword [rdx]
call rax
mov rsi, qword [rsp + 0x38]
inc rsi
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x50]
cmp qword [rax + 0x10], rsi
ja 0x140046e12
cmp byte [0x14041a6a0], 0
je 0x140046ff3
nop
nop
call fcn.140067ec0
xorps xmm15, xmm15
mov r14, qword [0x14041a548]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x110]
mov rcx, qword [0x14041a6b0]
mov qword [rsp + 0x68], rcx
mov rdx, qword [0x14041a6b8]
mov qword [rsp + 0x60], rdx
mov rax, qword [rax]
mov rbx, qword [rsp]
mov qword [rsp + 0x20], rbx
call fcn.1400523a0
call fcn.140052be0
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x30], rbx
movups xmmword [rsp + 0x70], xmm15
movups xmmword [rsp + 0x78], xmm15
call fcn.140039260
lea rax, [0x14029328c]
mov ebx, 5
call fcn.140039b60
mov rax, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x30]
call fcn.140039b60
lea rax, [0x140292db0]
mov ebx, 2
call fcn.140039b60
nop
call fcn.1400392e0
mov rax, qword [0x14041a510]
mov rdi, qword [rsp + 0x28]
sub rdi, rax
lea rax, [rsp + 0x70]
mov ebx, 0x18
mov rcx, rbx
call fcn.14001ca80
mov rcx, rbx
mov rbx, rax
lea rax, [rsp + 0xe8]
call fcn.14004f740
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x58], rbx
call fcn.140039260
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x58]
call fcn.140039b60
lea rax, [0x14029314c]
mov ebx, 5
call fcn.140039b60
call fcn.1400392e0
mov rdi, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
sub rdi, rax
lea rax, [rsp + 0x70]
mov ebx, 0x18
mov rcx, rbx
call fcn.14001ca80
mov rcx, rbx
mov rbx, rax
lea rax, [rsp + 0xc8]
call fcn.14004f740
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x58], rbx
call fcn.140039260
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x58]
call fcn.140039b60
lea rax, [0x1402942ee]
mov ebx, 0xb
call fcn.140039b60
call fcn.1400392e0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
sub rax, rcx
mov ecx, 0x17
jmp 0x140047019
mov qword [rax], 2
mov rbp, qword [rsp + 0x120]
add rsp, 0x128
ret
lea rsi, [rbx + 0x30]
mov byte [rsp + rcx + 0x70], sil
dec rcx
mov rax, rdx
cmp rax, 0xa
jb 0x14004704b
mov rdx, rax
movabs rax, 0xcccccccccccccccd
mov rbx, rdx
mul rdx
shr rdx, 3
lea rsi, [rdx + rdx*4]
shl rsi, 1
sub rbx, rsi
cmp rcx, 0x18
jb 0x14004700a
jmp 0x1400471c9
cmp rcx, 0x18
jae 0x1400471bc
lea rdx, [rax + 0x30]
mov byte [rsp + rcx + 0x70], dl
lea rdx, [rcx - 0x18]
mov rsi, rdx
sar rdx, 0x3f
and rcx, rdx
lea rbx, [rsp + rcx + 0x70]
neg rsi
lea rax, [rsp + 0xa8]
mov rcx, rsi
nop
call fcn.14004f740
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x58], rbx
call fcn.140039260
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x58]
call fcn.140039b60
lea rax, [0x140293823]
mov ebx, 8
call fcn.140039b60
call fcn.1400392e0
mov rdx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
sub rdx, rsi
mov eax, 0x17
jmp 0x1400470e0
lea rsi, [rbx + 0x30]
mov byte [rsp + rcx + 0x70], sil
lea rax, [rcx - 1]
cmp rdx, 0xa
jb 0x140047112
mov rcx, rax
movabs rax, 0xcccccccccccccccd
mov rbx, rdx
mul rdx
shr rdx, 3
lea rsi, [rdx + rdx*4]
shl rsi, 1
sub rbx, rsi
cmp rcx, 0x18
jb 0x1400470d3
jmp 0x1400471af
cmp rax, 0x18
jae 0x1400471a5
add rdx, 0x30
mov byte [rsp + rax + 0x70], dl
lea rcx, [rax - 0x18]
mov rdx, rcx
sar rcx, 0x3f
and rax, rcx
lea rbx, [rsp + rax + 0x70]
neg rdx
lea rax, [rsp + 0x88]
mov rcx, rdx
call fcn.14004f740
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x58], rbx
call fcn.140039260
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x58]
call fcn.140039b60
lea rax, [0x140293567]
mov ebx, 7
call fcn.140039b60
nop
call fcn.1400392e0
call fcn.140039260
call fcn.1400394c0
call fcn.1400392e0
mov rax, qword [rsp + 0x130]
nop dword [rax]
jmp 0x140046ff3
mov ecx, 0x18
call fcn.140066500
mov rax, rcx
mov ecx, 0x18
call fcn.140066500
mov rax, rcx
mov ecx, 0x18
call fcn.140066500
mov rax, rcx
mov ecx, 0x18
call fcn.140066500
lea rax, [0x1402a041e]
mov ebx, 0x32
call fcn.140037920
nop
mov qword [rsp + 8], rax
call fcn.140063e80
mov rax, qword [rsp + 8]
jmp fcn.140046d00