Function at 0x508a40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
push edi
test esi, esi
je 0x508aaf
lea eax, [ebp - 0x78]
push eax
call sym.SystemInformer.exe_PhQuerySystemTime
mov eax, dword [ebp - 0x78]
mov edx, eax
mov edi, dword [ebp - 0x64]
sub edx, dword [esi]
mov ecx, dword [ebp - 0x74]
mov esi, ecx
sbb esi, dword [edi + 4]
jmp 0x508aff
mov eax, dword [0x632b70]
or eax, dword [0x632b74]
jne 0x508ae0
push eax
push 0x30
lea eax, [ebp - 0x58]
push eax
push 3
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x508ae0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov dword [0x632b70], eax
mov dword [0x632b74], ecx
lea eax, [ebp - 0x78]
push eax
call sym.SystemInformer.exe_PhQuerySystemTime
mov eax, dword [ebp - 0x78]
mov edx, eax
sub edx, dword [0x632b70]
mov ecx, dword [ebp - 0x74]
mov esi, ecx
sbb esi, dword [0x632b74]
mov edi, dword [ebp - 0x7c]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], edx
sub eax, dword [edi]
mov dword [ebp - 0x78], eax
sbb ecx, dword [edi + 4]
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x74], ecx
cmp ecx, esi
jl 0x508b29
jg 0x508b24
lea esp, [esp]
cmp eax, edx
jbe 0x508b29
mov ebx, 1
fild qword [ebp - 0x78]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x6c]
fild qword [ebp - 0x68]
fstp dword [ebp - 0x6c]
fdiv dword [ebp - 0x6c]
fld qword [0x61a4c8]
fmul st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x64]
fld dword [ebp - 0x64]
fcompi st(1)
fstp st(0)
jbe 0x508b5a
mov dword [ebp - 0x64], 0x42c80000
jmp 0x508b6f
movss xmm0, dword [0x61a458]
comiss xmm0, dword [ebp - 0x64]
jbe 0x508b6f
mov dword [ebp - 0x64], 0
mov esi, dword [ebp - 0x5c]
and esi, 2
je 0x508b7f
push dword [0x631050]
jmp 0x508b88
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]
inc dword [ebp - 0x24]
inc dword [ebp - 0x20]
dec dword [ebp - 0x1c]
test esi, esi
je 0x508bcc
push dword [0x631050]
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
test ebx, ebx
je 0x508bc5
push 0x808080
jmp 0x508bef
push 0x878200
jmp 0x508bef
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]
test ebx, ebx
jne 0x508bbe
push 0x9eca9e
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]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
fstp dword [ebp - 0x5c]
fld dword [ebp - 0x5c]
fld dword [ebp - 0x64]
fdiv qword [0x61a4c8]
fmulp st(1)
fild dword [ebp - 0xc]
fstp dword [ebp - 0x5c]
fadd dword [ebp - 0x5c]
call fcn.0059cd90
mov ecx, dword [ebp - 0x10]
mov edx, eax
cmp edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
cmovl edx, dword [ebp - 0x24]
sub eax, ecx
push 0xf00021
push eax
mov eax, dword [ebp - 0xc]
sub eax, edx
mov dword [ebp - 0x14], edx
push eax
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_PatBlt]
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 [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 0x18