Function at 0x10015f3d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x11c0]
mov eax, 0x12c0
call fcn.10005f3c0
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x12f8], rbx
mov qword [rsp + 0x1300], rsi
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rbp + 0x11b0], rax
mov rsi, rcx
xor edx, edx
mov r8d, 0x114
lea rcx, [rbp + 0x90]
call sub.MSVCR100.dll_memset
mov dword [rbp + 0x90], 0x114
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10015f464
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1000447a0]
call qword [sym.imp.MSVCR100.dll_wprintf]
jmp 0x10015fa7f
xor r15d, r15d
cmp dword [rbp + 0xa0], 2
jne 0x10015f956
lea rdx, [0x1000447f0]
lea rcx, [rsi + 0x460]
call fcn.100057700
mov r11d, dword [rbp + 0x9c]
mov dword [rsp + 0x28], r11d
mov eax, dword [rbp + 0x98]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0x94]
lea r8, [0x100044820]
mov edx, 0x800
lea rcx, [rbp + 0x1b0]
call fcn.10006c5f0
test eax, eax
jns 0x10015f4d4
mov edx, eax
lea rcx, [0x100044840]
call qword [sym.imp.MSVCR100.dll_wprintf]
jmp 0x10015fa7f
lea rcx, [rsi + 0x348]
lea rdx, [rbp + 0x1b0]
call fcn.100057700
lea r11, [rsp + 0x70]
mov qword [rbp + 0x70], r11
mov edi, 0x80
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x80], r15
mov r12d, 0x200
mov rdx, qword [rbp + 0x70]
test rdx, rdx
je 0x10015f561
lea rax, [rsp + 0x70]
cmp rdx, rax
je 0x10015f561
mov rax, rdx
and rax, 0xffffffffffffe000
je 0x10015f52f
cmp word [rax + 4], r12w
jne 0x10015f52f
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x10015f54d
cmp word [rcx + 4], r12w
jne 0x10015f54d
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x10015f55d
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rbp + 0x70], r15
mov rdx, r15
mov qword [rbp + 0x80], rdx
mov rax, rdi
mov qword [rbp + 0x78], rax
lea rcx, [rsp + 0x70]
mov qword [rbp + 0x70], rcx
lea rbx, [rbp + 0x1b0]
cmp word [rbp + 0x1b0], dx
je 0x10015f5e9
nop dword [rax + rax]
cmp rax, rdx
jne 0x10015f5a6
lea rcx, [rsp + 0x70]
call fcn.1000577e0
mov rdx, qword [rbp + 0x80]
movzx ecx, word [rbx]
mov rax, qword [rbp + 0x70]
mov word [rax + rdx*2], cx
mov rdx, qword [rbp + 0x80]
inc rdx
mov qword [rbp + 0x80], rdx
add rbx, 2
cmp word [rbx], 0
je 0x10015f5d2
mov rax, qword [rbp + 0x78]
jmp 0x10015f590
cmp qword [rbp + 0x78], rdx
jne 0x10015f5e9
lea rcx, [rsp + 0x70]
call fcn.1000577e0
mov rdx, qword [rbp + 0x80]
mov rax, qword [rbp + 0x70]
mov word [rax + rdx*2], r15w
inc qword [rbp + 0x80]
lea rdx, [rsp + 0x70]
lea rcx, [rsi + 0x460]
call fcn.100152470
nop
mov rdx, qword [rbp + 0x70]
test rdx, rdx
je 0x10015f666
lea rax, [rsp + 0x70]
cmp rdx, rax
je 0x10015f666
mov rax, rdx
and rax, 0xffffffffffffe000
je 0x10015f634
cmp word [rax + 4], r12w
jne 0x10015f634
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x10015f652
cmp word [rcx + 4], r12w
jne 0x10015f652
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x10015f662
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rbp + 0x70], r15
lea rcx, [rbp + 0xa4]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x10015f671
test rax, rax
je 0x10015f956
lea rax, [rsp + 0x70]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x80], r15
mov rdx, qword [rbp + 0x70]
test rdx, rdx
je 0x10015f6f3
lea rax, [rsp + 0x70]
cmp rdx, rax
je 0x10015f6f3
mov rax, rdx
and rax, 0xffffffffffffe000
je 0x10015f6c1
cmp word [rax + 4], r12w
jne 0x10015f6c1
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x10015f6df
cmp word [rcx + 4], r12w
jne 0x10015f6df
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x10015f6ef
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rbp + 0x70], r15
mov rdx, r15
mov qword [rbp + 0x80], rdx
mov rax, rdi
mov qword [rbp + 0x78], rax
lea rcx, [rsp + 0x70]
mov qword [rbp + 0x70], rcx
lea rbx, [0x1000425bc]
cmp rax, rdx
jne 0x10015f72a
lea rcx, [rsp + 0x70]
call fcn.1000577e0
mov rdx, qword [rbp + 0x80]
movzx ecx, word [rbx]
mov rax, qword [rbp + 0x70]
mov word [rax + rdx*2], cx
mov rdx, qword [rbp + 0x80]
inc rdx
mov qword [rbp + 0x80], rdx
add rbx, 2
cmp word [rbx], 0
je 0x10015f756
mov rax, qword [rbp + 0x78]
jmp 0x10015f714
cmp qword [rbp + 0x78], rdx
jne 0x10015f76d
lea rcx, [rsp + 0x70]
call fcn.1000577e0
mov rdx, qword [rbp + 0x80]
mov rax, qword [rbp + 0x70]
mov word [rax + rdx*2], r15w
inc qword [rbp + 0x80]
lea rdx, [rsp + 0x70]
lea rcx, [rsi + 0x460]
call fcn.100152470
nop
mov rdx, qword [rbp + 0x70]
test rdx, rdx
je 0x10015f7ea
lea rax, [rsp + 0x70]
cmp rdx, rax
je 0x10015f7ea
mov rax, rdx
and rax, 0xffffffffffffe000
je 0x10015f7b8
cmp word [rax + 4], r12w
jne 0x10015f7b8
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x10015f7d6
cmp word [rcx + 4], r12w
jne 0x10015f7d6
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x10015f7e6
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rbp + 0x70], r15
lea rax, [rsp + 0x70]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x80], r15
mov rdx, qword [rbp + 0x70]
test rdx, rdx
je 0x10015f859
lea rax, [rsp + 0x70]
cmp rdx, rax
je 0x10015f859
mov rax, rdx
and rax, 0xffffffffffffe000
je 0x10015f827
cmp word [rax + 4], r12w
jne 0x10015f827
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x10015f845
cmp word [rcx + 4], r12w
jne 0x10015f845
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x10015f855
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rbp + 0x70], r15
mov rdx, r15
mov qword [rbp + 0x80], rdx
mov qword [rbp + 0x78], rdi
lea rax, [rsp + 0x70]
mov qword [rbp + 0x70], rax
lea rbx, [rbp + 0xa4]
cmp word [rbp + 0xa4], dx
je 0x10015f8d9
cmp rdi, rdx
jne 0x10015f896
lea rcx, [rsp + 0x70]
call fcn.1000577e0
mov rdx, qword [rbp + 0x80]
movzx ecx, word [rbx]
mov rax, qword [rbp + 0x70]
mov word [rax + rdx*2], cx
mov rdx, qword [rbp + 0x80]
inc rdx
mov qword [rbp + 0x80], rdx
add rbx, 2
cmp word [rbx], 0
je 0x10015f8c2
mov rdi, qword [rbp + 0x78]
jmp 0x10015f880
cmp qword [rbp + 0x78], rdx
jne 0x10015f8d9
lea rcx, [rsp + 0x70]
call fcn.1000577e0
mov rdx, qword [rbp + 0x80]
mov rax, qword [rbp + 0x70]
mov word [rax + rdx*2], r15w
inc qword [rbp + 0x80]
lea rdx, [rsp + 0x70]
lea rcx, [rsi + 0x460]
call fcn.100152470
nop
mov rdx, qword [rbp + 0x70]
test rdx, rdx
je 0x10015f956
lea rax, [rsp + 0x70]
cmp rdx, rax
je 0x10015f956
mov rax, rdx
and rax, 0xffffffffffffe000
je 0x10015f924
cmp word [rax + 4], r12w
jne 0x10015f924
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x10015f942
cmp word [rcx + 4], r12w
jne 0x10015f942
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x10015f952
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rbp + 0x70], r15
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx r11d, word [rsp + 0x38]
lea rcx, [rsi + 0xaf0]
test r11d, r11d
je 0x10015fa60
cmp r11d, 6
je 0x10015fa4b
cmp r11d, 9
je 0x10015f9bf
lea rdx, [0x100044938]
call fcn.100057700
lea rdx, [0x100044938]
jmp 0x10015fa73
lea rdx, [0x1000448b0]
call fcn.100057700
lea rdx, [0x1000448b0]
lea rcx, [rsi + 0xc08]
call fcn.100057700
lea rcx, [0x1000448c0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x100022530]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x10029b480], rax
test rax, rax
je 0x10015f9b3
mov dword [rsp + 0x30], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x10015fa42
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1000448e0]
call qword [sym.imp.MSVCR100.dll_wprintf]
lea rdx, [0x100044938]
jmp 0x10015fa73
cmp dword [rsp + 0x30], 0
je 0x10015fa7f
jmp 0x10015fa6c
lea rdx, [0x100044970]
call fcn.100057700
lea rdx, [0x100044970]
jmp 0x10015fa73
lea rdx, [0x100044968]
call fcn.100057700
lea rdx, [0x100044968]
lea rcx, [rsi + 0xc08]
call fcn.100057700
mov rcx, qword [rbp + 0x11b0]
xor rcx, rsp
call fcn.10005f420
lea r11, [rsp + 0x12c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret