Function at 0x1002f240
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10052542
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10080e78]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x7c]
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp + 0x54]
add dword [esp + 0x38], 4
mov ebx, 3
sub dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
cmp eax, 0x8001
jne 0x1002f29f
mov edx, dword [ebp + 0xfc]
mov dword [esp + 0x44], edx
cmp eax, 0x8002
jne 0x1002f2b5
mov ecx, dword [ebp + 0xfc]
add ecx, 4
mov dword [esp + 0x44], ecx
jmp 0x1002f2b9
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x78]
xor edi, edi
cmp dword [ebp + 0x60], edi
jne 0x1002f434
cmp eax, 0x8002
jne 0x1002f336
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
add ecx, 0xfffffffd
push ecx
push eax
lea ecx, [esp + 0x60]
call fcn.1001d3d0
push 0x1e
mov dword [esp + 0x74], edi
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorTabs_void_
push eax
mov eax, dword [ebp + 0x54]
push eax
push esi
lea ecx, [esp + 0x68]
call fcn.1001d410
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x38]
push 0xcc0020
push ecx
push edx
push edi
push edi
push edi
push 4
push esi
lea ecx, [esp + 0x78]
call fcn.1001dca0
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xffffffff
call fcn.1001d3f0
cmp dword [ebp + 0x54], 0x8001
jne 0x1002f511
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 1
push edi
lea ecx, [esp + 0x24]
call sub.mfc90.dll_Ordinal_525
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x74], 1
call sub.mfc90.dll_Ordinal_6078
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
inc edx
mov ebx, eax
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_4527
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push ecx
push edx
mov ecx, esi
call sub.mfc90.dll_Ordinal_4396
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
inc eax
push eax
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call sub.mfc90.dll_Ordinal_4527
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov ecx, esi
call sub.mfc90.dll_Ordinal_4396
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
push edx
inc eax
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call sub.mfc90.dll_Ordinal_4527
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_4396
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
inc ecx
push ecx
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_4527
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
push edx
mov ecx, esi
call sub.mfc90.dll_Ordinal_4396
push ebx
mov ecx, esi
call sub.mfc90.dll_Ordinal_6078
lea ecx, [esp + 0x18]
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x18], vtable.CPen.0
call fcn.10001760
jmp 0x1002f511
cmp eax, 0x8001
jne 0x1002f4a0
mov ebx, vtable.CBrush.0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
push 2
mov dword [esp + 0x74], 2
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x1c]
call sub.mfc90.dll_Ordinal_1358
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 4]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x18]
call sub.mfc90.dll_Ordinal_2106
lea ecx, [esp + 0x18]
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x18], ebx
call fcn.10001760
mov ebx, 3
cmp dword [ebp + 0x54], 0x8002
jne 0x1002f66a
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.1001d3d0
mov eax, dword [ebp + 0x54]
push eax
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], ebx
call fcn.1001df40
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x38]
push 0xcc0020
push ecx
push edx
push edi
push edi
push edi
push 4
push esi
lea ecx, [esp + 0x78]
call fcn.1001dca0
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xffffffff
call fcn.1001d3f0
cmp dword [ebp + 0x54], 0x8002
jne 0x1002f66a
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x44]
sub eax, 4
mov dword [esp + 0x5c], ecx
add ecx, 5
mov dword [esp + 0x64], eax
sub eax, ecx
add ebx, 5
cmp eax, edi
mov dword [esp + 0x5c], ecx
jle 0x1002f66a
dec eax
shr eax, 2
inc eax
lea edi, [ecx - 1]
mov dword [esp + 0x78], eax
lea ecx, [ecx]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], vtable.CBrush.0
push 0x14
mov dword [esp + 0x74], 4
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x1c]
call sub.mfc90.dll_Ordinal_1358
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
lea eax, [ebx + 2]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
lea eax, [edi + 1]
mov dword [esp + 0x2c], eax
add eax, 2
mov dword [esp + 0x34], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x34]
dec eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x48], eax
lea edx, [edi + 2]
add eax, 2
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], eax
call sub.mfc90.dll_Ordinal_2106
mov eax, dword [sym.GuiTk115d.dll_int_GuiDrawLayer::m_Theme]
push 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 + 0x1c]
call sub.mfc90.dll_Ordinal_1358
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x18]
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x18], vtable.CBrush.0
call fcn.10001760
add edi, 4
sub dword [esp + 0x78], 1
jne 0x1002f560
xor edi, edi
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
lea ecx, [esp + 0x7c]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea edx, [esp + 0x7c]
push edx
mov ecx, ebp
mov dword [esp + 0x74], 5
call sub.mfc90.dll_Ordinal_4116
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], vtable.CFont.0
push str.Verdana
push 0x22
push 1
push 2
push 1
push edi
push edi
push edi
push edi
push 0x190
push edi
push edi
push edi
push 0xfffffffffffffff5
mov byte [esp + 0xa8], 6
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x24]
call sub.mfc90.dll_Ordinal_1358
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call edx
push 1
mov ecx, esi
mov dword [esp + 0x1c], eax
call sub.mfc90.dll_Ordinal_6170
mov ebx, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x28]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call ebx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x28]
cmp ecx, 1
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
mov edi, ecx
jle 0x1002f7b8
lea ebx, [ebx]
mov edx, eax
sub edx, dword [esp + 0x38]
test edx, edx
jle 0x1002f7b8
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x28]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call ebx
mov eax, dword [esp + 0x40]
mov ecx, eax
sub ecx, dword [esp + 0x38]
sub ecx, 0xa
cmp dword [esp + 0x28], ecx
jle 0x1002f7b8
mov edx, dword [esp + 0x7c]
mov eax, dword [edx - 0xc]
dec eax
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x84]
call dword [sym.imp.mfc90.dll_Ordinal_4392]
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x74], 7
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 6
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x40]
dec edi
cmp edi, 1
jg 0x1002f740
sub eax, dword [esp + 0x38]
test eax, eax
jle 0x1002f7f9
cmp dword [ebp + 0x60], 0
je 0x1002f7dd
cmp dword [sym.GuiTk115d.dll_int_GuiDrawLayer::m_Theme], 0
jne 0x1002f7dd
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push 0xffffff
mov ecx, esi
call edx
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x64]
push ecx
push eax
mov eax, dword [esp + 0x60]
push 6
add eax, 8
push eax
mov ecx, esi
call edx
mov ecx, dword [ebp + 0x20]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x38]
push edx
mov ecx, ebp
call sub.mfc90.dll_Ordinal_6048
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg eax
push eax
neg ecx
push ecx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push 0
push 5
lea edi, [ecx - 0x14]
sub esp, 0x10
mov eax, esp
sub ecx, 7
add edx, 6
mov dword [ebp + 0x100], edi
mov dword [eax], edi
mov dword [ebp + 0x104], edx
mov dword [ebp + 0x108], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0x110]
lea ebx, [edx + 0xd]
push ecx
push esi
lea ecx, [ebp + 0x64]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ebx
mov dword [ebp + 0x10c], ebx
mov dword [eax + 0xc], ebx
call sym.GuiTk115d.dll_public:_void___thiscall_CGuiControlBarButton::Paint_class_CDC___int__class_CRect__unsigned_long_int__int_
mov edx, dword [esp + 0x14]
push edx
mov ecx, esi
call sub.mfc90.dll_Ordinal_6170
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, esi
call edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 5
mov dword [esp + 0x20], vtable.CFont.0
call fcn.10001760
lea ecx, [esp + 0x7c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8