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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10053630
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x10080e78]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 0x84]
test al, 1
jne 0x1004092e
cmp dword [ecx + 0xa0], 0x8002
mov esi, dword [ebp + 0xc]
jne 0x1004075c
test eax, 0xa000
je 0x100405fd
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 4]
add dword [esi], 7
mov eax, ecx
sub eax, edi
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + edi - 4]
mov dword [esi + 4], eax
mov eax, dword [esi]
add eax, 2
mov dword [esi + 8], eax
lea eax, [ecx - 8]
mov dword [esi + 0xc], eax
sub eax, dword [esi + 4]
xor ecx, ecx
xor edi, edi
test eax, eax
jle 0x1004092e
mov ebx, vtable.CBrush.0
jmp 0x100404c2
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebx
push 0x14
mov dword [esp + 0x84], ecx
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x20]
call sub.mfc90.dll_Ordinal_1358
push esi
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
add eax, edi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x28], eax
add eax, 2
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [edx + 4]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], eax
lea ecx, [edi + edx - 1]
dec eax
mov dword [esp + 0x38], ecx
add ecx, 2
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ecx
add eax, 2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], eax
call sub.mfc90.dll_Ordinal_2106
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xa0]
push ecx
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 + 0x20]
call sub.mfc90.dll_Ordinal_1358
mov edx, dword [esp + 0x20]
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ecx + 4]
lea eax, [esp + 0x38]
push eax
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x1c], ebx
call fcn.10001760
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
add edi, 4
cmp edi, eax
jl 0x100404c0
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add dword [esi], 4
add dword [esi + 8], 0xfffffffe
add dword [esi + 4], 3
mov edx, dword [esi]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
add ecx, 2
sub eax, edx
xor edi, edi
mov dword [esi + 0xc], ecx
test eax, eax
jle 0x1004092e
mov ebx, vtable.CBrush.0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
push 0x14
mov dword [esp + 0x84], 1
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x20]
call sub.mfc90.dll_Ordinal_1358
push esi
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
add eax, edi
mov dword [esp + 0x24], eax
add eax, 2
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
dec ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
dec eax
add ecx, 2
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ecx
add eax, 2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], eax
call sub.mfc90.dll_Ordinal_2106
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xa0]
push ecx
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 + 0x20]
call sub.mfc90.dll_Ordinal_1358
mov edx, dword [esp + 0x20]
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ecx + 4]
lea eax, [esp + 0x38]
push eax
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x1c], ebx
call fcn.10001760
mov eax, dword [esi + 8]
sub eax, dword [esi]
add edi, 4
cmp edi, eax
jl 0x10040627
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test eax, 0xa000
je 0x1004085e
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 4]
add dword [esi], 7
mov eax, ecx
sub eax, edi
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + edi - 4]
mov eax, dword [esi]
add eax, 3
mov dword [esi + 8], eax
lea eax, [ecx - 6]
mov dword [esi + 0xc], eax
sub eax, edx
xor edi, edi
mov dword [esi + 4], edx
test eax, eax
jle 0x1004092e
mov ebx, vtable.CBrush.0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
push 0x10
mov dword [esp + 0x84], 2
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x20]
call sub.mfc90.dll_Ordinal_1358
push esi
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 4]
add eax, edi
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x38], eax
inc eax
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x1c], ebx
call fcn.10001760
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
add edi, 2
cmp edi, eax
jl 0x1004079f
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add dword [esi], 2
add dword [esi + 8], 0xfffffffe
add dword [esi + 4], 2
mov edx, dword [esi]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
add ecx, 3
sub eax, edx
xor edi, edi
mov dword [esi + 0xc], ecx
test eax, eax
jle 0x1004092e
mov ebx, vtable.CBrush.0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
push 0x10
mov dword [esp + 0x84], 3
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x18]
call sub.mfc90.dll_Ordinal_1358
push esi
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x44], eax
add eax, edi
mov dword [esp + 0x44], eax
inc eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x54], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x48]
push ecx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x14]
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x14], ebx
call fcn.10001760
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
add edi, 2
cmp edi, ecx
jl 0x10040888
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8