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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10053066
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x10080e78]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov eax, dword [0x10080e78]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [esp + 0x140]
call sub.mfc90.dll_Ordinal_524
xor ebx, ebx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], vtable.CBrush.0
push 1
lea ecx, [esp + 0x140]
mov byte [esp + 0x1bc], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x80], ebx
call sub.mfc90.dll_Ordinal_6170
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x431
push edx
call edi
push ebx
push ebx
mov dword [esp + 0xac], eax
mov eax, dword [esi + 0x20]
push 0x418
push eax
call edi
cmp dword [esi + 0x148], 0x8002
mov edi, eax
mov dword [esp + 0x8c], edi
jne 0x1003a74d
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBCaptionXP_void_
mov ecx, dword [esp + 0x144]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetNearestColor]
cmp eax, 0xc9bebc
jne 0x1003a62e
mov dword [esp + 0x7c], 1
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x50]
test dword [esi + 0x84], 0xa000
push eax
push ecx
lea ecx, [esp + 0x68]
je 0x1003a6c1
call fcn.1001d3d0
mov byte [esp + 0x1b8], 2
push 0x1e
cmp dword [sym.GuiTk115d.dll_int_GuiDrawLayer::m_Theme], ebx
je 0x1003a67e
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBFondoXP_void_
mov edx, dword [esi + 0x148]
push eax
push edx
lea eax, [esp + 0x148]
push eax
jmp 0x1003a693
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorTabs_void_
mov ecx, dword [esi + 0x148]
push eax
push ecx
lea edx, [esp + 0x148]
push edx
lea ecx, [esp + 0x70]
call fcn.1001d410
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x50]
push 0xcc0020
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x158]
push edx
jmp 0x1003a72e
call fcn.1001d3d0
mov byte [esp + 0x1b8], 3
cmp dword [sym.GuiTk115d.dll_int_GuiDrawLayer::m_Theme], ebx
je 0x1003a6ed
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBFondoXP_void_
push eax
mov eax, dword [esi + 0x148]
push eax
lea ecx, [esp + 0x144]
push ecx
jmp 0x1003a702
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorTabs_void_
mov edx, dword [esi + 0x148]
push eax
push edx
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x6c]
call fcn.1001e1e0
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x50]
push 0xcc0020
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x80]
call fcn.1001dca0
lea ecx, [esp + 0x60]
mov byte [esp + 0x1b8], 1
call fcn.1001d3f0
jmp 0x1003a77b
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorXP_void_
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x78]
call sub.mfc90.dll_Ordinal_1358
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x140]
push ecx
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x140]
call sub.mfc90.dll_Ordinal_2753
cmp edi, ebx
mov dword [esp + 0x2c], ebx
jle 0x1003b0a4
jmp 0x1003a7a0
mov edi, dword [esp + 0x2c]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x194]
push edx
push edi
push 0x417
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi]
mov edx, dword [edx + 0x18c]
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x88]
push edx
push edi
mov ecx, esi
call sub.mfc90.dll_Ordinal_2700
mov eax, dword [esp + 0x9c]
mov ebx, eax
movzx ecx, ax
shr ebx, 0x10
mov dword [esp + 0x3c], ecx
mov dword [esp + 0xa0], ebx
mov dword [esi + 0x114], 0
test bl, 8
jne 0x1003b08e
cmp ax, 1
jne 0x1003a989
test bl, 0x20
je 0x1003a836
mov ecx, esi
call sym.GuiTk115d.dll_public:_int___thiscall_CGuiToolBarWnd::IsFloating_void_
test eax, eax
jne 0x1003b08e
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
sub eax, edi
mov dword [esp + 0x44], edx
cdq
sub eax, edx
sar eax, 1
dec eax
test dword [esi + 0x84], 0xa000
mov ebx, ecx
je 0x1003a8a3
mov ecx, dword [esi + 0x148]
mov edx, ecx
sub edx, 0x8002
neg edx
sbb edx, edx
add edi, eax
and edx, 0xfffffffd
add edx, 4
add edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x40], edi
inc edi
cmp ecx, 0x8002
sete al
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edi
inc eax
sub ebx, eax
mov dword [esp + 0x4c], ebx
jmp 0x1003a8c3
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x40], 0
inc ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x44], eax
inc eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], vtable.CBrush.0
mov edx, dword [esi + 0x148]
push edx
mov byte [esp + 0x1bc], 4
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorShadow_unsigned_long_int_
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
add esp, 4
push eax
call ebx
push eax
lea ecx, [esp + 0x34]
call sub.mfc90.dll_Ordinal_1358
cmp dword [esp + 0x80], 0
jne 0x1003a962
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x140]
mov edi, dword [sym.imp.USER32.dll_FillRect]
push eax
lea ecx, [esp + 0x44]
push ecx
push edx
call edi
lea ecx, [esp + 0x30]
call sub.mfc90.dll_Ordinal_2106
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorTabs_void_
push eax
call ebx
push eax
lea ecx, [esp + 0x34]
call sub.mfc90.dll_Ordinal_1358
mov edx, dword [esp + 0x140]
add dword [esp + 0x40], 2
mov eax, 1
add dword [esp + 0x44], eax
add dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x44]
push ecx
push edx
call edi
lea ecx, [esp + 0x30]
call sub.mfc90.dll_Ordinal_2106
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b8], 1
mov dword [esp + 0x30], vtable.CBrush.0
call fcn.10001760
jmp 0x1003b08e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xf0]
push ecx
lea edx, [esp + 0x104]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1003b08e
mov edi, ebx
and edi, 1
jne 0x1003a9c0
test bl, 2
jne 0x1003a9c0
xor ebx, ebx
mov dword [esp + 0x10], ebx
jmp 0x1003a9cc
mov dword [esp + 0x10], 1
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x80]
mov ecx, dword [esi + 0x20]
push 0
push eax
push 0x409
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x1003ad43
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], vtable.CBrush.0
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x1c4], 5
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x1003aaea
test di, di
je 0x1003aabf
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_
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x148]
call sub.mfc90.dll_Ordinal_2263
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
cmp dword [esi + 0x148], 0x8002
jne 0x1003aa95
cmp dword [sym.GuiTk115d.dll_int_GuiDrawLayer::m_Theme], 0
je 0x1003aa95
mov eax, 0x66c8f9
jmp 0x1003aa9a
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBFondoXP_void_
push eax
lea ecx, [esp + 0x28]
call fcn.10001880
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x144]
call fcn.100018c0
jmp 0x1003ad2a
cmp dword [esi + 0x148], 0x8001
jne 0x1003ad2a
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x144]
call fcn.100018c0
jmp 0x1003ad2a
cmp dword [esi + 0x118], 0
je 0x1003ab06
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBMenu_void_
push eax
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBMenu_void_
push eax
lea edx, [esp + 0x1c]
push edx
jmp 0x1003ab3f
cmp dword [esp + 0x7c], 0
jne 0x1003ab1a
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_
jmp 0x1003ab39
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 [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::GetRGBColorShadow_unsigned_long_int_
add esp, 4
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x148]
call sub.mfc90.dll_Ordinal_2263
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
test di, di
je 0x1003ab90
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
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x144]
call fcn.100018c0
jmp 0x1003ad1b
cmp dword [esi + 0x118], 0
je 0x1003abdc
cmp dword [esi + 0x148], 0x8002
jne 0x1003abd5
cmp word [esp + 0x3c], 8
je 0x1003abbd
cmp dword [sym.GuiTk115d.dll_int_GuiDrawLayer::m_Theme], 0
je 0x1003abd5
mov eax, 0x66c8f9
jmp 0x1003ac26
lea ecx, [esp + 0x24]
test ebx, ebx
je 0x1003abcc
push 0x66c8f9
jmp 0x1003ac2b
push 5
call fcn.1000f700
jmp 0x1003ac30
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorXP_void_
jmp 0x1003ac26
cmp dword [esi + 0x148], 0x8002
jne 0x1003ac16
cmp dword [sym.GuiTk115d.dll_int_GuiDrawLayer::m_Theme], 0
je 0x1003ac16
cmp word [esp + 0x3c], 8
je 0x1003ac0b
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0xffabe1fd
add eax, 0xbae6fc
jmp 0x1003ac26
test ebx, ebx
jne 0x1003ac21
mov eax, 0xbae6fc
jmp 0x1003ac26
test ebx, ebx
je 0x1003ac21
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBPressBXP_void_
jmp 0x1003ac26
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBFondoXP_void_
push eax
lea ecx, [esp + 0x28]
call fcn.10001880
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x144]
call fcn.100018c0
cmp word [esp + 0x3c], 8
jne 0x1003acf9
mov edi, dword [esp + 0x1c]
sub edi, dword [0x10080a84]
cmp dword [esi + 0x118], 0
jne 0x1003acf9
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBCaptionXP_void_
push eax
push 1
push 0
lea ecx, [esp + 0x90]
call sub.mfc90.dll_Ordinal_525
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x140]
mov byte [esp + 0x1bc], 6
call sub.mfc90.dll_Ordinal_6078
mov ecx, dword [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0x148]
mov ebx, eax
call sub.mfc90.dll_Ordinal_4527
mov eax, dword [esp + 0x20]
push eax
push edi
lea ecx, [esp + 0x144]
call sub.mfc90.dll_Ordinal_4396
push ebx
lea ecx, [esp + 0x140]
call sub.mfc90.dll_Ordinal_6078
lea ecx, [esp + 0x84]
mov byte [esp + 0x1b8], 5
mov dword [esp + 0x84], vtable.CPen.0
call fcn.10001760
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x1003ad11
cmp dword [esi + 0x118], ebx
jne 0x1003ad11
mov dword [esi + 0x114], 1
jmp 0x1003ad1b
mov dword [esi + 0x114], 0
push 1
push 1
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1b8], 1
mov dword [esp + 0x24], vtable.CBrush.0
call fcn.10001760
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0xa4]
push 0
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
lea ecx, [esp + 0x12c]
push ecx
lea edx, [esp + 0x110]
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
add ebx, 4
mov ecx, esi
add edi, 2
mov dword [esp + 0xe8], ebx
call sub.mfc90.dll_Ordinal_2702
lea edx, [esi + 0x108]
push edx
lea ecx, [esp + 0x140]
mov byte [esp + 0x1bc], 7
call sub.mfc90.dll_Ordinal_6079
test byte [esp + 0xa0], 4
mov dword [esp + 0xa8], eax
jne 0x1003af21
cmp dword [sym.GuiTk115d.dll_unsigned_long_int_GuiDrawLayer::m_Style], 0x8002
je 0x1003ae46
cmp dword [esi + 0x114], 1
jne 0x1003ae46
push 0x8001
inc edi
inc ebx
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorShadow_unsigned_long_int_
add esp, 4
push eax
lea ecx, [esp + 0xb0]
call sub.mfc90.dll_Ordinal_333
test eax, eax
je 0x1003ae00
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0xac]
mov edx, dword [esi + 0xa8]
push eax
mov eax, dword [esp + 0x14]
push 0x80
push eax
push ecx
push edx
push ebx
push edi
lea ecx, [esp + 0x158]
call fcn.10001900
lea ecx, [esp + 0xac]
mov dword [esp + 0xac], vtable.CBrush.0
call fcn.10001760
sub edi, 2
sub ebx, 2
jmp 0x1003ae4d
mov ebx, dword [esp + 0xe0]
push 0x8001
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorShadow_unsigned_long_int_
add esp, 4
push eax
lea ecx, [esp + 0xc0]
call sub.mfc90.dll_Ordinal_333
test eax, eax
jne 0x1003ae6f
xor edx, edx
jmp 0x1003ae72
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0xac]
mov eax, dword [esi + 0xa8]
push 3
push ecx
mov ecx, dword [esp + 0x148]
push eax
mov eax, dword [esp + 0x1c]
push ebx
push edi
push 0
push eax
push 0
push edx
push ecx
call dword [sym.imp.USER32.dll_DrawStateA]
lea ecx, [esp + 0xbc]
mov dword [esp + 0xbc], vtable.CBrush.0
call fcn.10001760
mov eax, dword [esp + 0x38]
cmp dword [eax - 0xc], 0
jle 0x1003b01a
cmp dword [esi + 0x110], 0
jne 0x1003b01a
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edi, dword [esi + 0xa8]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x60], ecx
dec edx
lea ecx, [edi + ecx + 4]
mov dword [esp + 0x6c], edx
push 0x28
mov dword [esp + 0x64], ecx
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x64]
push edx
push ecx
push eax
mov eax, dword [esp + 0x14c]
mov edx, dword [eax + 0x70]
lea ecx, [esp + 0x14c]
call edx
jmp 0x1003b01a
push 0x8001
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorShadow_unsigned_long_int_
add esp, 4
push eax
lea ecx, [esp + 0xb8]
call sub.mfc90.dll_Ordinal_333
test eax, eax
jne 0x1003af43
xor edx, edx
jmp 0x1003af46
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0xac]
mov eax, dword [esi + 0xa8]
push 0x83
push ecx
mov ecx, dword [esp + 0x148]
push eax
mov eax, dword [esp + 0x1c]
push ebx
push edi
push 0
push eax
push 0
push edx
push ecx
call dword [sym.imp.USER32.dll_DrawStateA]
lea ecx, [esp + 0xb4]
mov dword [esp + 0xb4], vtable.CBrush.0
call fcn.10001760
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0xa8]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xd4], edx
lea edx, [ecx + eax + 4]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 0xc]
mov dword [esp + 0xcc], edx
lea edx, [esp + 0xc4]
push edx
push ecx
push eax
mov eax, dword [esp + 0x150]
push eax
dec edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0xcc]
push 0x22
mov eax, edi
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0xcc]
push edx
mov edx, dword [esp + 0xcc]
push edx
sar eax, 1
dec eax
push eax
mov eax, dword [esp + 0x48]
add ecx, 2
push ecx
mov ecx, dword [esp + 0x154]
push 0
push eax
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_DrawStateA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp word [esp + 0x3c], 8
jne 0x1003b05c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x14c]
push eax
mov ecx, esi
call sym.GuiTk115d.dll_public:_void___thiscall_CGuiToolBarWnd::DrawArrow_class_CDC___class_CRect_
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xa8]
inc dword [esp + 0x70]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x140]
call sub.mfc90.dll_Ordinal_6079
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b8], 1
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [esp + 0x8c]
mov dword [esp + 0x2c], eax
jl 0x1003a7a0
mov eax, dword [esp + 0x90]
push eax
lea ecx, [esp + 0x140]
call sub.mfc90.dll_Ordinal_6170
lea ecx, [esp + 0x74]
mov byte [esp + 0x1b8], 0
mov dword [esp + 0x74], vtable.CBrush.0
call fcn.10001760
lea ecx, [esp + 0x13c]
mov dword [esp + 0x1b8], 0xffffffff
call sub.mfc90.dll_Ordinal_744
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.1004da1e
mov esp, ebp
pop ebp
ret