Function at 0x4303e0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa8
mov eax, dword [0x45b990]
xor eax, esp
test esi, esi
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 8], eax
je 0x4307e9
test edi, edi
je 0x4307e9
test eax, eax
je 0x4307e9
mov eax, dword [esp + 0xac]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push eax
push str.unknown_Windows_version
push esi
call ebp
lea ecx, [esp + 0x14]
push ecx
mov dword [edi], 0
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x430461
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
and ebx, 0xffff
push ebx
push eax
push ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc8]
push str._u._u._u
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp eax, 1
jne 0x43066f
cmp dword [esp + 0xc], 4
jne 0x4307cd
mov eax, dword [esp + 8]
cmp eax, 0xa
jae 0x43057a
cmp ebx, 0x3b6
jne 0x430501
mov edx, dword [esp + 0xb4]
push edx
push str.Windows_95
push esi
call ebp
pop ebx
mov dword [edi], 1
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
jbe 0x43053d
cmp ebx, 0x438
ja 0x430545
mov eax, dword [esp + 0xb4]
push eax
push str.Windows_95_SP1
push esi
call ebp
pop ebx
mov dword [edi], 2
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
cmp ebx, 0x438
jbe 0x430577
mov ecx, dword [esp + 0xb4]
push ecx
push str.Windows_95_OSR2
push esi
call ebp
pop ebx
mov dword [edi], 3
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
cmp eax, 0xa
jne 0x430634
cmp ebx, 0x7ce
jne 0x4305ba
mov edx, dword [esp + 0xb4]
push edx
push str.Windows_98
push esi
call ebp
pop ebx
mov dword [edi], 4
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
jbe 0x4305f6
cmp ebx, 0x887
jae 0x430602
mov eax, dword [esp + 0xb4]
push eax
push str.Windows_98_SP1
push esi
call ebp
pop ebx
mov dword [edi], 5
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
cmp ebx, 0x887
jb 0x4307cd
mov ecx, dword [esp + 0xb4]
push ecx
push str.Windows_98_SE
push esi
call ebp
pop ebx
mov dword [edi], 6
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
cmp eax, 0x5a
jne 0x4307cd
mov edx, dword [esp + 0xb4]
push edx
push str.Windows_ME
push esi
call ebp
pop ebx
mov dword [edi], 7
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
cmp eax, 2
jne 0x4307b2
mov eax, dword [esp + 0xc]
cmp eax, 3
jne 0x4306be
cmp dword [esp + 8], 0x33
jne 0x4307cd
mov eax, dword [esp + 0xb4]
push eax
push str.Windows_NT_3.51
push esi
call ebp
pop ebx
mov dword [edi], 0x65
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
cmp eax, 4
jne 0x430701
mov eax, dword [esp + 8]
test eax, eax
jne 0x4307cd
mov ecx, dword [esp + 0xb4]
push ecx
push str.Windows_NT_4
push esi
call ebp
pop ebx
mov dword [edi], 0x66
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
cmp eax, 5
jne 0x4307cd
mov eax, dword [esp + 8]
test eax, eax
jne 0x430744
mov edx, dword [esp + 0xb4]
push edx
push str.Windows_2000
push esi
call ebp
pop ebx
mov dword [edi], 0x67
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
cmp eax, 1
jne 0x43077b
mov eax, dword [esp + 0xb4]
push eax
push str.Windows_XP
push esi
call ebp
pop ebx
mov dword [edi], 0x68
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
cmp eax, 2
jne 0x4307cd
mov ecx, dword [esp + 0xb4]
push ecx
push str.Windows_2003_Server
push esi
call ebp
pop ebx
mov dword [edi], 0x69
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
cmp eax, 3
jne 0x4307cd
mov edx, dword [esp + 0xb4]
push edx
push str.Windows_CE
push esi
call ebp
mov dword [edi], 0xc9
pop ebx
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004395fe
add esp, 0xa8
ret
mov ecx, dword [esp + 0xa4]
xor ecx, esp
xor eax, eax
call fcn.004395fe
add esp, 0xa8
ret