Function at 0x403070
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540cbb
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5a3ea8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
call fcn.004069e1
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4030c8
push 0x80004005
call fcn.00401a90
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xb4], esi
push 0x9c
lea eax, [ebp - 0xac]
push 0
push eax
mov dword [ebp - 4], 0
mov byte [ebx + 0xd2], 0
call fcn.00527210
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40314b
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40314b
push eax
push str.Check_OS_type_Error__
push str.Message
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor bl, bl
jmp 0x40348b
mov eax, dword [ebp - 0x9c]
mov byte [edi], 0
sub eax, 0
je 0x403486
dec eax
je 0x403437
dec eax
je 0x403185
push 0
push str.Unknown_OS_type__
push str.Message
push 0
mov byte [edi], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor bl, bl
jmp 0x40348b
cmp dword [ebp - 0xa8], 4
ja 0x403191
mov byte [edi], 0xd
cmp dword [ebp - 0xa8], 5
jne 0x40331f
mov ecx, dword [ebp - 0xa0]
cmp ecx, 0x8ae
ja 0x40321b
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xb4]
mov byte [edi], 0xe
call fcn.00401420
mov esi, dword [ebp - 0xb4]
cmp dword [esi - 0xc], 0
jl 0x4031f1
push str.Service_Pack_4
push esi
call fcn.00526b91
add esp, 8
test eax, eax
je 0x4031f1
sub eax, esi
cmp eax, 0xffffffff
je 0x4031f1
mov eax, dword [ebp - 0xb0]
mov byte [eax], 1
jmp 0x4031fa
mov eax, dword [ebp - 0xb0]
mov byte [eax], 0
cmp dword [ebp - 0xa8], 5
jne 0x40331f
mov ecx, dword [ebp - 0xa0]
cmp ecx, 0x8ae
jbe 0x403489
jmp 0x403221
mov eax, dword [ebp - 0xb0]
cmp ecx, 0xece
jb 0x4032b8
cmp dword [ebp - 0xa4], 2
jne 0x403489
cmp byte [ebp - 0x12], 1
jne 0x403252
mov byte [edi], 0x11
mov byte [eax], 1
mov byte [ebx + 0xd3], 1
jmp 0x403489
mov ecx, ebx
call fcn.00401e70
test al, al
mov eax, dword [ebp - 0xb0]
jne 0x4032a9
mov byte [edi], 0x10
mov byte [ebx + 0xd2], 1
mov byte [eax], 1
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00401420
lea eax, [ebp - 0xb4]
push 0x551cfc
push eax
call fcn.004014f0
mov esi, dword [ebp - 0xb4]
add esp, 8
test al, al
sete al
mov byte [ebx + 0xd3], al
jmp 0x40331f
mov byte [edi], 0x11
mov byte [ebx + 0xd2], 1
mov byte [eax], 1
jmp 0x40331f
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xb4]
mov byte [edi], 0x10
call fcn.00401420
lea eax, [ebp - 0xb4]
push 0x551cfc
push eax
call fcn.004014f0
mov esi, dword [ebp - 0xb4]
add esp, 8
test al, al
mov eax, dword [ebp - 0xb0]
je 0x4032f6
mov byte [eax], 0
jmp 0x40331f
mov byte [eax], 1
cmp dword [esi - 0xc], 0
jl 0x40331f
push str.Service_Pack_2
push esi
call fcn.00526b91
add esp, 8
test eax, eax
je 0x40331f
sub eax, esi
cmp eax, 0xffffffff
je 0x40331f
mov byte [ebx + 0xd3], 1
cmp dword [ebp - 0xa8], 6
jne 0x403489
mov eax, dword [ebp - 0xa4]
test eax, eax
jne 0x403349
mov ecx, ebx
call fcn.00401e70
test al, al
setne al
add al, 0x12
jmp 0x403426
cmp eax, 1
jne 0x403361
mov ecx, ebx
call fcn.00401e70
test al, al
setne al
add al, 0x14
jmp 0x403426
cmp eax, 2
jne 0x403428
mov ecx, ebx
call fcn.00401e70
push ecx
mov ecx, esp
push str.Windows_8.1
test al, al
jne 0x4033d4
call fcn.00401030
mov ecx, ebx
call fcn.00402030
cmp al, 1
jne 0x403395
mov byte [edi], 0x18
jmp 0x403428
push ecx
mov ecx, esp
push str.Windows_10
call fcn.00401030
mov ecx, ebx
call fcn.00402030
cmp al, 1
jne 0x4033b2
mov byte [edi], 0x1a
jmp 0x403428
push ecx
mov ecx, esp
push str.Windows_Embedded_8.1
call fcn.00401030
mov ecx, ebx
call fcn.00402030
cmp al, 1
sete al
lea eax, [eax*2 + 0x16]
jmp 0x403426
call fcn.00401030
mov ecx, ebx
call fcn.00402030
cmp al, 1
jne 0x4033e9
mov byte [edi], 0x19
jmp 0x403428
push ecx
mov ecx, esp
push str.Windows_10
call fcn.00401030
mov ecx, ebx
call fcn.00402030
cmp al, 1
jne 0x403406
mov byte [edi], 0x1b
jmp 0x403428
push ecx
mov ecx, esp
push str.Windows_Embedded_8.1
call fcn.00401030
mov ecx, ebx
call fcn.00402030
cmp al, 1
sete al
lea eax, [eax*2 + 0x17]
mov byte [edi], al
cmp byte [ebp - 0x12], 1
setne al
mov byte [ebx + 0xd2], al
jmp 0x403489
mov eax, dword [ebp - 0xa8]
cmp eax, 4
ja 0x403452
jne 0x40344d
cmp dword [ebp - 0xa4], 0
ja 0x403452
mov byte [edi], 0xa
jmp 0x403489
mov ecx, dword [ebp - 0xa0]
mov byte [edi], 0xb
movzx eax, byte [edi]
mov ebx, 0x8ae
mov edx, 0xf
cmp cx, bx
cmova eax, edx
mov byte [edi], al
jne 0x403477
mov byte [edi], 0xc
jmp 0x403489
mov eax, 0x7ce
cmp cx, ax
jne 0x403489
mov byte [edi], 0xb
jmp 0x403489
mov byte [edi], 9
mov bl, 1
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4034ac
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526d92
mov esp, ebp
pop ebp
ret 8