Function at 0x10028000
Capabilities:
Check for peb beingdebugged flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10051c42
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
mov edi, ecx
mov eax, dword [esp + 0x78]
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
dec dword [esp + 0x34]
mov eax, 2
add dword [esp + 0x3c], eax
add dword [esp + 0x40], eax
push 0x33
mov dword [esp + 0x3c], 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], vtable.CBrush.0
push 0x8001
mov dword [esp + 0x70], eax
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorShadow_unsigned_long_int_
add esp, 4
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x28]
call sub.mfc90.dll_Ordinal_1358
mov edx, dword [sym.GuiTk115d.dll_unsigned_long_int_GuiDrawLayer::m_Style]
push edx
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorFace_unsigned_long_int_
add esp, 4
push eax
mov eax, dword [sym.GuiTk115d.dll_unsigned_long_int_GuiDrawLayer::m_Style]
push eax
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorFace_unsigned_long_int_
mov esi, dword [esp + 0x7c]
add esp, 4
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call sub.mfc90.dll_Ordinal_2263
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x40]
dec edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov edx, dword [sym.GuiTk115d.dll_unsigned_long_int_GuiDrawLayer::m_Style]
lea ecx, [ebx + ecx + 1]
add eax, 2
dec ebp
push edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], ebp
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorFace_unsigned_long_int_
add esp, 4
push eax
mov eax, dword [sym.GuiTk115d.dll_unsigned_long_int_GuiDrawLayer::m_Style]
push eax
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorFace_unsigned_long_int_
add esp, 4
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call sub.mfc90.dll_Ordinal_2263
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
lea ecx, [esp + 0x78]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea eax, [esp + 0x78]
push eax
mov ecx, edi
mov byte [esp + 0x70], 1
call sub.mfc90.dll_Ordinal_4116
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.CFont.0
push str.Verdana
push 0x22
push 1
push 2
push 1
push 0
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push 0xfffffffffffffff5
mov byte [esp + 0xa4], 2
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x20]
call sub.mfc90.dll_Ordinal_1358
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call edx
push 1
mov ecx, esi
mov dword [esp + 0x1c], eax
call sub.mfc90.dll_Ordinal_6170
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
cmp eax, 1
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov ebp, eax
jle 0x10028269
lea ecx, [ecx]
mov edx, ecx
sub edx, dword [esp + 0x34]
test edx, edx
jle 0x10028269
mov eax, dword [esp + 0x78]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x3c]
mov edx, ecx
sub edx, dword [esp + 0x34]
sub edx, 0xa
cmp dword [esp + 0x2c], edx
jle 0x10028269
mov eax, dword [esp + 0x78]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x80]
call dword [sym.imp.mfc90.dll_Ordinal_4392]
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x70], 3
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x74]
mov byte [esp + 0x6c], 2
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x3c]
dec ebp
cmp ebp, 1
jg 0x100281f0
sub ecx, dword [esp + 0x34]
test ecx, ecx
jle 0x1002829f
mov ebp, dword [esi]
add ebp, 0x38
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBTitleMenu_void_
mov edx, dword [ebp]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x78]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x64]
push ecx
push eax
mov eax, dword [esp + 0x5c]
push 6
add eax, 3
push eax
mov ecx, esi
call edx
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call sub.mfc90.dll_Ordinal_6048
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
neg eax
push eax
neg ecx
push ecx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea edx, [eax - 0x14]
add ecx, 4
sub eax, 4
mov dword [edi + 0x258], edx
add ebx, ecx
cmp dword [edi + 0x26c], 0
mov dword [edi + 0x25c], ecx
mov dword [edi + 0x260], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ebx
mov dword [edi + 0x264], ebx
jne 0x100283a5
mov eax, dword [edi + 0x268]
push 0
test eax, eax
jne 0x10028360
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::GetRGBColorShadow_unsigned_long_int_
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
add esp, 4
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], edx
mov edx, dword [edi + 0x268]
mov dword [eax + 0xc], ecx
push edx
jmp 0x10028399
cmp eax, 1
jne 0x1002836c
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBFondoXP_void_
jmp 0x10028371
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBPressBXP_void_
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [edi + 0x268]
push eax
push esi
lea ecx, [edi + 0x1c0]
call sym.GuiTk115d.dll_public:_void___thiscall_CGuiControlBarButton::Paint_class_CDC___int__class_CRect__unsigned_long_int__int_
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call sub.mfc90.dll_Ordinal_6170
mov edx, dword [esi]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 0x30]
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 1
mov dword [esp + 0x1c], vtable.CFont.0
call fcn.10001760
lea ecx, [esp + 0x78]
call dword [sym.imp.mfc90.dll_Ordinal_601]
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