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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb70
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x4722a0
call fcn.00404440
lea eax, [ebp - 0xb48]
mov dword [ebp - 0xb48], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x435389
cmp dword [ebp - 0xb38], 2
jne 0x435389
cmp dword [ebp - 0xb44], 5
jb 0x435389
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xorps xmm0, xmm0
push str.GetNativeSystemInfo
push str.kernel32.dll
movdqu xmmword [ebp - 0xb70], xmm0
mov dword [ebp - 0xb50], 0
movdqu xmmword [ebp - 0xb60], xmm0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435128
lea ecx, [ebp - 0xb70]
push ecx
call eax
jmp 0x435135
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push str.GetProductInfo
push str.kernel32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.base
mov ecx, edi
mov ebx, eax
call fcn.004110c0
test ebx, ebx
je 0x4351b6
movzx ecx, word [ebp - 0xa32]
lea eax, [ebp - 0xb4c]
push eax
movzx eax, word [ebp - 0xa34]
push ecx
push eax
push dword [ebp - 0xb40]
push dword [ebp - 0xb44]
call ebx
mov ax, word [ebp - 0xa34]
test ax, ax
je 0x4351b6
movzx eax, ax
push eax
push str.sp_d
lea eax, [ebp - 0xa2c]
push 0x514
push eax
call fcn.00405000
add esp, 0x10
lea eax, [ebp - 0xa2c]
mov ecx, edi
push eax
call fcn.004110c0
mov eax, dword [ebp - 0xb44]
pop ebx
cmp eax, 6
jne 0x435281
mov eax, dword [ebp - 0xb40]
test eax, eax
jne 0x435213
cmp byte [ebp - 0xa2e], 1
mov ecx, esi
jne 0x4351f7
push str.vista
call fcn.004110c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.win2008
call fcn.004110c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x43525a
mov ecx, esi
cmp byte [ebp - 0xa2e], al
jne 0x43523e
push str.win7
call fcn.004110c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.win2008r2
call fcn.004110c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x435377
push str.win8
mov ecx, esi
call fcn.004110c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x435377
mov eax, dword [ebp - 0xb40]
cmp eax, 2
jne 0x435362
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4352c3
push str.windows2003r2
mov ecx, esi
call fcn.004110c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xa30]
test eax, 0x2000
je 0x4352ee
push str.windows2003storage
mov ecx, esi
call fcn.004110c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
test eax, 0x8000
je 0x435313
push str.windowshomeserver
mov ecx, esi
call fcn.004110c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xa2e], 1
jne 0x435344
cmp word [ebp - 0xb70], 9
jne 0x435344
push 0x468c5c
mov ecx, esi
call fcn.004110c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.win2003
mov ecx, esi
call fcn.004110c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x435326
test eax, eax
jne 0x435377
push str.win2000
mov ecx, esi
call fcn.004110c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00438e07
mov esp, ebp
pop ebp
ret