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

Disassembly:
push 0xffffffffffffffff
push 0x10050f86
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10080e78]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x60], ebp
mov esi, dword [esp + 0xa8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], vtable.CBrush.0
push ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0xa4], ebx
call sub.mfc90.dll_Ordinal_337
push 0x8001
mov byte [esp + 0xa4], 1
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorFace_unsigned_long_int_
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
add esp, 4
push eax
call edi
push eax
lea ecx, [esp + 0x5c]
call sub.mfc90.dll_Ordinal_1358
mov eax, dword [esp + 0x20]
inc dword [esp + 0x1c]
dec eax
cmp dword [ebp + 0x54], 0x8002
mov dword [esp + 0x20], eax
jne 0x1002139d
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x90]
call fcn.1001d3d0
mov byte [esp + 0xa0], 2
cmp dword [esp + 0xac], ebx
je 0x100211b7
push 0x1e
cmp dword [sym.GuiTk115d.dll_int_GuiDrawLayer::m_Theme], ebx
je 0x10021199
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorTabs_void_
mov ecx, dword [ebp + 0x54]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x98]
call fcn.1001d410
jmp 0x100211cc
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorTabs_void_
push eax
push 0x8001
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x98]
call fcn.1001d410
jmp 0x100211cc
mov ecx, dword [ebp + 0x54]
push ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x90]
call fcn.1001df40
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0xcc0020
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
push edx
push ebx
push ebx
dec eax
push eax
dec ecx
push ecx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xa8]
call fcn.1001dca0
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x1c]
sub ebx, 4
mov dword [esp + 0x7c], ecx
add ecx, 5
add eax, 0xfffffffb
mov edx, ebx
sub edx, ecx
mov dword [esp + 0x78], eax
lea eax, [edx - 1]
mov dword [esp + 0x7c], ecx
test eax, eax
jle 0x1002134f
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
dec eax
shr eax, 2
inc eax
lea esi, [ecx - 1]
mov dword [esp + 0x14], eax
jmp 0x10021250
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], vtable.CBrush.0
push 0x14
mov byte [esp + 0xa4], 3
call ebp
push eax
call edi
push eax
lea ecx, [esp + 0x30]
call sub.mfc90.dll_Ordinal_1358
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x48], eax
add eax, 2
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x38]
lea eax, [esi + 1]
mov dword [esp + 0x4c], eax
add eax, 2
mov dword [esp + 0x54], ebx
mov dword [esp + 0x54], eax
push edx
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x70], ecx
dec eax
lea ecx, [esi + 2]
mov dword [esp + 0x74], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], ecx
add eax, 2
lea ecx, [esp + 0x2c]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], eax
call sub.mfc90.dll_Ordinal_2106
push 0x10
call ebp
push eax
call edi
push eax
lea ecx, [esp + 0x30]
call sub.mfc90.dll_Ordinal_1358
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x6c]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa0], 2
mov dword [esp + 0x2c], vtable.CBrush.0
call fcn.10001760
add esi, 4
sub dword [esp + 0x14], 1
jne 0x10021250
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
test ebx, ebx
je 0x10021361
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorBTNHigh_void_
jmp 0x10021366
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBPressBXP_void_
mov edx, dword [sym.GuiTk115d.dll_unsigned_long_int_GuiDrawLayer::m_Style]
push edx
mov edi, eax
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorShadow_unsigned_long_int_
add esp, 4
push eax
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
call sub.mfc90.dll_Ordinal_2263
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0], 1
call fcn.1001d3f0
jmp 0x100213a4
mov ebx, dword [esp + 0xac]
cmp dword [ebp + 0x54], 0x8001
jne 0x10021471
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
cmp dword [ebp + 0x104], 0
je 0x100213d4
sub dword [esp + 0x20], 0x1e
test ebx, ebx
jne 0x1002142c
mov ecx, dword [ebp + 0x54]
push ecx
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorShadow_unsigned_long_int_
add esp, 4
push eax
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorBTNHigh_void_
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x40]
call sub.mfc90.dll_Ordinal_2263
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [ebp + 0x54]
push ecx
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorShadow_unsigned_long_int_
mov edx, dword [sym.GuiTk115d.dll_unsigned_long_int_GuiDrawLayer::m_Style]
add esp, 4
push eax
push edx
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorFace_unsigned_long_int_
add esp, 4
push eax
lea eax, [esp + 0x20]
push eax
jmp 0x10021468
cmp ebx, 2
jne 0x1002144b
mov ecx, dword [ebp + 0x54]
push ecx
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorShadow_unsigned_long_int_
add esp, 4
push eax
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorBTNHigh_void_
push eax
lea edx, [esp + 0x20]
push edx
jmp 0x10021468
cmp ebx, 1
jne 0x10021471
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorBTNHigh_void_
push eax
mov eax, dword [ebp + 0x54]
push eax
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorShadow_unsigned_long_int_
add esp, 4
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call sub.mfc90.dll_Ordinal_2263
push 1
lea ecx, [esp + 0x38]
call sub.mfc90.dll_Ordinal_6170
push 0x11
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call sub.mfc90.dll_Ordinal_2588
push eax
lea ecx, [esp + 0x38]
call sub.mfc90.dll_Ordinal_6079
mov dword [ebp + 0xe8], eax
mov edx, dword [esi + 4]
push edx
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov eax, dword [esp + 0x28]
mov esi, dword [eax - 0xc]
mov edx, dword [esp + 0x3c]
mov edi, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea ecx, [esp + 0x60]
push ecx
push esi
push eax
push edx
mov byte [esp + 0xb0], 4
call edi
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
sub eax, 0x14
cmp dword [esp + 0x60], eax
jle 0x100215cc
inc dword [esp + 0x18]
cmp esi, 1
jle 0x10021599
mov bl, 6
push 0x100578a4
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.1000fd20
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x48]
push edx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
mov byte [esp + 0xb0], 5
call edi
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
cmp dword [esp + 0x48], ecx
jle 0x10021587
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 0xc]
dec eax
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90.dll_Ordinal_4392]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa4], bl
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x60]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x14]
dec esi
mov byte [esp + 0xa0], 4
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp esi, 1
jg 0x100214f3
jmp 0x10021599
lea ecx, [esp + 0x14]
mov byte [esp + 0xa0], 4
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0x100578a4
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90.dll_Ordinal_945]
mov eax, dword [esp + 0x28]
add dword [esp + 0x20], 3
mov ecx, dword [eax - 0xc]
push 0x24
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0x70]
lea ecx, [esp + 0x44]
call edx
jmp 0x10021633
cmp dword [ebp + 0x104], 0
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x18]
je 0x100215f6
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0xa0], 7
push 0x24
jmp 0x10021606
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0xa0], 8
push 0x35
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0x70]
lea ecx, [esp + 0x44]
call edx
lea ecx, [esp + 0x14]
mov byte [esp + 0xa0], 4
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
call sub.mfc90.dll_Ordinal_6166
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x34]
mov byte [esp + 0xa0], 0
call sub.mfc90.dll_Ordinal_613
lea ecx, [esp + 0x58]
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0x58], vtable.CBrush.0
call fcn.10001760
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 8