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

Disassembly:
push 0xffffffffffffffff
push 0x10053720
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10080e78]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
xor edx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], vtable.CBrush.0
mov eax, dword [ecx + 8]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [0x10080eec]
and eax, 0xa000
mov dword [esp + 0x6c], edx
mov dword [esp + 0x50], ecx
je 0x10041658
sub dword [esp + 0x4c], 4
jmp 0x1004165f
sub ecx, 2
mov dword [esp + 0x50], ecx
mov edi, dword [esp + 0x78]
and edi, 4
mov dword [esp + 0x20], edi
je 0x1004168d
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBCaptionXP_void_
push eax
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBCaptionXP_void_
mov esi, dword [esp + 0x78]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call sub.mfc90.dll_Ordinal_2263
jmp 0x100419f7
cmp eax, edx
je 0x10041694
inc ecx
jmp 0x10041695
dec ecx
mov eax, dword [sym.GuiTk115d.dll_unsigned_long_int_GuiDrawLayer::m_Style]
mov dword [esp + 0x50], ecx
cmp eax, 0x8001
jne 0x100416ac
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBMenu_void_
jmp 0x100416b5
push eax
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorShadow_unsigned_long_int_
add esp, 4
mov esi, dword [esp + 0x74]
push eax
push eax
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call sub.mfc90.dll_Ordinal_2263
mov edx, dword [0x10080eec]
and edx, 0xa000
mov eax, dword [esp + 0x50]
je 0x100416dc
dec eax
jmp 0x100416dd
inc eax
cmp dword [sym.GuiTk115d.dll_unsigned_long_int_GuiDrawLayer::m_Style], 0x8002
mov dword [esp + 0x50], eax
jne 0x10041797
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x4c]
mov ebx, eax
sub eax, dword [esp + 0x48]
mov edi, ecx
sub ecx, ebp
push eax
push ecx
lea ecx, [esp + 0x5c]
test edx, edx
je 0x10041745
call fcn.1001d3d0
push 0x1e
mov byte [esp + 0x70], 1
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorTabs_void_
mov edx, dword [sym.GuiTk115d.dll_unsigned_long_int_GuiDrawLayer::m_Style]
push eax
push edx
push esi
lea ecx, [esp + 0x64]
call fcn.1001d410
mov eax, dword [esp + 0x38]
sub edi, ebp
sub ebx, eax
sub edi, 2
jmp 0x10041770
call fcn.1001d3d0
mov byte [esp + 0x6c], 2
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorTabs_void_
push eax
mov eax, dword [sym.GuiTk115d.dll_unsigned_long_int_GuiDrawLayer::m_Style]
push eax
push esi
lea ecx, [esp + 0x60]
call fcn.1001e1e0
mov eax, dword [esp + 0x38]
sub ebx, eax
sub ebx, 3
sub edi, ebp
push 0xcc0020
push ebx
push edi
push 0
push 0
inc eax
push eax
inc ebp
push ebp
push esi
lea ecx, [esp + 0x74]
call fcn.1001dca0
lea ecx, [esp + 0x54]
mov byte [esp + 0x6c], 0
call fcn.1001d3f0
mov ecx, dword [sym.GuiTk115d.dll_unsigned_long_int_GuiDrawLayer::m_Style]
push ecx
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorFace_unsigned_long_int_
add esp, 4
mov ebx, eax
push ebx
push 0
push 0
lea ecx, [esp + 0x38]
call sub.mfc90.dll_Ordinal_525
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
mov byte [esp + 0x70], 3
call sub.mfc90.dll_Ordinal_6078
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call sub.mfc90.dll_Ordinal_4527
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
mov ecx, esi
call sub.mfc90.dll_Ordinal_4396
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x58], ecx
mov ecx, ebp
sub ecx, edx
test dword [0x10080eec], 0xa000
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], edi
je 0x100418f7
dec eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0xf
mov dword [esp + 0x74], 3
add ebp, 3
xor edi, edi
mov edx, dword [esp + 0x58]
mov eax, dword [esi + 4]
push ebx
add edx, edi
push edx
push ebp
push eax
call dword [sym.imp.GDI32.dll_SetPixel]
inc edi
cmp edi, 4
jl 0x1004184c
mov ecx, dword [esp + 0x74]
mov edi, 4
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x78]
push ebx
push edx
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::DarkenColor_long_int__unsigned_long_int_
mov ecx, dword [esi + 4]
add esp, 8
push eax
mov eax, dword [esp + 0x5c]
add eax, edi
push eax
push ebp
push ecx
call dword [sym.imp.GDI32.dll_SetPixel]
mov edx, dword [esp + 0x74]
add dword [esp + 0x78], edx
inc edi
cmp edi, 8
jl 0x10041872
mov edi, 8
cmp dword [esp + 0x18], edi
jl 0x100418d8
lea esp, [esp]
mov eax, dword [esp + 0x14]
push ebx
push eax
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::DarkenColor_long_int__unsigned_long_int_
mov ecx, dword [esp + 0x60]
mov edx, dword [esi + 4]
add esp, 8
push eax
add ecx, edi
push ecx
push ebp
push edx
call dword [sym.imp.GDI32.dll_SetPixel]
inc edi
cmp edi, dword [esp + 0x18]
jle 0x100418b0
mov eax, dword [esp + 0x74]
add dword [esp + 0x14], 0xf
add eax, 3
dec ebp
cmp eax, 0xc
mov dword [esp + 0x74], eax
jle 0x1004184a
jmp 0x100419d1
mov ebx, dword [sym.imp.GDI32.dll_SetPixel]
add ecx, 0xfffffffe
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0xf
mov dword [esp + 0x74], 3
inc edi
xor ebp, ebp
mov eax, dword [esp + 0x54]
mov ecx, dword [esi + 4]
push edi
add eax, ebp
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetPixel]
mov edx, dword [esi + 4]
push eax
push edi
push ebp
push edx
call ebx
inc ebp
cmp ebp, 3
jle 0x10041917
mov eax, dword [esp + 0x74]
mov ebp, 4
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esi + 4]
push edi
add ecx, ebp
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
push eax
mov eax, dword [esp + 0x7c]
push eax
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::DarkenColor_long_int__unsigned_long_int_
mov ecx, dword [esi + 4]
add esp, 8
push eax
push edi
push ebp
push ecx
call ebx
mov edx, dword [esp + 0x74]
add dword [esp + 0x78], edx
inc ebp
cmp ebp, 7
jle 0x10041945
mov ebp, 8
cmp dword [esp + 0x18], ebp
jl 0x100419b7
mov eax, dword [esp + 0x54]
mov ecx, dword [esi + 4]
push edi
add eax, ebp
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetPixel]
mov edx, dword [esp + 0x14]
push eax
push edx
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::DarkenColor_long_int__unsigned_long_int_
add esp, 8
push eax
mov eax, dword [esi + 4]
push edi
push ebp
push eax
call ebx
inc ebp
cmp ebp, dword [esp + 0x18]
jle 0x10041987
mov eax, dword [esp + 0x74]
add dword [esp + 0x14], 0xf
add eax, 3
dec edi
cmp eax, 9
mov dword [esp + 0x74], eax
jle 0x10041915
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call sub.mfc90.dll_Ordinal_6078
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 0
mov dword [esp + 0x2c], vtable.CPen.0
call fcn.10001760
mov edi, dword [esp + 0x20]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
test di, di
je 0x10041a35
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBFondoXP_void_
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x28]
call sub.mfc90.dll_Ordinal_1358
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 4]
push eax
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x24]
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x24], vtable.CBrush.0
call fcn.10001760
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8