Function at 0x67802740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6797f1c8
push eax
mov dword fs:[0], esp
sub esp, 0x104
push esi
push edi
mov esi, ecx
call sym.MfcHlpr520.dll_private:_enum_MHPCurrentSystemTheme___thiscall_CMHPColorManager::_GetWinThemeWrapperTheme_void_
push 0
mov ecx, esi
mov dword [esi + 0x468], eax
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPColorManager::IsLowResolution_struct_HDC____
mov ecx, esi
mov edi, eax
call sym.MfcHlpr520.dll_private:_void___thiscall_CMHPColorManager::RefreshSysColors_void_
mov ecx, esi
call sym.MfcHlpr520.dll_private:_void___thiscall_CMHPColorManager::RefreshXPColors_void_
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPColorManager::RefreshLunaColors_void_
test edi, edi
je 0x678027ac
mov ecx, esi
call sym.MfcHlpr520.dll_private:_void___thiscall_CMHPColorManager::RefreshGradientColors_void_
pop edi
pop esi
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
add esp, 0x110
ret
push 0xf
mov ecx, esi
mov dword [esp + 0x10], 0
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
test eax, eax
jne 0x678027d1
push 0x12
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
cmp eax, 0xffffff
je 0x678027f6
push 0xf
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
cmp eax, 0xffffff
jne 0x67802876
push 0x12
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
test eax, eax
jne 0x67802876
push 0xd
mov ecx, esi
mov dword [esp + 0x10], 1
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push 0xd
mov ecx, esi
mov dword [esi + 0x1e8], eax
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push 0xe
mov ecx, esi
mov dword [esi + 0x1fc], eax
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push 0x12
mov ecx, esi
mov dword [esi + 0x220], eax
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push 0x12
mov ecx, esi
mov dword [esi + 0x1ec], eax
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push 0xd
mov ecx, esi
mov dword [esi + 0x200], eax
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push 0x12
mov ecx, esi
mov dword [esi + 0x234], eax
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push 0x12
mov ecx, esi
mov dword [esi + 0x218], eax
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
mov dword [esi + 0x204], eax
mov eax, 5
mov ecx, 0xd
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0xb4], eax
mov eax, 0x5a
push ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x10]
push ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], ecx
mov ebp, 0x1e
mov edx, 0x1f
mov edi, 0x21
mov ebx, 0x29
mov ecx, 0x10
mov dword [esp + 0x24], ebp
test eax, eax
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x30], 0xa5
mov dword [esp + 0x34], edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x50], 0x32
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x60], 0x8f
mov dword [esp + 0x64], 0x23
mov dword [esp + 0x68], 0x11
mov dword [esp + 0x70], 0x46
mov dword [esp + 0x74], 0x26
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], 0x4b
mov dword [esp + 0x84], 0x27
mov dword [esp + 0x88], ecx
mov dword [esp + 0x90], 0x46
mov dword [esp + 0x94], 0x2b
mov dword [esp + 0x98], 0x2e
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 0x14
mov dword [esp + 0xa4], 0x3d
mov dword [esp + 0xa8], 0x2e
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xb4], 0x28
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xc4], 0x2a
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xcc], ecx
jne 0x67802a3b
lea ebx, [esp + 0x2c]
mov dword [esp + 0x10], 0xb
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
push ecx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
mov edx, dword [ebx - 4]
push eax
push edx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::LightColor_unsigned_long_int__unsigned_long_int__int_const
mov ecx, dword [ebx - 8]
add ebx, 0x10
mov dword [esi + ecx*4 + 0x16c], eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x678029f7
mov ebx, 0x29
mov edx, 0x1f
mov ecx, 0x23
mov eax, 0x64
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], ecx
mov ecx, 0x25
mov dword [esp + 0x40], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], ecx
mov ecx, 0x26
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], ecx
mov ecx, 0x27
mov dword [esp + 0xa0], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], ecx
mov ecx, 0x2b
mov dword [esp + 0xb0], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x9c], ecx
mov ecx, 0x3d
mov eax, 0x28
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xac], ecx
mov ecx, 0x2d
mov dword [esp + 0xb4], eax
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xdc], ecx
mov ecx, 0x2e
mov dword [esp + 0xbc], eax
mov eax, 0x2c
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xec], ecx
mov ecx, 0x2f
mov dword [esp + 0xc4], eax
mov dword [esp + 0xcc], eax
push 0x420c0000
mov eax, 0xb4
mov dword [esp + 0xf8], ecx
mov dword [esp + 0x100], ecx
push 1
push ebp
mov ecx, esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0x32
mov dword [esp + 0x40], 0x20
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], 0xd
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], 0x50
mov dword [esp + 0x74], edi
mov dword [esp + 0x84], ebp
mov dword [esp + 0x8c], 0x55
mov dword [esp + 0x94], ebp
mov dword [esp + 0x9c], 0x32
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xcc], 0x50
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe4], edx
mov dword [esp + 0xec], eax
mov dword [esp + 0xf4], ebp
mov dword [esp + 0xfc], eax
mov dword [esp + 0x104], edi
mov dword [esp + 0x10c], eax
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
push 0xf
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPColorManager::LongColor_unsigned_long_int__unsigned_long_int__int__float_
test eax, eax
je 0x67802c28
push 0x420c0000
push ebp
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
push 0xf
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_private:_unsigned_long_int___thiscall_CMHPColorManager::AdjustColor_unsigned_long_int__unsigned_long_int__float_
mov dword [esi + 0x1e4], eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x18], 0xe
fild dword [edi + 4]
mov ebx, dword [edi]
mov ecx, esi
fstp dword [esp + 0x10]
mov edx, dword [esp + 0x10]
push edx
push 1
push ebx
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
mov eax, dword [edi - 4]
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPColorManager::LongColor_unsigned_long_int__unsigned_long_int__int__float_
test eax, eax
jne 0x67802c8f
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push ebx
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
mov eax, dword [edi - 4]
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_private:_unsigned_long_int___thiscall_CMHPColorManager::MixColor_unsigned_long_int__unsigned_long_int__float_
mov ecx, dword [edi - 8]
mov dword [esi + ecx*4 + 0x16c], eax
mov eax, dword [esp + 0x18]
add edi, 0x10
dec eax
mov dword [esp + 0x18], eax
jne 0x67802c34
push 0x43110000
push 1
push 0x23
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
push 0x29
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPColorManager::LongColor_unsigned_long_int__unsigned_long_int__int__float_
test eax, eax
je 0x67802ce9
push 0x43110000
push 0x23
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
push 0x29
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_private:_unsigned_long_int___thiscall_CMHPColorManager::AdjustColor_unsigned_long_int__unsigned_long_int__float_
mov dword [esi + 0x1f8], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x67802ea9
push ebp
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
shr eax, 0x10
and eax, 0xff
push 5
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x51eb851f
shl ecx, 1
imul ecx
sar edx, 5
mov eax, edx
mov ecx, esi
shr eax, 0x1f
add edx, eax
mov ebx, edx
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
shr eax, 0x10
and eax, 0xff
push 0xd
lea edi, [eax + eax*4]
mov eax, 0x51eb851f
shl edi, 3
imul edi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, esi
add bl, dl
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
shr eax, 0x10
and eax, 0xff
push ebp
mov ecx, esi
lea edi, [eax + eax*4]
mov eax, 0x51eb851f
shl edi, 1
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
add bl, dl
xor edx, edx
mov dh, bl
mov dword [esp + 0x1c], edx
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
xor ecx, ecx
push 5
mov cl, ah
and ecx, 0xff
mov eax, ecx
mov ecx, esi
lea eax, [eax + eax*4]
lea edi, [eax + eax*4]
mov eax, 0x51eb851f
shl edi, 1
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
xor ecx, ecx
mov cl, ah
and ecx, 0xff
mov eax, ecx
lea edi, [eax + eax*4]
mov eax, 0x51eb851f
shl edi, 3
imul edi
mov edi, edx
sar edi, 5
mov edx, edi
shr edx, 0x1f
add edi, edx
mov eax, edi
add bl, al
push 0xd
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
xor ecx, ecx
push ebp
mov cl, ah
and ecx, 0xff
mov eax, ecx
mov ecx, esi
lea edi, [eax + eax*4]
mov eax, 0x51eb851f
shl edi, 1
imul edi
mov edi, edx
sar edi, 5
mov edx, edi
shr edx, 0x1f
add edi, edx
mov edx, dword [esp + 0x1c]
mov eax, edi
add bl, al
mov dl, bl
shl edx, 8
mov dword [esp + 0x1c], edx
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
and eax, 0xff
push 5
lea eax, [eax + eax*4]
lea edi, [eax + eax*4]
mov eax, 0x51eb851f
shl edi, 1
imul edi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, esi
mov ebx, edx
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
and eax, 0xff
push 0xd
mov ecx, esi
lea edi, [eax + eax*4]
mov eax, 0x51eb851f
shl edi, 3
imul edi
mov edi, edx
sar edi, 5
mov edx, edi
shr edx, 0x1f
add edi, edx
mov eax, edi
add bl, al
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
and eax, 0xff
lea edi, [eax + eax*4]
mov eax, 0x51eb851f
shl edi, 1
imul edi
mov edi, edx
mov eax, dword [esp + 0x18]
sar edi, 5
mov ecx, edi
shr ecx, 0x1f
add edi, ecx
mov edx, edi
add bl, dl
and ebx, 0xff
or eax, ebx
mov dword [esi + 0x1fc], eax
push 0xf
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
xor ebx, ebx
mov edx, eax
mov edi, eax
mov bl, ah
shr edx, 0x10
and edi, 0xff
and ebx, 0xff
and edx, 0xff
mov dword [esp + 0x14], eax
cmp edi, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edx
mov eax, edi
jg 0x67802ee7
mov eax, ebx
cmp eax, edx
jle 0x67802ef3
cmp edi, ebx
jg 0x67802ef5
mov edi, ebx
jmp 0x67802ef5
mov edi, edx
test edi, edi
jne 0x67802f05
mov dword [esi + 0x22c], 0x232323
jmp 0x67802f4c
mov eax, 0xff
mov ecx, 0x23
sub eax, edi
cmp eax, 0x23
jg 0x67802f18
mov ecx, eax
add ecx, edi
mov eax, ecx
imul eax, edx
cdq
idiv edi
xor edx, edx
mov dh, al
mov eax, ecx
imul eax, ebx
mov ebx, edx
cdq
idiv edi
mov bl, al
mov eax, ecx
imul eax, dword [esp + 0x18]
cdq
idiv edi
shl ebx, 8
and eax, 0xff
or ebx, eax
mov dword [esi + 0x22c], ebx
push 0x10
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
and edx, 0xff
shr eax, 0x10
mov edi, edx
and eax, 0xff
mov edx, eax
cmp ecx, edi
mov dword [esp + 0x10], edi
mov eax, ecx
jg 0x67802f7f
mov eax, edi
cmp eax, edx
jle 0x67802f8b
cmp ecx, edi
jle 0x67802f8d
mov edi, ecx
jmp 0x67802f8d
mov edi, edx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x67802fa1
mov dword [esi + 0x230], 0x7f7f7f
jmp 0x67802ff2
test edi, edi
jne 0x67802fad
mov dword [esi + 0x230], edi
jmp 0x67802ff2
lea eax, [edi - 0x2b]
xor ebx, ebx
test eax, eax
setl bl
dec ebx
and ebx, eax
mov eax, ebx
mov dword [esp + 0x14], ebx
imul eax, edx
cdq
idiv edi
xor edx, edx
mov dh, al
mov eax, ebx
imul eax, dword [esp + 0x10]
mov ebx, edx
cdq
idiv edi
mov bl, al
mov eax, dword [esp + 0x14]
imul eax, ecx
cdq
idiv edi
shl ebx, 8
and eax, 0xff
or ebx, eax
mov dword [esi + 0x230], ebx
mov ebx, dword [esi + 0x1e8]
mov eax, ebx
mov dword [esp + 0x14], ebx
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x67995728]
call sub.MSVCRT.dll__ftol
xor ecx, ecx
xor edx, edx
mov cl, bh
mov dh, al
and ecx, 0xff
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov ebx, edx
fmul qword [0x67995728]
call sub.MSVCRT.dll__ftol
mov bl, al
mov eax, dword [esp + 0x14]
and eax, 0xff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
shl ebx, 8
fmul qword [0x67995728]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x18]
and eax, 0xff
or ebx, eax
lea eax, [edx + 0xf]
mov dword [esi + 0x1f4], ebx
cmp eax, 0xff
jl 0x6780307d
mov eax, 0xff
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 0xf]
cmp edx, 0xff
jl 0x67803091
mov edx, 0xff
mov ecx, dword [esp + 0x20]
add ecx, 0xf
cmp ecx, 0xff
jl 0x678030a5
mov ecx, 0xff
xor ebx, ebx
and eax, 0xff
mov bh, cl
push ebp
mov bl, dl
mov ecx, esi
shl ebx, 8
or ebx, eax
mov dword [esi + 0x1c4], ebx
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push 0x28
mov ecx, esi
mov dword [esi + 0x240], eax
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
mov edx, dword [esi + 0x20c]
mov ecx, esi
mov dword [esi + 0x254], eax
mov dword [esi + 0x25c], edx
call sym.MfcHlpr520.dll_private:_void___thiscall_CMHPColorManager::RefreshGradientColors_void_
push 1
lea ecx, [esp + 0x108]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPWinThemeWrapper::constructor_int_
push 0x67a72160
push 0
lea ecx, [esp + 0x10c]
mov dword [esp + 0x124], 0
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPWinThemeWrapper::OpenThemeData_struct_HWND_____unsigned_short_int_const__
lea ecx, [esp + 0x104]
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPWinThemeWrapper::IsAppThemed_void_const
pop ebp
pop ebx
test eax, eax
je 0x67803145
add esi, 0x250
lea ecx, [esp + 0xfc]
push esi
push 0xed9
push 0
push 0
call sym.MfcHlpr520.dll_public:_long_int___thiscall_CMHPWinThemeWrapper::GetThemeColor_int__int__int__unsigned_long_int__
lea ecx, [esp + 0xfc]
mov dword [esp + 0x114], 0xffffffff
call sym.MfcHlpr520.dll_public_virtual:_void___thiscall_CMHPWinThemeWrapper::destructor_void_
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x110
ret