Function at 0x41c180
Capabilities:
Check os version

Disassembly:
sub esp, 0x29c
mov eax, dword [str.Unknown]
mov ecx, dword [0x5bcd54]
push ebx
push esi
push 0x9c
lea edx, [esp + 0x10c]
push 0
xor bl, bl
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1b0], bl
call fcn.0058ac30
mov esi, dword [sym.imp.kernel32.dll_GetVersionExA]
add esp, 0xc
lea eax, [esp + 0x108]
push eax
mov dword [esp + 0x10c], 0x9c
call esi
test eax, eax
jne 0x41c200
lea ecx, [esp + 0x108]
push ecx
mov dword [esp + 0x10c], 0x94
call esi
test eax, eax
jne 0x41c200
pop esi
xor al, al
pop ebx
add esp, 0x29c
ret 8
mov eax, dword [esp + 0x118]
sub eax, 0
push edi
je 0x41c52a
sub eax, 1
je 0x41c396
sub eax, 1
jne 0x41c55b
mov eax, dword [esp + 0x110]
cmp eax, 4
ja 0x41c259
mov edx, dword [str.Windows_NT]
mov ecx, dword [0x5bcd48]
mov dword [esp + 0xc], edx
mov dx, word [0x5bcd4c]
mov dword [esp + 0x10], ecx
mov cl, byte [0x5bcd4e]
mov word [esp + 0x14], dx
mov byte [esp + 0x16], cl
cmp eax, 5
jne 0x41c2b7
cmp dword [esp + 0x114], 1
jb 0x41c28f
mov edx, dword [str.Windows_XP]
mov cx, word [0x5bcd40]
mov eax, dword [0x5bcd3c]
mov dword [esp + 0xc], edx
mov dl, byte [0x5bcd42]
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x41c300
mov eax, dword [str.Windows_2000]
mov ecx, dword [0x5bcd2c]
mov edx, dword [0x5bcd30]
mov dword [esp + 0xc], eax
mov al, byte [0x5bcd34]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov byte [esp + 0x18], al
jmp 0x41c304
cmp eax, 6
jne 0x41c304
cmp dword [esp + 0x114], 0
jne 0x41c2f1
mov ecx, dword [str.Windows_Vista]
mov edx, dword [0x5bcd1c]
mov eax, dword [0x5bcd20]
mov dword [esp + 0xc], ecx
mov cx, word [0x5bcd24]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov word [esp + 0x18], cx
jmp 0x41c304
mov edx, dword [str.Windows]
mov eax, dword [0x5bcd14]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov edi, 0x5ad73f
lea esi, [esp + 0x120]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x41c335
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x120]
mov byte [esp + eax + 0x1a8], cl
add eax, 1
test cl, cl
jne 0x41c320
mov eax, dword [esp + 0x2b0]
test eax, eax
je 0x41c38f
cmp byte [esp + 0x1a8], 0
je 0x41c374
mov ecx, dword [esp + 0x118]
push ecx
lea edx, [esp + 0x1ac]
push edx
lea ecx, [esp + 0x14]
push ecx
push str._s__s_Build__d
push eax
call fcn.00589571
add esp, 0x14
mov bl, 1
jmp 0x41c55b
mov edx, dword [esp + 0x118]
push edx
lea ecx, [esp + 0x10]
push ecx
push str._s_Build__d
push eax
call fcn.00589571
add esp, 0x10
mov bl, 1
jmp 0x41c55b
mov eax, dword [esp + 0x110]
cmp eax, 4
mov ecx, dword [esp + 0x114]
jb 0x41c3e7
cmp ecx, 0x5a
jb 0x41c3dc
mov edx, dword [str.Windows_ME]
mov eax, dword [0x5bccec]
mov cx, word [0x5bccf0]
mov dword [esp + 0xc], edx
mov dl, byte [0x5bccf2]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x41c4c0
cmp eax, 4
ja 0x41c45f
jne 0x41c3e7
test ecx, ecx
ja 0x41c45f
mov ecx, dword [0x5bcce0]
mov dx, word [0x5bcce4]
mov eax, dword [str.Windows_95]
mov dword [esp + 0x10], ecx
mov word [esp + 0x14], dx
mov dword [esp + 0xc], eax
mov al, byte [0x5bcce6]
mov edi, 0x5bccd8
lea esi, [esp + 0x120]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov byte [esp + 0x16], al
je 0x41c441
mov edi, 0x5bccd4
lea esi, [esp + 0x120]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x41c4c2
mov ecx, dword [str._OSR2]
mov dx, word [0x5bccd0]
mov dword [esp + 0x1a8], ecx
mov word [esp + 0x1ac], dx
jmp 0x41c4c2
mov ecx, dword [0x5bccc4]
mov dx, word [0x5bccc8]
mov eax, dword [str.Windows_98]
mov dword [esp + 0x10], ecx
mov word [esp + 0x14], dx
mov dword [esp + 0xc], eax
mov al, byte [0x5bccca]
mov edi, 0x5bccbc
lea esi, [esp + 0x120]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov byte [esp + 0x16], al
je 0x41c4b5
mov edi, 0x5bccb8
lea esi, [esp + 0x120]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x41c4c0
mov dword [esp + 0x1a8], 0x455320
mov bl, 1
mov ecx, dword [esp + 0x2b0]
test ecx, ecx
je 0x41c55b
mov edx, dword [esp + 0x118]
mov eax, edx
movzx edx, dx
shr eax, 0x10
push edx
mov edx, eax
and edx, 0xff
shr eax, 8
cmp byte [esp + 0x1ac], 0
push edx
push eax
je 0x41c515
lea eax, [esp + 0x1b4]
push eax
lea edx, [esp + 0x1c]
push edx
push str._s_s_Build__.2d._.2d._.4d
push ecx
call fcn.00589571
add esp, 0x1c
jmp 0x41c55b
lea eax, [esp + 0x18]
push eax
push str._s_Build__.2d._.2d._.4d
push ecx
call fcn.00589571
add esp, 0x18
jmp 0x41c55b
mov ecx, dword [str.Microsoft_Win32s]
mov edx, dword [0x5bcc74]
mov eax, dword [0x5bcc78]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x5bcc7c]
mov dword [esp + 0x10], edx
mov dl, byte [0x5bcc80]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
mov edx, dword [esp + 0x2ac]
test edx, edx
pop edi
je 0x41c57c
lea eax, [esp + 8]
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41c570
pop esi
mov al, bl
pop ebx
add esp, 0x29c
ret 8