Function at 0x50ae40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x62e040]
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 0x50aeaf
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 0x50aeff
mov eax, dword [0x636ba0]
or eax, dword [0x636ba4]
jne 0x50aee0
push eax
push 0x30
lea eax, [ebp - 0x58]
push eax
push 3
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x50aee0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov dword [0x636ba0], eax
mov dword [0x636ba4], ecx
lea eax, [ebp - 0x78]
push eax
call sym.SystemInformer.exe_PhQuerySystemTime
mov eax, dword [ebp - 0x78]
mov edx, eax
sub edx, dword [0x636ba0]
mov ecx, dword [ebp - 0x74]
mov esi, ecx
sbb esi, dword [0x636ba4]
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 0x50af29
jg 0x50af24
lea esp, [esp]
cmp eax, edx
jbe 0x50af29
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 [0x61dae0]
fmul st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x64]
fld dword [ebp - 0x64]
fcompi st(1)
fstp st(0)
jbe 0x50af5a
mov dword [ebp - 0x64], 0x42c80000
jmp 0x50af6f
movss xmm0, dword [0x61da78]
comiss xmm0, dword [ebp - 0x64]
jbe 0x50af6f
mov dword [ebp - 0x64], 0
mov esi, dword [ebp - 0x5c]
and esi, 2
je 0x50af7f
push dword [0x635060]
jmp 0x50af88
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 0x50afcc
push dword [0x635060]
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
test ebx, ebx
je 0x50afc5
push 0x808080
jmp 0x50afef
push 0x878200
jmp 0x50afef
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 0x50afbe
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 [0x61dae0]
fmulp st(1)
fild dword [ebp - 0xc]
fstp dword [ebp - 0x5c]
fadd dword [ebp - 0x5c]
call fcn.005a0970
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.005802ef
mov esp, ebp
pop ebp
ret 0x18