Function at 0x409550
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46b536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x48c71c]
push esi
push edi
mov dword [esp + 0x12c], eax
mov dword [esp + 0xc], 0
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
xor eax, eax
mov ecx, 0x45
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x140], 0
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x409608
mov edi, dword [ebp + 8]
push 0xdd
push edi
call fcn.0042ce80
lea eax, [esi - 0x10]
add esp, 8
mov dword [esp + 0x13c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409806
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x409806
mov ecx, dword [esp + 0x20]
mov eax, ecx
sub eax, 0
je 0x4097be
dec eax
je 0x40972f
dec eax
je 0x409639
push ecx
lea eax, [esp + 0xc]
push str._platform_id__u_
push eax
call fcn.004022f0
add esp, 0xc
jmp 0x4097cc
mov ecx, dword [esp + 0x14]
cmp ecx, 5
mov eax, dword [esp + 0x18]
jne 0x409684
cmp eax, 2
jne 0x40965b
push str.Windows_Server_2003
lea ecx, [esp + 0xc]
call fcn.00402660
jmp 0x4096ad
cmp eax, 1
jne 0x409670
push str.Windows_XP
lea ecx, [esp + 0xc]
call fcn.00402660
jmp 0x4096ad
test eax, eax
jne 0x409699
push str.Windows_2000
lea ecx, [esp + 0xc]
call fcn.00402660
jmp 0x4096ad
cmp ecx, 4
ja 0x409699
push str.Windows_NT
lea ecx, [esp + 0xc]
call fcn.00402660
jmp 0x4096ad
push eax
push ecx
lea ecx, [esp + 0x10]
push str.Windows__u._u
push ecx
call fcn.004022f0
add esp, 0x10
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4097cc
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
push str.___s_
push ecx
mov byte [esp + 0x148], 1
call fcn.004022f0
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.00402100
lea eax, [esi - 0x10]
mov byte [esp + 0x13c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4097cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4097cc
mov ecx, dword [esp + 0x14]
cmp ecx, 4
mov eax, dword [esp + 0x18]
jne 0x4097a6
test eax, eax
jne 0x40976f
push str.Windows_95
lea ecx, [esp + 0xc]
call fcn.00402660
mov ax, word [esp + 0x26]
cmp ax, 0x43
je 0x40975f
cmp ax, 0x42
jne 0x4097cc
push str._OSR2
lea ecx, [esp + 0xc]
call fcn.00409130
jmp 0x4097cc
cmp eax, 0xa
jne 0x40979a
push str.Windows_98
lea ecx, [esp + 0xc]
call fcn.00402660
cmp word [esp + 0x26], 0x41
jne 0x4097cc
push 0x470a8c
lea ecx, [esp + 0xc]
call fcn.00409130
jmp 0x4097cc
cmp eax, 0x5a
jne 0x4097a6
push str.Windows_ME
jmp 0x4097c3
push eax
push ecx
push 1
lea eax, [esp + 0x14]
push str._platform__u__u._u_
push eax
call fcn.004022f0
add esp, 0x14
jmp 0x4097cc
push 0x470a3c
lea ecx, [esp + 0xc]
call fcn.00402660
mov esi, dword [esp + 8]
add esi, 0xfffffff0
push esi
call fcn.00401470
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x13c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409806
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
mov eax, edi
call fcn.004379cc
pop edi
pop esi
mov esp, ebp
pop ebp
ret