Function at 0x1000069e0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x270
mov rax, qword [0x10001b110]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rdx
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetVersion]
xor r13d, r13d
bt eax, 0x1f
lea r12d, [r13 + 1]
jb 0x100006a5d
cmp al, 6
jb 0x100006a5d
lea rcx, [0x1000021e0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp rax, r13
je 0x100006a5d
lea rdx, [0x100002200]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, r13
je 0x100006a5d
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
xor ecx, ecx
call rax
mov rcx, qword [sym.imp.msvcrt.dll__iob]
xor r9d, r9d
xor edx, edx
lea ebx, [r9 + 4]
add rcx, 0x30
mov r8d, ebx
call qword [sym.imp.msvcrt.dll_setvbuf]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
xor r9d, r9d
mov r8d, ebx
xor edx, edx
add rcx, 0x60
call qword [sym.imp.msvcrt.dll_setvbuf]
mov ecx, 0xc48
mov dword [rsp + 0x230], r13d
mov byte [rsp + 0x30], r13b
mov dword [rsp + 0x250], r13d
mov qword [rsp + 0x258], r13
mov qword [rsp + 0x238], r13
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
cmp rax, r13
jne 0x100006af2
lea rdx, [0x100002218]
lea rcx, [rsp + 0x30]
call fcn.10000afac
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.10000a3e8
mov ecx, r12d
call qword [sym.imp.msvcrt.dll_exit]
int3
mov edx, 0x20
lea rcx, [rax + 0x9dc]
mov dword [rax + 0xc8], r13d
lea r8d, [rdx + 0x2f]
mov dword [rax + 0xcc], r13d
mov dword [rax + 0xd0], r13d
mov dword [rax + 0x20], r13d
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov dword [rax + 0x50], r13d
mov qword [rax + 0x58], r13
mov dword [rax + 0x74], r13d
mov dword [rax + 0x80], r13d
mov dword [rax + 0x6c], r13d
mov dword [rax + 0x70], r13d
mov qword [rax + 0x88], r13
mov qword [rax + 0xa0], r13
mov word [rax + 0x9c], r13w
mov byte [rax + 0xb2c], r13b
mov dword [rax + 0xd4], r13d
mov dword [rax + 0xc40], r13d
call sub.msvcrt.dll_memset
or rax, 0xffffffffffffffff
mov dword [rdi + 0x30], eax
mov qword [rdi + 0xa8], rax
mov qword [rdi + 0xb0], rax
lea rax, [0x100002238]
lea r9, [0x100001ac0]
lea r8, [0x100002248]
lea rcx, [rdi + 0x1dc]
mov edx, 0x800
mov byte [rdi + 0xa2b], r13b
mov qword [rsp + 0x20], rax
mov dword [rdi], r13d
mov dword [rdi + 0x24], r13d
mov dword [rdi + 0x28], r13d
mov dword [rdi + 0x2c], r13d
mov dword [rdi + 0x48], r13d
mov dword [rdi + 0x4c], r13d
mov dword [rdi + 0x78], r13d
mov dword [rdi + 0x7c], r13d
mov dword [rdi + 0x84], r13d
mov dword [rdi + 0xd8], r13d
mov dword [rdi + 0x34], r13d
mov dword [rdi + 0x38], r13d
mov dword [rdi + 0x3c], r13d
mov dword [rdi + 0x40], r13d
mov dword [rdi + 0xb8], r12d
mov dword [rdi + 0xbc], r12d
mov dword [rdi + 0xc0], r13d
call fcn.10000f064
lea rdx, [rdi + 0x1dc]
lea rcx, [0x100001ac0]
call qword [sym.imp.msvcrt.dll_printf]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.100004638
mov rcx, rdi
cmp rax, r13
jne 0x100006c43
lea rdx, [rsp + 0x30]
call fcn.10000a3e8
jmp 0x100006d2c
lea r9, [rsp + 0x30]
mov r8, rbp
mov edx, esi
mov qword [rdi + 0x10], rax
call fcn.100009f20
cmp eax, r13d
jne 0x100006c60
mov rcx, rdi
jmp 0x100006c34
cmp dword [rdi], r12d
jne 0x100006c79
lea rcx, [0x100002280]
call qword [sym.imp.msvcrt.dll_printf]
xor eax, eax
jmp 0x100006d2f
call qword [sym.imp.msvcrt.dll_clock]
mov ecx, dword [rdi]
sub ecx, 2
mov dword [rdi + 0x90], eax
je 0x100006d5c
cmp ecx, r12d
jne 0x100006ca7
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1000070c4
cmp eax, r13d
je 0x100006c5b
cmp dword [rdi + 0x48], r13d
mov rcx, qword [rdi + 0x10]
mov r12d, r13d
setg r12b
cmp rcx, r13
je 0x100006cc5
lea rdx, [rsp + 0x30]
call fcn.1000100e4
mov rcx, qword [rdi + 0xa0]
cmp rcx, r13
je 0x100006cd6
call fcn.10000c64c
mov rbp, qword [rdi + 8]
cmp rbp, r13
je 0x100006d23
mov rsi, qword [rbp]
cmp rsi, r13
je 0x100006d1a
mov rcx, qword [rsi]
cmp rcx, r13
je 0x100006cf6
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rsi + 8]
cmp rcx, r13
je 0x100006d05
call qword [sym.imp.msvcrt.dll_free]
mov rbx, qword [rsi + 0x20]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rsi, rbx
cmp rbx, r13
jne 0x100006ce8
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov eax, r12d
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.100018d50
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.10000aba8
cmp eax, r13d
je 0x100006d2c
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.100006d88
jmp 0x100006ca2