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

Disassembly:
sub esp, 0x344
mov eax, dword [0x74f8a0]
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 [0x7557c4]
mov dword [esp + 0x2c], eax
cmp eax, esi
je 0x54ad7a
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x54ad6f
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 0x54ad68
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.00618760
add esp, 0xc
cmp byte [0x754b1d], 0
mov dword [esp + 0xc4], 0x2801
mov dword [esp + 0xf4], 0xf
je 0x54a914
mov ecx, dword [0x754aec]
mov dword [esp + 0xc8], ecx
jmp 0x54aa62
cmp dword [0x754bc8], 0
mov dword [esp + 0x1c], 1
je 0x54aa3a
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 0x54aa3a
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 0x54aa27
cmp dword [esp + 0x10], 1
jne 0x54aa27
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, ebx
jne 0x54a9a1
cmp byte [edi + 5], 0
mov eax, str.AccentColor
jne 0x54a9a6
mov eax, 0x6a1ba8
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 0x54aa27
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 [0x67e780]
fcomp qword [0x6a1ba0]
fnstsw ax
test ah, 0x41
je 0x54aa23
mov dword [esp + 0xc8], 0xffffff
xor ebp, ebp
jmp 0x54aa2b
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x54aa62
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, ebx
jne 0x54aa4f
cmp byte [edi + 5], 0
mov eax, 9
jne 0x54aa54
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 [0x7557d0]
test eax, eax
jl 0x54ab01
push 0x1f4
lea ecx, [esp + 0x160]
push ebx
push ecx
call fcn.00618760
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 0x54aadf
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 0x54ab01
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 0x54ab19
mov ebp, 1
mov ebx, dword [edi + 0xc]
push esi
call fcn.005f542a
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.00549e60
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 [0x7557d4]
cmp dword [edi + 0x10], 0
je 0x54abee
cmp dword [edi + 0x14], 0
je 0x54abee
cmp dword [edi + 0x18], 0
je 0x54abee
cmp dword [edi + 0x1c], 0
je 0x54abee
mov eax, dword [edi + 0x70]
sub eax, dword [edi + 0x68]
cmp eax, dword [edi + 0x40]
jne 0x54abee
mov ecx, dword [edi + 0x74]
sub ecx, dword [edi + 0x6c]
cmp ecx, dword [edi + 0x44]
je 0x54abfa
mov edx, dword [esp + 0x20]
push edx
mov ecx, edi
call fcn.0054a340
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 0x54ac17
mov edx, dword [edi + 0x1c]
jmp 0x54ac20
cmp byte [edi + 4], 0
je 0x54ac3b
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 0x54ac5d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [esp + 0x28]
jne 0x54ac56
cmp byte [edi + 5], 0
je 0x54ac56
mov edx, dword [edi + 0x10]
mov dword [esp + 0x10], edx
jmp 0x54ac5d
mov eax, dword [edi + 0x14]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
je 0x54acb3
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 0x54ad61
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 [0x7557c8]
mov ecx, dword [esp + 0x350]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0061807e
add esp, 0x344
ret 0x10