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

Disassembly:
push 0xffffffffffffffff
push 0x1003b9fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov eax, dword [0x1005d1c0]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0xb8], eax
call sub.MFC71.DLL_CPaintDC::CPaintDC
mov ecx, dword [esi + 0x12c]
xor ebp, ebp
or eax, 0xffffffff
cmp ecx, eax
mov dword [esp + 0xc0], ebp
je 0x1002a4de
lea ecx, [esp + 0x18]
call sub.MFC71.DLL_CDC::CDC
lea ecx, [esp + 0x38]
mov byte [esp + 0xc0], 1
call sub.MFC71.DLL_CDC::CDC
mov eax, dword [esp + 0x64]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov byte [esp + 0xc4], 2
call edi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CDC::Attach
mov ecx, dword [esp + 0x1c]
push ecx
call edi
push eax
lea ecx, [esp + 0x3c]
call sub.MFC71.DLL_CDC::Attach
lea eax, [esi + 0x160]
cmp eax, ebp
jne 0x1002a289
xor eax, eax
jmp 0x1002a28c
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x1c]
push eax
push edx
call sub.MFC71.DLL_CDC::SelectGdiObject
mov dword [esp + 0x34], eax
lea eax, [esi + 0x150]
cmp eax, ebp
jne 0x1002a2a9
xor eax, eax
jmp 0x1002a2ac
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x40]
push eax
call sub.MFC71.DLL_CDC::SelectGdiObject
mov ebp, eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x1003de6c
push 0xf
mov byte [esp + 0xc4], 3
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call sub.MFC71.DLL_CGdiObject::Attach
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CDC::SelectObject_2
mov ecx, dword [esi + 0x144]
mov ebx, dword [esi + 0x140]
mov edx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esi + 0x14c]
push 0xf00021
sub eax, ecx
mov ecx, dword [esi + 0x148]
push eax
sub ecx, ebx
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_PatBlt]
push edi
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CDC::SelectObject_2
mov ecx, dword [esi + 0x15c]
lea eax, [esp + 0x48]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esi + 0x140]
mov ebx, dword [esi + 0x148]
mov eax, dword [esi + 0x144]
mov edi, dword [esi + 0x14c]
sub ebx, edx
mov edx, dword [esp + 0x50]
sub edi, eax
mov eax, dword [esi + 0x130]
sub edi, edx
sar ebx, 1
sar edi, 1
test eax, eax
mov dword [esp + 0x28], 0
jle 0x1002a446
lea ebx, [ebx]
mov edx, dword [esp + 0x28]
cmp edx, dword [esi + 0x12c]
jge 0x1002a3b9
lea eax, [esi + 0x150]
test eax, eax
jne 0x1002a3ae
push eax
mov eax, dword [esp + 0x40]
push eax
jmp 0x1002a3cc
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x40]
push eax
jmp 0x1002a3cc
lea eax, [esi + 0x158]
test eax, eax
je 0x1002a3c6
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call sub.MFC71.DLL_CDC::SelectGdiObject
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
push 0xcc0020
push 0
mov ebp, eax
imul ebp, dword [esp + 0x30]
push 0
push edx
push ecx
push eax
mov eax, dword [esp + 0x34]
push edi
lea edx, [ebx + ebp]
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push edx
push ecx
mov eax, ebx
sub eax, ecx
sub eax, ebp
push edi
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x130]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x1002a390
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esi + 0x144]
mov eax, dword [esi + 0x14c]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esi + 0x140]
mov edx, dword [esi + 0x144]
push 0xcc0020
push 0
push 0
sub eax, ecx
mov ecx, dword [esi + 0x148]
push edi
push eax
sub ecx, ebx
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov esi, ebx
push esi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1002a492
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x1c]
push eax
push edx
call sub.MFC71.DLL_CDC::SelectGdiObject
test ebp, ebp
je 0x1002a4a4
mov ebp, dword [ebp + 4]
mov eax, dword [esp + 0x3c]
push ebp
push eax
call sub.MFC71.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x10]
mov byte [esp + 0xc0], 2
mov dword [esp + 0x10], 0x1003de58
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x38]
mov byte [esp + 0xc0], 1
call fcn.10037ab4
jmp 0x1002a6aa
cmp dword [esi + 0x134], eax
je 0x1002a6bb
lea ecx, [esp + 0x18]
call sub.MFC71.DLL_CDC::CDC
mov ecx, dword [esp + 0x64]
push ecx
mov byte [esp + 0xc4], 4
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CDC::Attach
lea eax, [esi + 0x160]
cmp eax, ebp
jne 0x1002a51e
xor eax, eax
jmp 0x1002a521
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x1c]
push eax
push edx
call sub.MFC71.DLL_CDC::SelectGdiObject
mov ebx, eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], 0x1003de6c
push 0x800000
mov byte [esp + 0xc4], 5
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x30]
call sub.MFC71.DLL_CGdiObject::Attach
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CDC::SelectObject_2
mov ecx, dword [esi + 0x148]
mov dword [esp + 0x34], eax
sub ecx, dword [esi + 0x140]
imul ecx, dword [esi + 0x134]
mov eax, 0x51eb851f
imul ecx
mov eax, dword [esi + 0x14c]
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
sub eax, dword [esi + 0x144]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [edi + 1]
push ecx
push ebp
push ebp
mov ebp, dword [sym.imp.GDI32.dll_Rectangle]
push edx
call ebp
mov eax, dword [esi + 0x148]
sub eax, dword [esi + 0x140]
cmp edi, eax
jge 0x1002a630
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x1003de6c
push 0
mov byte [esp + 0xc4], 6
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call sub.MFC71.DLL_CDC::SelectObject_2
mov ecx, dword [esi + 0x144]
mov eax, dword [esi + 0x14c]
mov edx, dword [esi + 0x140]
sub eax, ecx
mov ecx, dword [esi + 0x148]
push eax
sub ecx, edx
mov edx, dword [esp + 0x20]
push ecx
push 0
push edi
push edx
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0xc0], 5
mov dword [esp + 0x10], 0x1003de58
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov ecx, dword [esi + 0x144]
mov eax, dword [esi + 0x14c]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esi + 0x140]
mov edx, dword [esi + 0x144]
push 0xcc0020
push 0
push 0
sub eax, ecx
mov ecx, dword [esi + 0x148]
push edi
push eax
mov eax, dword [esp + 0x78]
sub ecx, ebp
push ecx
push edx
mov esi, ebp
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CDC::SelectObject_2
test ebx, ebx
je 0x1002a686
mov ebx, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
push ebx
push edx
call sub.MFC71.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc0], 4
mov dword [esp + 0x2c], 0x1003de58
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x18]
mov byte [esp + 0xc0], 0
call fcn.10037ab4
lea ecx, [esp + 0x60]
mov dword [esp + 0xc0], 0xffffffff
call fcn.10037aea
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xa8]
pop ebx
call fcn.10038e11
add esp, 0xb4
ret