Function at 0x4041b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cbfb
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x573c28]
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 edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, ecx
call fcn.0040809e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404200
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xb0], eax
push 0x9c
lea ecx, [ebp - 0xac]
push 0
push ecx
mov dword [ebp - 4], 0
mov byte [esi + 0xbe], 0
call fcn.00504620
add esp, 0xc
lea edx, [ebp - 0xac]
push edx
mov dword [ebp - 0xac], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4042ae
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4042ae
push eax
push str.Check_OS_type_Error__
push str.Message
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0xb0]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4045e8
mov eax, dword [ebp - 0x9c]
sub eax, 0
mov byte [edi], 0
je 0x4045ba
dec eax
je 0x40456e
dec eax
je 0x404311
push 0
push str.Unknown_OS_type__
push str.Message
push 0
mov byte [edi], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0xb0]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4045e8
mov eax, dword [ebp - 0xa8]
cmp eax, 4
ja 0x40431f
mov byte [edi], 0xd
cmp eax, 5
jne 0x404480
mov eax, dword [ebp - 0xa0]
cmp eax, 0x8ae
ja 0x404399
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0xb0]
mov byte [edi], 0xe
call fcn.00402ae0
mov eax, dword [ebp - 0xb0]
cmp dword [eax - 0xc], 0
jl 0x404373
push str.Service_Pack_4
push eax
call fcn.0050490b
add esp, 8
test eax, eax
je 0x404373
sub eax, dword [ebp - 0xb0]
cmp eax, 0xffffffff
jne 0x404378
mov byte [ebx], 0
jmp 0x40437b
mov byte [ebx], 1
cmp dword [ebp - 0xa8], 5
jne 0x404480
mov eax, dword [ebp - 0xa0]
cmp eax, 0x8ae
jbe 0x4045bd
cmp eax, 0xece
jb 0x40441f
cmp dword [ebp - 0xa4], 2
jne 0x4045bd
cmp byte [ebp - 0x12], 1
jne 0x4043c5
mov byte [edi], 0x11
mov byte [ebx], 1
mov byte [esi + 0xbf], 1
jmp 0x4045bd
mov ecx, esi
call fcn.00404080
test al, al
jne 0x404410
mov byte [edi], 0x10
lea edx, [ebp - 0x98]
mov byte [esi + 0xbe], 1
push edx
lea ecx, [ebp - 0xb0]
mov byte [ebx], 1
call fcn.00402ae0
lea eax, [ebp - 0xb0]
push 0x52c094
push eax
call fcn.00401a30
add esp, 8
test al, al
sete cl
mov byte [esi + 0xbf], cl
jmp 0x404480
mov byte [edi], 0x11
mov byte [esi + 0xbe], 1
mov byte [ebx], 1
jmp 0x404480
lea edx, [ebp - 0x98]
push edx
lea ecx, [ebp - 0xb0]
mov byte [edi], 0x10
call fcn.00402ae0
lea eax, [ebp - 0xb0]
push 0x52c094
push eax
call fcn.00401a30
add esp, 8
test al, al
je 0x404451
mov byte [ebx], 0
jmp 0x404480
mov byte [ebx], 1
mov ebx, dword [ebp - 0xb0]
cmp dword [ebx - 0xc], 0
jl 0x404480
push str.Service_Pack_2
push ebx
call fcn.0050490b
add esp, 8
test eax, eax
je 0x404480
sub eax, ebx
cmp eax, 0xffffffff
je 0x404480
mov byte [esi + 0xbf], 1
cmp dword [ebp - 0xa8], 6
jne 0x4045bd
mov eax, dword [ebp - 0xa4]
test eax, eax
jne 0x4044ab
mov ecx, esi
call fcn.00404080
test al, al
setne cl
add cl, 0x12
jmp 0x40455d
cmp eax, 1
jne 0x4044c6
mov ecx, esi
call fcn.00404080
test al, al
setne dl
add dl, 0x14
mov byte [edi], dl
jmp 0x40455f
cmp eax, 2
jne 0x40455f
mov ecx, esi
call fcn.00404080
push ecx
mov ecx, esp
mov dword [ebp - 0xb4], esp
push str.Windows_8.1
test al, al
jne 0x404524
call fcn.004036b0
mov ecx, esi
call fcn.00403300
cmp al, 1
jne 0x4044fd
mov byte [edi], 0x18
jmp 0x40455f
push ecx
mov ecx, esp
mov dword [ebp - 0xb4], esp
push str.Windows_10
call fcn.004036b0
mov ecx, esi
call fcn.00403300
cmp al, 1
setne al
dec al
and al, 0x1a
mov byte [edi], al
jmp 0x40455f
call fcn.004036b0
mov ecx, esi
call fcn.00403300
cmp al, 1
jne 0x404539
mov byte [edi], 0x19
jmp 0x40455f
push ecx
mov ecx, esp
mov dword [ebp - 0xb4], esp
push str.Windows_10
call fcn.004036b0
mov ecx, esi
call fcn.00403300
cmp al, 1
setne cl
dec cl
and cl, 0x1b
mov byte [edi], cl
cmp byte [ebp - 0x12], 1
setne dl
mov byte [esi + 0xbe], dl
jmp 0x4045bd
mov eax, dword [ebp - 0xa8]
cmp eax, 4
ja 0x404589
jne 0x404584
cmp dword [ebp - 0xa4], 0
ja 0x404589
mov byte [edi], 0xa
jmp 0x4045bd
mov eax, dword [ebp - 0xa0]
mov ecx, 0x8ae
mov byte [edi], 0xb
cmp ax, cx
jbe 0x40459f
mov byte [edi], 0xf
mov edx, ecx
cmp ax, dx
jne 0x4045ab
mov byte [edi], 0xc
jmp 0x4045bd
mov ecx, 0x7ce
cmp ax, cx
jne 0x4045bd
mov byte [edi], 0xb
jmp 0x4045bd
mov byte [edi], 9
mov eax, dword [ebp - 0xb0]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4045e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
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.00504604
mov esp, ebp
pop ebp
ret 8