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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
lea eax, [ebp - 0x3c]
push eax
mov edi, ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x158], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4222c2
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
sub eax, 4
je 0x42222f
dec eax
je 0x4221a2
dec eax
je 0x422124
mov dword [esi], 0
push str.Windows_UnKnow
jmp 0x42227d
mov eax, dword [ebp - 0x150]
mov dword [esi], 3
lea ecx, [ebp - 0x18]
sub eax, 0
je 0x422188
dec eax
je 0x422163
dec eax
je 0x42214e
mov dword [esi], 0
push str.Windows_unknow
jmp 0x422280
push str.Windows_8
call fcn.00404230
mov dword [esi], 5
jmp 0x422285
cmp byte [ebp - 0x3e], 1
jne 0x42217e
push str.Windows_7
call fcn.00404230
mov dword [esi], 4
jmp 0x422285
push str.Windows_Server_2008_R2
jmp 0x422280
cmp byte [ebp - 0x3e], 1
jne 0x422198
push str.Windows_Vista
jmp 0x422280
push str.Windows_Server_2008
jmp 0x422280
mov eax, dword [ebp - 0x150]
sub eax, 0
je 0x42221a
dec eax
je 0x422213
dec eax
je 0x4221cb
push str.Windows_unknow
lea ecx, [ebp - 0x18]
call fcn.00404230
mov dword [esi], 0
jmp 0x422285
cmp byte [ebp - 0x3e], 1
jne 0x4221e2
cmp word [ebp - 0x3c], 9
jne 0x4221e2
push str.Windows_XP_Professional_x64_Edition
jmp 0x42227d
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x4221fa
push str.Windows_Server_2003
jmp 0x42227d
push 0x59
call esi
lea ecx, [ebp - 0x18]
test eax, eax
je 0x42220c
push str.Windows_Server_2003_R2
jmp 0x422280
push str.Windows_Server
jmp 0x422280
push str.Windows_XP
jmp 0x42227d
push str.Windows_2000
lea ecx, [ebp - 0x18]
call fcn.00404230
mov dword [esi], 2
jmp 0x422285
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x422261
cmp eax, 0xa
je 0x42225a
lea ecx, [ebp - 0x18]
cmp eax, 0x5a
je 0x422253
mov dword [esi], 0
push str.Windows_UnKnow
jmp 0x422280
push str.Windows_Me
jmp 0x422280
push str.Windows_98
jmp 0x42227d
mov eax, dword [ebp - 0x148]
cmp eax, 2
jne 0x422273
push str.Windows_NT_4.0
jmp 0x42227d
cmp eax, 1
jne 0x422285
push str.Windows_95
lea ecx, [ebp - 0x18]
call fcn.00404230
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00403fa0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4222a0
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x422314
push eax
call fcn.004547da
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
mov dword [esi], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0xe
mov ecx, edi
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.004045c0
push 0xe
push str.Windows_UnKnow
push eax
push dword [edi]
call fcn.00454b08
mov eax, dword [edi]
add esp, 0x10
xor ecx, ecx
mov word [eax + 0x1c], cx
mov dword [edi + 4], 0xe
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00452ca6
mov esp, ebp
pop ebp
ret