Function at 0x41bd90
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x100
mov eax, dword [0x4b9668]
xor eax, esp
mov dword [esp + 0xfc], eax
push ebp
mov ebp, dword [esp + 0x108]
push esi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x38], 0x24a
mov ecx, dword [esp + 0x34]
lea edi, [ebp + 0x4c]
mov dword [ebp + 0x3c], ecx
mov dword [edi], 0
jne 0x41bfdd
xor eax, eax
push ebx
push 0x32
push eax
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call fcn.0043cd70
add esp, 0xc
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
cpuid
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41be37
sub eax, edx
push eax
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
call fcn.004072f0
mov eax, 1
cmp dword [esp + 0x10], eax
jb 0x41bea9
lea esi, [ebp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cpuid
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
test esi, esi
je 0x41be81
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
test edi, edi
je 0x41be8b
mov edx, dword [esp + 0x14]
mov dword [edi], edx
mov eax, dword [esi]
mov edx, eax
mov ecx, eax
shr edx, 4
and ecx, 0xf
and edx, 0xf
shr eax, 8
and eax, 0xf
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x44], edx
mov dword [ebp + 0x48], eax
mov esi, SysReAllocString
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x20]
cpuid
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
cmp dword [esp + 0x10], esi
pop ebx
jb 0x41bf9c
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edi, [esp + 0x60]
lea esi, [esp + 0x5c]
mov eax, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041bd30
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x78]
push eax
lea edi, [esp + 0x78]
lea esi, [esp + 0x74]
mov eax, reloc.DSOUND.dll_DirectSoundEnumerateW
call fcn.0041bd30
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x90]
push edx
lea edi, [esp + 0x90]
lea esi, [esp + 0x8c]
mov eax, reloc.OLEAUT32.dll_SysReAllocStringLen
call fcn.0041bd30
lea eax, [esp + 0x6c]
add esp, 0x18
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41bf40
sub eax, edx
push eax
lea eax, [esp + 0x58]
lea edi, [ebp + 0x20]
push eax
mov ecx, edi
call fcn.004072f0
cmp dword [ebp + 0x34], 0
jbe 0x41c050
mov esi, 0x10
lea ebx, [ebx]
cmp dword [edi + 0x18], esi
jb 0x41bf7a
mov eax, dword [edi + 4]
jmp 0x41bf7d
lea eax, [edi + 4]
cmp byte [eax], 0x20
jne 0x41c050
push 1
push 0
mov ecx, edi
call fcn.00406e20
cmp dword [ebp + 0x34], 0
ja 0x41bf70
jmp 0x41c050
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x44]
mov eax, dword [ebp + 0x48]
push ecx
push edx
push eax
lea ecx, [esp + 0x94]
push str.x86_Family__d_Model__d_Stepping__d
push ecx
call fcn.0043c15e
lea eax, [esp + 0x9c]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41bfc7
sub eax, edx
push eax
lea edx, [esp + 0x8c]
push edx
jmp 0x41c046
push 7
push str.unknown
mov ecx, ebp
call fcn.004072f0
mov eax, dword [esp + 0x38]
cmp eax, 0xfa0
ja 0x41c02f
je 0x41c026
sub eax, 0x182
je 0x41c015
sub eax, 0x64
jne 0x41c036
lea edi, [ebp + 0x20]
push 0x4ac788
mov ecx, edi
call fcn.0040c9c0
jmp 0x41c050
lea edi, [ebp + 0x20]
push 0x4ac784
mov ecx, edi
call fcn.0040c9c0
jmp 0x41c050
push 5
push str.R4000
jmp 0x41c046
cmp eax, 0x5248
je 0x41c03f
push 7
push str.unknown
jmp 0x41c046
push 0xa
push str.ALPHA21064
lea edi, [ebp + 0x20]
mov ecx, edi
call fcn.004072f0
push 2
push 0x4ac7a0
push edi
xor eax, eax
call fcn.00414e90
cmp eax, 0xffffffff
je 0x41c086
push 1
push 0x4ac7a4
push 2
call fcn.00414cb0
push 2
push 0x4ac7a0
push edi
xor eax, eax
call fcn.00414e90
cmp eax, 0xffffffff
jne 0x41c064
mov ecx, dword [esp + 0x108]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043a54e
add esp, 0x100
ret 4