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

Disassembly:
push 0xffffffffffffffff
push 0x10052a22
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10080e78]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
mov eax, vtable.CBrush.0
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], eax
mov dword [esp + 0x124], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], eax
push 0x10
mov byte [esp + 0x128], 1
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 1
push ebp
lea ecx, [esp + 0xe0]
call sub.mfc90.dll_Ordinal_525
mov byte [esp + 0x124], 2
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorWhite_void_
push eax
push 1
push ebp
lea ecx, [esp + 0xb8]
call sub.mfc90.dll_Ordinal_525
mov eax, dword [ebx + 0x168]
push eax
mov byte [esp + 0x128], 3
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x3c]
call sub.mfc90.dll_Ordinal_1358
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x12c]
mov ecx, dword [esi + 4]
push eax
lea edi, [ebx + 0x9c]
push edi
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esi]
lea eax, [ebx + 0x124]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
push 0x8001
mov dword [esp + 0x24], eax
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorShadow_unsigned_long_int_
add esp, 4
push eax
push 1
push ebp
lea ecx, [esp + 0x88]
call sub.mfc90.dll_Ordinal_525
mov ecx, dword [ebx + 0xa8]
mov edx, dword [edi]
dec ecx
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
mov byte [esp + 0x130], 4
call sub.mfc90.dll_Ordinal_4527
mov ecx, dword [ebx + 0xa8]
mov edx, dword [ebx + 0xa4]
dec ecx
push ecx
push edx
mov ecx, esi
call sub.mfc90.dll_Ordinal_4396
push 1
mov ecx, esi
call sub.mfc90.dll_Ordinal_6170
mov dword [esp + 0x84], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x14], ebp
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_6078
xor ecx, ecx
cmp dword [ebx + 0x7c], ebp
mov dword [esp + 0x90], eax
mov dword [esp + 0x24], ecx
jg 0x10035e0a
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0xc4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ebp, [ebx + 0x16c]
test ebp, ebp
je 0x100363ad
cmp dword [ebp + 0x20], 0
je 0x100363ad
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
call sym.GuiTk115d.dll_public:_class_CSize___thiscall_CGuiToolButton::GetSizeButton_void_
cmp dword [ebx + 0x288], 1
jne 0x100363ad
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x14]
mov edx, eax
sub edx, dword [esp + 0xc4]
add ebx, ecx
cmp ebx, edx
jle 0x10036370
push 0
jmp 0x100363a6
mov ecx, dword [esp + 0x24]
xor ebp, ebp
cmp ecx, ebp
jl 0x1003636b
cmp ecx, dword [ebx + 0x68]
jge 0x1003636b
mov edx, dword [ebx + 0x64]
mov ebp, dword [edx + ecx*4]
mov ebx, dword [ebp + 0x1c]
lea eax, [edx + ecx*4]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x34], ebx
lea ebx, [eax + edx]
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
add eax, 0xfffffffe
cmp eax, dword [ecx + 0x88]
jne 0x10035f87
mov edx, dword [sym.GuiTk115d.dll_int_GuiDrawLayer::m_Theme]
push edx
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorFace_unsigned_long_int_
add esp, 4
push eax
lea ecx, [esp + 0x98]
call sub.mfc90.dll_Ordinal_333
lea eax, [esp + 0x94]
push eax
mov ecx, esi
mov byte [esp + 0x128], 5
call sub.mfc90.dll_Ordinal_6077
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea edx, [eax + ecx + 1]
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov dword [esp + 0x4c], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
sub edx, eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
inc edx
mov dword [esp + 0x50], edx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
inc ecx
cdq
sub eax, edx
sar eax, 1
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 0x7c]
dec ecx
mov dword [esp + 0x5c], edx
cmp dword [esp + 0x24], ecx
jne 0x10035f14
mov eax, dword [esp + 0x34]
lea edx, [ebx - 2]
inc eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
jmp 0x10035f31
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
lea ecx, [ebx - 5]
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
sub edx, eax
inc edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov ecx, dword [esp + 0x14]
lea eax, [ebx - 8]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x34]
inc eax
push 6
lea edx, [esp + 0x50]
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 4]
push edx
add ecx, 9
push eax
mov dword [esp + 0x80], ecx
call dword [sym.imp.GDI32.dll_Polygon]
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call sub.mfc90.dll_Ordinal_6077
mov dword [esp + 0x94], vtable.CBrush.0
lea ecx, [esp + 0x94]
jmp 0x10036090
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorXP_void_
push eax
lea ecx, [esp + 0xa8]
call sub.mfc90.dll_Ordinal_333
lea edx, [esp + 0xa4]
push edx
mov ecx, esi
mov byte [esp + 0x128], 6
call sub.mfc90.dll_Ordinal_6077
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov dword [esp + 0x4c], ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
inc ecx
cdq
sub eax, edx
sar eax, 1
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x5c], edx
cmp eax, dword [ecx + 0x88]
je 0x10036035
mov ecx, dword [ecx + 0x7c]
dec ecx
cmp eax, ecx
je 0x10036035
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [esp + 0x34]
lea edx, [ebx - 5]
mov dword [esp + 0x64], edx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x68], ecx
jmp 0x10036044
mov eax, dword [esp + 0x20]
lea edx, [ebx - 2]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x14]
lea ecx, [ebx - 8]
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
push 6
lea eax, [esp + 0x50]
mov dword [esp + 0x70], ecx
mov ecx, dword [esi + 4]
push eax
add edx, 9
push ecx
mov dword [esp + 0x80], edx
call dword [sym.imp.GDI32.dll_Polygon]
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
call sub.mfc90.dll_Ordinal_6077
mov dword [esp + 0xa4], vtable.CBrush.0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x124], 4
call fcn.10001760
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 0x88]
jne 0x100361fa
call sym.GuiTk115d.dll_public:_static_unsigned_long_int___cdecl_GuiDrawLayer::GetRGBColorWhite_void_
push eax
lea ecx, [esp + 0x8c]
call sub.mfc90.dll_Ordinal_333
lea edx, [esp + 0x88]
push edx
mov ecx, esi
mov byte [esp + 0x128], 7
call sub.mfc90.dll_Ordinal_6077
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xf0], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov dword [esp + 0xec], ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xf4], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
inc ecx
cdq
sub eax, edx
sar eax, 1
mov edx, ebx
sub edx, eax
mov dword [esp + 0xf8], ecx
mov dword [esp + 0x100], ecx
push 4
lea eax, [ebx - 1]
lea ecx, [esp + 0xf0]
mov dword [esp + 0x100], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x114], eax
call dword [sym.imp.GDI32.dll_Polygon]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_6077
lea ecx, [esp + 0xac]
push ecx
mov ecx, esi
call sub.mfc90.dll_Ordinal_6078
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
inc eax
push edx
push eax
lea eax, [esp + 0x114]
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_4527
mov ecx, dword [esp + 0x34]
push ecx
lea eax, [ebx - 1]
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_4396
mov eax, dword [esp + 0x34]
inc eax
push eax
mov eax, dword [esp + 0x18]
inc eax
push eax
lea edx, [esp + 0x11c]
push edx
mov ecx, esi
call sub.mfc90.dll_Ordinal_4527
mov eax, dword [esp + 0x34]
inc eax
push eax
lea eax, [ebx - 1]
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_4396
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_6078
lea ecx, [esp + 0x88]
mov byte [esp + 0x124], 4
mov dword [esp + 0x88], vtable.CBrush.0
call fcn.10001760
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
add eax, 0x124
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
push 1
mov ecx, esi
mov dword [esp + 0x24], eax
call sub.mfc90.dll_Ordinal_6170
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov dword [esp + 0xb8], eax
add eax, 2
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 8]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push ecx
push eax
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp + 0x10]
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
sub ecx, 8
cmp dword [esp + 0x44], ecx
mov dword [esp + 0x14], ebx
jge 0x100362cb
mov ebp, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x70]
push 0x25
lea ecx, [esp + 0xb8]
push ecx
push eax
push ebp
mov ecx, esi
call edx
mov ebx, dword [esp + 0x18]
jmp 0x10036351
mov eax, dword [ebp + 0x18]
mov ebx, dword [esp + 0x18]
sub eax, dword [ebx + 0x74]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], ecx
cdq
sub eax, edx
sar eax, 1
cmp ecx, 0xffffffff
je 0x10036351
mov ecx, dword [ebp + 0x14]
mov ebp, dword [ebp + 0x10]
mov edx, dword [ebx + 0x120]
push 1
add ecx, 2
push ecx
add ebp, eax
mov eax, dword [esi + 4]
push ebp
push eax
mov eax, dword [esp + 0x2c]
push eax
push edx
call sub.mfc90.dll_Ordinal_1137
mov ecx, dword [eax + 0x94]
mov ecx, dword [ecx]
call fcn.10001230
xor eax, eax
lea edx, [esp + 0xdc]
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x40]
push edx
push eax
push ebx
lea ecx, [ebx + 0xac]
call sub.mfc90.dll_Ordinal_6538
mov eax, dword [esp + 0x40]
cmp eax, dword [ebx + 0x7c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
jl 0x10035e04
jmp 0x10035d98
call sub.mfc90.dll_Ordinal_1252
sub eax, ecx
sub eax, 2
mov edx, eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
push 1
sub eax, 2
mov dword [esp + 0xd4], eax
dec eax
push eax
mov eax, dword [esp + 0xd0]
push ecx
inc eax
push eax
push edx
mov ecx, ebp
mov dword [esp + 0xd8], edx
call sub.mfc90.dll_Ordinal_4529
push 5
mov ecx, ebp
call sub.mfc90.dll_Ordinal_6584
lea ecx, [esp + 0x38]
call sub.mfc90.dll_Ordinal_2106
mov ecx, dword [esp + 0x84]
push ecx
mov ecx, esi
call sub.mfc90.dll_Ordinal_6170
mov edx, dword [esi]
mov eax, dword [esp + 0x20]
mov edx, dword [edx + 0x30]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x90]
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_6078
mov esi, vtable.CPen.0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x124], 3
mov dword [esp + 0x7c], esi
call fcn.10001760
lea ecx, [esp + 0xac]
mov byte [esp + 0x124], 2
mov dword [esp + 0xac], esi
call fcn.10001760
lea ecx, [esp + 0xd4]
mov byte [esp + 0x124], 1
mov dword [esp + 0xd4], esi
call fcn.10001760
mov esi, vtable.CBrush.0
lea ecx, [esp + 0x38]
mov byte [esp + 0x124], 0
mov dword [esp + 0x38], esi
call fcn.10001760
lea ecx, [esp + 0x9c]
mov dword [esp + 0x124], 0xffffffff
mov dword [esp + 0x9c], esi
call fcn.10001760
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 4