// write access to const memory has been detected, the output may be wrong!
ULONG __stdcall sub_6C0C54BC(PVOID Parameter)
{
HMODULE v1; // eax
BOOL (__stdcall *ProcAddress)(HDC, int, int, HICON); // eax
BOOL v3; // esi
BOOL IsIconic; // ebx
HWND ForegroundWindow; // ebx
int v7; //...