Function at 0x4cf820
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x5c7004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x64], eax
mov ebx, edx
cmp dword [ebp - 0x64], 0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
je 0x4cf89c
mov ecx, 0x7ffe0018
mov eax, 0x7ffe0014
mov ebx, 0x7ffe001c
mov edx, dword [ecx]
mov esi, dword [eax]
cmp edx, dword [ebx]
jne 0x4cf880
mov eax, dword [ebp - 0x64]
mov ecx, esi
mov edi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x5c]
sub ecx, dword [eax]
mov eax, edx
sbb eax, dword [edi + 4]
jmp 0x4cf8fa
mov eax, dword [0x5cf068]
or eax, dword [0x5cf06c]
jne 0x4cf8d3
push eax
push 0x30
lea eax, [ebp - 0x58]
push eax
push 3
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x4cf8d3
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
sbb ecx, dword [ebp - 0x34]
mov dword [0x5cf068], eax
mov dword [0x5cf06c], ecx
mov eax, 0x7ffe0018
mov ecx, 0x7ffe0014
mov edi, 0x7ffe001c
mov edx, dword [eax]
mov esi, dword [ecx]
cmp edx, dword [edi]
jne 0x4cf8e2
mov ecx, esi
mov eax, edx
sub ecx, dword [0x5cf068]
sbb eax, dword [0x5cf06c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], ecx
mov edi, dword [ebp - 0x74]
sub esi, dword [eax]
mov dword [ebp - 0x70], esi
sbb edx, dword [eax + 4]
mov dword [ebp - 0x6c], edx
fild qword [ebp - 0x70]
fstp dword [ebp - 0x5c]
fld dword [ebp - 0x5c]
fild qword [ebp - 0x68]
fstp dword [ebp - 0x5c]
fdiv dword [ebp - 0x5c]
fmul qword [0x5b96c0]
fstp dword [ebp - 0x64]
test bl, 2
je 0x4cf991
push dword [0x5cd500]
lea eax, ds:[ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
push dword [0x5cd500]
inc dword ds:[ebp - 0x14]
lea eax, [ebp - 0x14]
inc dword [ebp - 0x10]
dec dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
fld dword [ebp - 0x64]
and ebx, 1
je 0x4cf98a
fld qword [0x5b96c0]
mov eax, 0x808080
fxch st(1)
fcompi st(1)
fstp st(0)
ja 0x4cf987
mov eax, 0x878200
push eax
jmp 0x4cf9f1
push 0x878200
jmp 0x4cf9ef
push 5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
inc dword [ebp - 0x14]
inc dword [ebp - 0x10]
dec dword [ebp - 0xc]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
fld dword [ebp - 0x64]
and ebx, 1
je 0x4cf9ea
fld qword [0x5b96c0]
mov eax, 0x808080
fxch st(1)
fcompi st(1)
fstp st(0)
ja 0x4cf9e7
mov eax, 0x9eca9e
push eax
jmp 0x4cf9f1
push 0x9eca9e
fstp st(0)
push edi
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
push 0x12
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
fld qword [0x5b96c0]
mov esi, eax
fld dword [ebp - 0x64]
fcomi st(1)
jbe 0x4cfa29
fstp st(0)
mov dword [ebp - 0x64], 0x42c80000
fld dword [ebp - 0x64]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
fstp dword [ebp - 0x5c]
fmul dword [ebp - 0x5c]
fdivrp st(1)
fild dword [ebp - 0xc]
fstp dword [ebp - 0x5c]
fadd dword [ebp - 0x5c]
call fcn.00555460
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub ecx, edx
push 0xf00021
push ecx
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0x14], eax
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_PatBlt]
test esi, esi
je 0x4cfa77
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
inc dword [ebp - 0x24]
inc dword [ebp - 0x20]
dec dword [ebp - 0x1c]
push 2
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_FrameRect]
mov ecx, dword ds:[ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0x18