Function at 0x418298
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
cmp dword [0x448060], 0
push ebx
push edi
mov edi, 0x44804c
jne 0x4184d6
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.0041bdb0
add esp, 0xc
push 0x43acb8
mov dword [ebp - 0xa0], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xa0]
push eax
call ebx
test eax, eax
jne 0x418307
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x94
call ebx
cmp dword [ebp - 0x90], 2
jne 0x4183ad
cmp dword [ebp - 0x9c], 4
jne 0x418327
push str.winnt
jmp 0x4183e4
cmp dword [ebp - 0x9c], 6
jne 0x418374
cmp dword [ebp - 0x98], 0
jne 0x418353
cmp byte [ebp - 6], 1
jne 0x418349
push str.winvista
jmp 0x4183e4
push str.winlong
jmp 0x4183e4
cmp dword [ebp - 0x98], 1
jne 0x4183f0
cmp byte [ebp - 6], 1
jne 0x41836d
push str.win7
jmp 0x4183e4
push str.win2008R2
jmp 0x4183e4
cmp dword [ebp - 0x9c], 5
jne 0x4183e7
cmp dword [ebp - 0x98], 0
jne 0x41838d
push str.win2000
jmp 0x4183e4
cmp dword [ebp - 0x98], 1
jne 0x41839d
push str.winxp
jmp 0x4183e4
cmp dword [ebp - 0x98], 2
jne 0x4183f0
push str.win2003
jmp 0x4183e4
cmp dword [ebp - 0x90], 1
jne 0x4183e7
cmp dword [ebp - 0x9c], 4
jne 0x4183df
cmp dword [ebp - 0x98], 0xa
jne 0x4183cf
push str.win98
jmp 0x4183e4
cmp dword [ebp - 0x98], 0x5a
jne 0x4183df
push str.winme
jmp 0x4183e4
push str.win95
push edi
call esi
cmp dword [ebp - 0x9c], 0
jbe 0x418424
cmp dword [ebp - 0x98], 0
jbe 0x418424
push str.win32
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x418424
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
push str._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
movzx eax, word [ebp - 0xc]
mov dword [0x448048], eax
push str.Unknown
xor eax, eax
mov ebx, 0x448034
push ebx
mov word [ebp - 0xc4], ax
call esi
push 0x43ad38
call fcn.00401148
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x418470
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x418470
lea ecx, [ebp - 0xc4]
push ecx
call eax
jmp 0x41847d
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 4], 0
je 0x41848c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0xc4]
test eax, eax
je 0x4184c1
cmp eax, 6
je 0x4184ba
cmp eax, 9
je 0x4184b3
push eax
push 0x43ad74
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4184c9
push str.amd64
jmp 0x4184c6
push str.ia64
jmp 0x4184c6
push 0x43ad6c
push ebx
call esi
mov dword [0x448060], 1
pop esi
jmp 0x4184db
mov ebx, 0x448034
mov eax, dword [0x448048]
test eax, eax
je 0x4184f9
push eax
push edi
push str._s_sp_d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x41850b
push edi
push 0x43ad80
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x418523
push ebx
push 0x43ad84
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret