Function at 0x1006408
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push r13
push r14
push r15
sub rsp, 0x190
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x01021130]
xor rax, rsp
mov qword [rsp + 0x180], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
lea r12, [0x01004870]
mov qword [rsp + 0x38], r12
lea r13, [0x01004860]
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0x80
mov r14d, 0x200
mov dword [rsp + 0x4c], r14d
xor esi, esi
mov dword [rsp + 0x50], esi
mov word [rsp + 0xa8], si
mov byte [rsp + 0xaa], sil
mov byte [rsp + 0xab], 1
lea r15d, [rsi + 0x50]
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.MSVCR80.dll_memset
nop
lea r8, [0x01004820]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xb0]
call fcn.010060b0
nop
lea rcx, [0x01004918]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x010243b8], rax
cmp rax, rsi
jne 0x100656a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0x89
mov dword [rsp + 0x4c], r14d
mov dword [rsp + 0x50], esi
mov word [rsp + 0xa8], si
mov byte [rsp + 0xaa], sil
mov byte [rsp + 0xab], 1
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.MSVCR80.dll_memset
nop
mov r9d, ebx
lea r8, [0x01004930]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xb0]
call fcn.0100622c
nop
lea rcx, [rsp + 0xb0]
call fcn.010061b0
xor eax, eax
jmp 0x1006a02
lea rdx, [0x01004988]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x010243c8], rax
cmp rax, rsi
jne 0x1006615
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0x93
mov dword [rsp + 0x4c], r14d
mov dword [rsp + 0x50], esi
mov word [rsp + 0xa8], si
mov byte [rsp + 0xaa], sil
mov byte [rsp + 0xab], 1
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.MSVCR80.dll_memset
nop
mov r9d, ebx
lea r8, [0x010049a0]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xb0]
call fcn.0100622c
call fcn.010063bc
nop
lea rcx, [rsp + 0xb0]
call fcn.010061b0
xor eax, eax
jmp 0x1006a02
mov dword [rsp + 0xe0], 0x94
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, esi
jne 0x10066bf
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0xa1
mov dword [rsp + 0x4c], r14d
mov dword [rsp + 0x50], esi
mov word [rsp + 0xa8], si
mov byte [rsp + 0xaa], sil
mov byte [rsp + 0xab], 1
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.MSVCR80.dll_memset
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x01004a30]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xb0]
call fcn.0100622c
call fcn.010063bc
nop
lea rcx, [rsp + 0xb0]
call fcn.010061b0
xor eax, eax
jmp 0x1006a02
cmp dword [rsp + 0xe4], 5
jb 0x10069ed
cmp dword [rsp + 0xe4], 5
jne 0x1006713
cmp dword [rsp + 0xe8], 1
jb 0x10069ed
cmp dword [rsp + 0xe8], 1
jne 0x1006713
lea rax, [0x01004608]
lea rdi, [0x01004630]
cmp dword [0x010243f4], esi
cmovne rdi, rax
mov dword [0x010243f0], 1
jmp 0x100672b
lea rax, [0x010045f8]
lea rdi, [0x01004620]
cmp dword [0x010243f4], esi
cmovne rdi, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x010243c0], rax
cmp rax, rsi
jne 0x10067d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0xcc
mov dword [rsp + 0x4c], r14d
mov dword [rsp + 0x50], esi
mov word [rsp + 0xa8], si
mov byte [rsp + 0xaa], sil
mov byte [rsp + 0xab], 1
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.MSVCR80.dll_memset
nop
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x01004a90]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xb0]
call fcn.0100622c
call fcn.010063bc
nop
lea rcx, [rsp + 0xb0]
call fcn.010061b0
xor eax, eax
jmp 0x1006a02
lea rdx, [0x01004ad8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x010243d0], rax
cmp rax, rsi
jne 0x100687e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0xd8
mov dword [rsp + 0x4c], r14d
mov dword [rsp + 0x50], esi
mov word [rsp + 0xa8], si
mov byte [rsp + 0xaa], sil
mov byte [rsp + 0xab], 1
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.MSVCR80.dll_memset
nop
mov r9d, ebx
lea r8, [0x01004b00]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xb0]
call fcn.0100622c
call fcn.010063bc
nop
lea rcx, [rsp + 0xb0]
call fcn.010061b0
xor eax, eax
jmp 0x1006a02
lea rdx, [0x01004b98]
mov rcx, qword [0x010243c0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x010243d8], rax
cmp rax, rsi
jne 0x100692d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0xe6
mov dword [rsp + 0x4c], r14d
mov dword [rsp + 0x50], esi
mov word [rsp + 0xa8], si
mov byte [rsp + 0xaa], sil
mov byte [rsp + 0xab], 1
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.MSVCR80.dll_memset
nop
mov r9d, ebx
lea r8, [0x01004bb0]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xb0]
call fcn.0100622c
call fcn.010063bc
nop
lea rcx, [rsp + 0xb0]
call fcn.010061b0
xor eax, eax
jmp 0x1006a02
lea rdx, [0x01004c38]
mov rcx, qword [0x010243c0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x010243e0], rax
cmp rax, rsi
jne 0x10069d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0xf4
mov dword [rsp + 0x4c], r14d
mov dword [rsp + 0x50], esi
mov word [rsp + 0xa8], si
mov byte [rsp + 0xaa], sil
mov byte [rsp + 0xab], 1
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.MSVCR80.dll_memset
nop
mov r9d, ebx
lea r8, [0x01004c50]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xb0]
call fcn.0100622c
call fcn.010063bc
nop
lea rcx, [rsp + 0xb0]
call fcn.010061b0
xor eax, eax
jmp 0x1006a02
lea rcx, [rsp + 0xb0]
call fcn.010061b0
mov eax, 1
jmp 0x1006a02
call fcn.010063bc
nop
lea rcx, [rsp + 0xb0]
call fcn.010061b0
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.0100bf40
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret