Function at 0x10006d4d0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xba8
mov rax, qword [0x1000a81b8]
mov qword [rsp + 0xb90], rax
lea rax, [rsp + 0xb70]
lea rcx, [0x10000db58]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x12
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x820]
lea rcx, [0x10000db40]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x12
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x808]
lea rcx, [0x10000db30]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [0x10000db28]
mov qword [rsp + 0x270], rax
lea rax, [rsp + 0x5e0]
lea rcx, [0x10000db18]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xe
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x3a8]
lea rcx, [0x10000db08]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x3c0]
lea rcx, [0x10000daf0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x12
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0x30], 0
mov word [rsp + 0x804], 0
mov dword [rsp + 0x254], 0
mov dword [rsp + 0x278], 0
mov dword [rsp + 0x3dc], 0
mov dword [rsp + 0x260], 0
mov r8d, 0x11c
xor edx, edx
lea rcx, [rsp + 0x280]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x280], 0x11c
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10006d62a
cmp dword [rsp + 0x290], 2
je 0x10006d63c
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10006dec4
mov dword [rsp + 0xa50], 0
cmp qword [rsp + 0xbc8], 0
je 0x10006d666
mov rax, qword [rsp + 0xbc8]
mov eax, dword [rax + 4]
mov dword [rsp + 0xb88], eax
jmp 0x10006d674
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0xb88], eax
mov eax, dword [rsp + 0xb88]
mov dword [rsp + 0x250], eax
cmp qword [rsp + 0xbc8], 0
je 0x10006d70a
mov rax, qword [rsp + 0xbc8]
movzx eax, word [rax + 0x10]
mov dword [rsp + 0xb8c], eax
cmp dword [rsp + 0xb8c], 0
je 0x10006d6c0
cmp dword [rsp + 0xb8c], 6
je 0x10006d6d2
cmp dword [rsp + 0xb8c], 9
je 0x10006d6e4
jmp 0x10006d6f6
lea rax, [rsp + 0x5e2]
mov qword [rsp + 0x258], rax
jmp 0x10006d708
lea rax, [rsp + 0x3aa]
mov qword [rsp + 0x258], rax
jmp 0x10006d708
lea rax, [rsp + 0x3c2]
mov qword [rsp + 0x258], rax
jmp 0x10006d708
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10006dec4
jmp 0x10006d71a
lea rax, [rsp + 0x3c2]
mov qword [rsp + 0x258], rax
mov dword [rsp + 0x44], 2
jmp 0x10006d72e
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
mov r9d, 0xff
lea r8, [rsp + 0x3e0]
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xbc0]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x10006dd94
lea r8, [rsp + 0x3e0]
mov edx, 0xff
lea rcx, [rsp + 0x840]
call fcn.10001fc80
test eax, eax
jge 0x10006d77f
jmp 0x10006d724
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x268], eax
mov dword [rsp + 0x3d8], 0
mov dx, 0x2e
lea rcx, [rsp + 0x840]
call qword [sym.imp.msvcrt.dll_wcschr]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x10006d7c6
mov rax, qword [rsp + 0x38]
mov word [rax], 0
cmp dword [rsp + 0x250], 2
jne 0x10006d832
mov rdx, qword [rsp + 0x258]
lea rcx, [rsp + 0x840]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x10006d7fd
mov eax, dword [rsp + 0x3d8]
or eax, 4
mov dword [rsp + 0x3d8], eax
jmp 0x10006d830
cmp dword [rsp + 0xbd0], 0
je 0x10006d80e
jmp 0x10006d724
lea rax, [rsp + 0x272]
mov rdx, rax
lea rcx, [rsp + 0x840]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x10006d830
jmp 0x10006d724
jmp 0x10006d854
lea rax, [rsp + 0x80a]
mov rdx, rax
lea rcx, [rsp + 0x840]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x10006d854
jmp 0x10006d724
cmp qword [rsp + 0x38], 0
je 0x10006dca6
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov dx, 0x2e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.msvcrt.dll_wcschr]
mov qword [rsp + 0xa40], rax
cmp qword [rsp + 0xa40], 0
je 0x10006d89d
mov rax, qword [rsp + 0xa40]
mov word [rax], 0
lea rdx, [rsp + 0x818]
mov rcx, qword [rsp + 0x38]
call fcn.10006def0
test eax, eax
je 0x10006d8bd
cmp dword [rsp + 0x818], 0
jge 0x10006d8c2
jmp 0x10006d724
mov eax, dword [rsp + 0x818]
mov dword [rsp + 0x268], eax
cmp qword [rsp + 0xa40], 0
je 0x10006d8ee
mov rax, qword [rsp + 0xa40]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x10006d900
mov dword [rsp + 0x40], 0
jmp 0x10006dac9
mov dx, 0x2e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.msvcrt.dll_wcschr]
mov qword [rsp + 0xa40], rax
cmp qword [rsp + 0xa40], 0
je 0x10006d92f
mov rax, qword [rsp + 0xa40]
mov word [rax], 0
lea rdx, [rsp + 0x818]
mov rcx, qword [rsp + 0x38]
call fcn.10006def0
test eax, eax
je 0x10006d94f
cmp dword [rsp + 0x818], 0
jge 0x10006d954
jmp 0x10006d724
mov eax, dword [rsp + 0x818]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x10006d975
cmp dword [rsp + 0x268], 0
jne 0x10006d975
jmp 0x10006d724
cmp qword [rsp + 0xa40], 0
je 0x10006d99e
cmp qword [rsp + 0xbc8], 0
jne 0x10006d99e
mov rax, qword [rsp + 0xa40]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x10006d9a8
jmp 0x10006dac9
mov dx, 0x2e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.msvcrt.dll_wcschr]
mov qword [rsp + 0xa40], rax
cmp qword [rsp + 0xa40], 0
je 0x10006d9d7
mov rax, qword [rsp + 0xa40]
mov word [rax], 0
lea rdx, [rsp + 0x818]
mov rcx, qword [rsp + 0x38]
call fcn.10006def0
test eax, eax
je 0x10006da04
cmp dword [rsp + 0x818], 0
jl 0x10006da04
cmp dword [rsp + 0x818], 0xff
jle 0x10006da09
jmp 0x10006d724
movzx eax, byte [rsp + 0x818]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x10006da2f
mov eax, dword [rsp + 0x3d8]
or eax, 2
mov dword [rsp + 0x3d8], eax
cmp qword [rsp + 0xa40], 0
je 0x10006da4d
mov rax, qword [rsp + 0xa40]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x10006da51
jmp 0x10006dac9
mov dx, 0x2e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x10006da6a
jmp 0x10006d724
lea rdx, [rsp + 0x818]
mov rcx, qword [rsp + 0x38]
call fcn.10006def0
test eax, eax
je 0x10006da97
cmp dword [rsp + 0x818], 0
jl 0x10006da97
cmp dword [rsp + 0x818], 0xffff
jle 0x10006da9c
jmp 0x10006d724
movzx eax, word [rsp + 0x818]
mov word [rsp + 0x804], ax
movzx eax, word [rsp + 0x804]
test eax, eax
je 0x10006dac9
mov eax, dword [rsp + 0x3d8]
or eax, 1
mov dword [rsp + 0x3d8], eax
cmp qword [rsp + 0xbc8], 0
je 0x10006db17
mov rax, qword [rsp + 0xbc8]
mov ecx, dword [rsp + 0x268]
cmp dword [rax + 8], ecx
jb 0x10006db0d
mov rax, qword [rsp + 0xbc8]
mov ecx, dword [rsp + 0x268]
cmp dword [rax + 8], ecx
jne 0x10006db12
mov rax, qword [rsp + 0xbc8]
mov ecx, dword [rsp + 0x40]
cmp dword [rax + 0xc], ecx
jae 0x10006db12
jmp 0x10006d724
jmp 0x10006dca6
cmp dword [rsp + 0xa50], 0
jne 0x10006db41
mov r8d, 0x11c
xor edx, edx
lea rcx, [rsp + 0xa50]
call sub.msvcrt.dll_memset
mov dword [rsp + 0xa50], 0x11c
mov dword [rsp + 0x800], 0
mov qword [rsp + 0x3a0], 0
mov eax, dword [rsp + 0x268]
mov dword [rsp + 0xa54], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0xa58], eax
cmp dword [rsp + 0x268], 0
je 0x10006dbc8
mov eax, dword [rsp + 0x800]
or eax, 3
mov dword [rsp + 0x800], eax
mov r8b, 3
mov edx, 2
mov rcx, qword [rsp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov qword [rsp + 0x3a0], rax
mov r8b, 3
mov edx, 1
mov rcx, qword [rsp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov qword [rsp + 0x3a0], rax
mov eax, dword [rsp + 0x3d8]
and eax, 2
test eax, eax
je 0x10006dc15
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0xb6a], al
mov eax, dword [rsp + 0x800]
or eax, 0x80
mov dword [rsp + 0x800], eax
mov r8b, 1
mov edx, 0x80
mov rcx, qword [rsp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov qword [rsp + 0x3a0], rax
jmp 0x10006dc1d
mov byte [rsp + 0xb6a], 0
mov eax, dword [rsp + 0x3d8]
and eax, 1
test eax, eax
je 0x10006dc6c
movzx eax, word [rsp + 0x804]
mov word [rsp + 0xb68], ax
mov eax, dword [rsp + 0x800]
or eax, 0x40
mov dword [rsp + 0x800], eax
mov r8b, 6
mov edx, 0x40
mov rcx, qword [rsp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov qword [rsp + 0x3a0], rax
jmp 0x10006dc76
mov word [rsp + 0xb68], 0
cmp dword [rsp + 0x800], 0
je 0x10006dca6
mov r8, qword [rsp + 0x3a0]
mov edx, dword [rsp + 0x800]
lea rcx, [rsp + 0xa50]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x10006dca6
jmp 0x10006d724
mov dword [rsp + 0x264], 0
mov eax, dword [rsp + 0x254]
cmp dword [rsp + 0x268], eax
ja 0x10006dcde
mov eax, dword [rsp + 0x254]
cmp dword [rsp + 0x268], eax
jne 0x10006dceb
mov eax, dword [rsp + 0x278]
cmp dword [rsp + 0x40], eax
jbe 0x10006dceb
mov dword [rsp + 0x264], 1
jmp 0x10006dd23
mov eax, dword [rsp + 0x254]
cmp dword [rsp + 0x268], eax
jne 0x10006dd23
mov eax, dword [rsp + 0x278]
cmp dword [rsp + 0x40], eax
jne 0x10006dd23
mov eax, dword [rsp + 0x3dc]
cmp dword [rsp + 0x3d8], eax
jb 0x10006dd23
mov dword [rsp + 0x264], 1
cmp dword [rsp + 0x264], 0
je 0x10006dd8f
lea r8, [rsp + 0x3e0]
mov edx, 0xff
lea rcx, [rsp + 0x600]
call fcn.10001fc80
test eax, eax
jge 0x10006dd5d
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10006dec4
mov eax, dword [rsp + 0x268]
mov dword [rsp + 0x254], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x278], eax
mov eax, dword [rsp + 0x3d8]
mov dword [rsp + 0x3dc], eax
mov dword [rsp + 0x260], 1
jmp 0x10006d724
cmp dword [rsp + 0x260], 0
jne 0x10006ddad
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10006dec4
mov qword [rsp + 0x20], 0
mov r9d, 0xff
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0xbc0]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
jne 0x10006dddf
xor eax, eax
jmp 0x10006dec4
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x3b8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x50]
mov edx, 0xff
mov rcx, qword [rsp + 0xbd8]
call fcn.10006e5e0
mov dword [rsp + 0x5f0], eax
cmp dword [rsp + 0x5f0], 0
jl 0x10006de9e
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x3b8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, [0x100007498]
mov rdx, qword [rsp + 0x3b8]
mov rcx, qword [rsp + 0x38]
call fcn.10006e5e0
mov dword [rsp + 0x5f0], eax
cmp dword [rsp + 0x5f0], 0
jl 0x10006de9e
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x3b8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x600]
mov rdx, qword [rsp + 0x3b8]
mov rcx, qword [rsp + 0x38]
call fcn.10006e5e0
mov dword [rsp + 0x5f0], eax
cmp dword [rsp + 0x5f0], 0
jge 0x10006deb7
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10006dec4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
mov rcx, qword [rsp + 0xb90]
call fcn.100087ed0
add rsp, 0xba8
pop rdi
pop rsi
ret