Function at 0x54f2e0
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x344
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x340], eax
mov eax, dword [esp + 0x354]
push ebx
mov ebx, dword [esp + 0x34c]
push ebp
mov ebp, dword [esp + 0x354]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x30]
push ecx
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x68], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
lea edx, [esp + 0x74]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
push edx
push ebx
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
lea ecx, [esp + 0x44]
push ecx
xor esi, esi
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x48]
sub edx, dword [esp + 0x78]
push str.CompositedWindow::Window
push esi
mov dword [esp + 0x44], edx
call dword [0x75b7bc]
mov dword [esp + 0x2c], eax
cmp eax, esi
je 0x54f92a
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x54f91f
mov edx, dword [esp + 0x80]
sub edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
xor eax, eax
push 0
push 0
mov dword [esp + 0x60], edx
neg edx
push 0
mov dword [esp + 0x98], eax
mov dword [esp + 0x98], edx
push 0
mov dword [esp + 0x98], eax
mov dword [esp + 0xa0], eax
lea edx, [esp + 0x94]
mov dword [esp + 0xa4], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0x98], ecx
push edx
mov eax, 1
mov ecx, 0x20
push ebp
mov dword [esp + 0x9c], 0x28
mov word [esp + 0xa8], ax
mov word [esp + 0xaa], cx
mov dword [esp + 0xac], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x50], eax
test eax, eax
je 0x54f918
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x3c
mov dword [esp + 0x60], eax
lea eax, [esp + 0xc8]
push 0
push eax
mov dword [esp + 0xcc], 0x40
call fcn.0061d9e0
add esp, 0xc
cmp byte [0x75ab05], 0
mov dword [esp + 0xc4], 0x2801
mov dword [esp + 0xf4], 0xf
je 0x54f4c4
mov ecx, dword [0x75aad4]
mov dword [esp + 0xc8], ecx
jmp 0x54f612
cmp dword [0x75abb0], 0
mov dword [esp + 0x1c], 1
je 0x54f5ea
lea edx, [esp + 0x18]
push edx
push 0x101
push 0
push str.SoftwareMicrosoftWindowsDWM
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x54f5ea
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push str.ColorPrevalence
push edx
mov dword [esp + 0x2c], 4
call ebp
test eax, eax
jne 0x54f5d7
cmp dword [esp + 0x10], 1
jne 0x54f5d7
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, ebx
jne 0x54f551
cmp byte [edi + 5], 0
mov eax, str.AccentColor
jne 0x54f556
mov eax, 0x6a7c70
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x2c], 4
call ebp
test eax, eax
jne 0x54f5d7
mov eax, dword [esp + 0x10]
mov ecx, eax
shr ecx, 8
movzx edx, cl
mov ecx, eax
imul edx, edx, 0x24b
shr ecx, 0x10
movzx ecx, cl
movzx eax, al
imul ecx, ecx, 0x72
imul eax, eax, 0x12b
add edx, ecx
add edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc8], 0
fild dword [esp + 0x1c]
fdiv qword [0x684830]
fcomp qword [0x6a7c68]
fnstsw ax
test ah, 0x41
je 0x54f5d3
mov dword [esp + 0xc8], 0xffffff
xor ebp, ebp
jmp 0x54f5db
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x54f612
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, ebx
jne 0x54f5ff
cmp byte [edi + 5], 0
mov eax, 9
jne 0x54f604
mov eax, 0x13
push eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x100]
push edx
push 0x321
xor ebx, ebx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [0x75b7c8]
test eax, eax
jl 0x54f6b1
push 0x1f4
lea ecx, [esp + 0x160]
push ebx
push ecx
call fcn.0061d9e0
add esp, 0xc
push ebx
lea edx, [esp + 0x160]
push edx
push 0x1f4
push 0x29
mov dword [esp + 0x16c], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x54f68f
mov eax, dword [esp + 0x174]
mov ecx, dword [esp + 0x184]
mov dword [esp + 0x100], eax
mov dword [esp + 0x110], ecx
lea edx, [esp + 0x100]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x54f6b1
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
cmp ebp, 1
jge 0x54f6c9
mov ebp, 1
mov ebx, dword [edi + 0xc]
push esi
call fcn.005fa630
mov ecx, dword [eax + 4]
push 3
push 0
push 0
push ebp
push 8
push 0
push ebx
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_DrawStateA]
mov ecx, edi
call fcn.0054ea10
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov ebx, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0xb0], eax
add eax, 0x1d
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x38]
mov eax, ebx
sub eax, ecx
lea ecx, [edx + eax*4 - 0x19]
lea edx, [esp + 0xc0]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0xb4]
push eax
push 0x40024
push 0xffffffffffffffff
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x70]
push ecx
push 0
push 0
push esi
push edx
mov dword [esp + 0xe0], ebp
call dword [0x75b7cc]
cmp dword [edi + 0x10], 0
je 0x54f79e
cmp dword [edi + 0x14], 0
je 0x54f79e
cmp dword [edi + 0x18], 0
je 0x54f79e
cmp dword [edi + 0x1c], 0
je 0x54f79e
mov eax, dword [edi + 0x70]
sub eax, dword [edi + 0x68]
cmp eax, dword [edi + 0x40]
jne 0x54f79e
mov ecx, dword [edi + 0x74]
sub ecx, dword [edi + 0x6c]
cmp ecx, dword [edi + 0x44]
je 0x54f7aa
mov edx, dword [esp + 0x20]
push edx
mov ecx, edi
call fcn.0054eef0
cmp dword [esp + 0x360], 0
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x4c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
je 0x54f7c7
mov edx, dword [edi + 0x1c]
jmp 0x54f7d0
cmp byte [edi + 4], 0
je 0x54f7eb
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
sub ebx, dword [edi + 0x58]
dec dword [esp + 0x68]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jmp 0x54f80d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [esp + 0x28]
jne 0x54f806
cmp byte [edi + 5], 0
je 0x54f806
mov edx, dword [edi + 0x10]
mov dword [esp + 0x10], edx
jmp 0x54f80d
mov eax, dword [edi + 0x14]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
je 0x54f863
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
push 0xcc0020
push 0
push 0
push edi
push edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
push eax
push ecx
push ebx
push esi
call ebp
mov edx, dword [esp + 0x28]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
push 0xcc0020
push 0
push 0
push esi
push eax
push ecx
push 0
push 0
push edx
call ebp
mov edi, dword [esp + 0x44]
sub edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x20]
push 0xcc0020
push 0
push 0
push esi
push ebx
push edi
push 0
push 0
push eax
call ebp
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
push 0xcc0020
push 0
lea eax, [edi + ecx]
push eax
push esi
push ebx
sub edx, edi
mov edi, dword [esp + 0x34]
sub edx, ecx
push edx
push 0
push eax
push edi
call ebp
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
push 0xcc0020
add eax, ecx
push eax
push 0
push esi
sub ebx, eax
push ebx
push edx
push eax
push 0
push edi
call ebp
mov eax, dword [esp + 0x5c]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call edi
mov ebx, dword [esp + 0x24]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
je 0x54f911
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call edi
push ebx
call ebp
mov edx, dword [esp + 0x50]
push edx
call ebp
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x2c]
push eax
call dword [0x75b7c0]
mov ecx, dword [esp + 0x350]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0061d2ff
add esp, 0x344
ret 0x10