Function at 0x50a9c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x62d040]
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 0x50aa2f
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 0x50aa7f
mov eax, dword [0x635c60]
or eax, dword [0x635c64]
jne 0x50aa60
push eax
push 0x30
lea eax, [ebp - 0x58]
push eax
push 3
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x50aa60
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov dword [0x635c60], eax
mov dword [0x635c64], ecx
lea eax, [ebp - 0x78]
push eax
call sym.SystemInformer.exe_PhQuerySystemTime
mov eax, dword [ebp - 0x78]
mov edx, eax
sub edx, dword [0x635c60]
mov ecx, dword [ebp - 0x74]
mov esi, ecx
sbb esi, dword [0x635c64]
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 0x50aaa9
jg 0x50aaa4
lea esp, [esp]
cmp eax, edx
jbe 0x50aaa9
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 [0x61c8e0]
fmul st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x64]
fld dword [ebp - 0x64]
fcompi st(1)
fstp st(0)
jbe 0x50aada
mov dword [ebp - 0x64], 0x42c80000
jmp 0x50aaef
movss xmm0, dword [0x61c878]
comiss xmm0, dword [ebp - 0x64]
jbe 0x50aaef
mov dword [ebp - 0x64], 0
mov esi, dword [ebp - 0x5c]
and esi, 2
je 0x50aaff
push dword [0x6340cc]
jmp 0x50ab08
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 0x50ab4c
push dword [0x6340cc]
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
test ebx, ebx
je 0x50ab45
push 0x808080
jmp 0x50ab6f
push 0x878200
jmp 0x50ab6f
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 0x50ab3e
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 [0x61c8e0]
fmulp st(1)
fild dword [ebp - 0xc]
fstp dword [ebp - 0x5c]
fadd dword [ebp - 0x5c]
call fcn.0059f460
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.0057e94f
mov esp, ebp
pop ebp
ret 0x18