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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e780
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
mov ebx, ecx
xor eax, eax
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], 0x465a80
mov edi, dword [ebp + 8]
mov dword [esp + 0x8c], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x54]
push edx
mov dword [esp + 0x30], eax
call fcn.0041ffb0
mov esi, eax
push 0xe6e0cc
mov dword [esp + 0x18], esi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x3c]
call sub.MFC71.DLL_CGdiObject::Attach
mov eax, dword [esi + 0x9c]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x42c230
mov eax, dword [esp + 0x2c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x28]
lea ecx, [esp + 0x38]
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x38], 0x4647f4
call fcn.004594a6
mov ecx, dword [esp + 0x84]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x18]
jmp 0x42c230
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0x465a6c
test eax, eax
mov byte [esp + 0x8c], 1
je 0x42c569
mov esi, dword [eax + 8]
lea eax, [ebx + 0xd8]
mov edx, dword [eax]
lea ecx, [esi + 8]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov edx, dword [ecx + 0xec]
add edx, eax
lea eax, [ebx + 0x58]
push eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], edx
call fcn.00434060
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 0xd8]
test cl, cl
je 0x42c345
mov eax, dword [esi + 0x24]
cdq
mov ecx, 6
idiv ecx
mov ebx, dword [ebx + 0x54]
mov eax, 0x55555556
mov ecx, dword [ebx + edx*4 + 0xe80]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, 0x7f
xor ebx, ebx
mov bh, al
movzx edx, ch
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, 0x7f
movzx ecx, cl
mov bl, al
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add cl, 0x7f
movzx edx, cl
mov cl, byte [esi + 4]
shl ebx, 8
or ebx, edx
test cl, cl
mov eax, ebx
push eax
je 0x42c32b
push 2
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x34]
call sub.MFC71.DLL_CGdiObject::Attach
mov ebx, dword [esp + 0x10]
jmp 0x42c362
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x34]
call sub.MFC71.DLL_CGdiObject::Attach
mov ebx, dword [esp + 0x10]
jmp 0x42c362
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x34]
call sub.MFC71.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x34]
test eax, eax
je 0x42c375
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
mov ecx, esi
call fcn.0040a600
test eax, eax
mov dword [esp + 0x1c], eax
je 0x42c471
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0xd8]
lea eax, [ebx + 0xd8]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 8]
sub ecx, edx
test ecx, ecx
mov dword [esp + 0x68], 0x466ca0
mov dword [esp + 0x70], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
jg 0x42c3c2
xor eax, eax
jmp 0x42c3fc
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
mov dword [esp + 0x28], ecx
lea ecx, [ebx + 0x58]
call fcn.00433fd0
mov edx, dword [esp + 0x24]
mov ebx, dword [edx]
mov ecx, dword [esp + 0x20]
sub ecx, ebx
imul ecx
mov ecx, eax
mov eax, dword [esp + 0x28]
mov ebx, edx
cdq
push edx
push eax
push ebx
push ecx
call fcn.0045a150
mov edx, dword [esp + 0x10]
add eax, dword [edx + 0x60]
mov ebx, edx
push eax
mov ecx, esi
call fcn.0040a7f0
fstp dword [esp + 0x70]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.0040a680
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea edx, [esp + 0x60]
push edx
mov ecx, edi
call sub.MFC71.DLL_CDC::MoveTo
lea esp, [esp]
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.0040a680
mov eax, dword [esp + 0x40]
cmp eax, dword [ebx + 0xd8]
jle 0x42c462
cmp eax, dword [ebx + 0xe0]
jge 0x42c462
mov ecx, dword [esp + 0x44]
push ecx
push eax
mov ecx, edi
call sub.MFC71.DLL_CDC::LineTo
mov ecx, esi
call fcn.0040a650
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x42c430
mov edx, dword [ebx + 0x5c]
push edx
mov ecx, esi
call fcn.0040a7f0
fstp dword [esp + 0x7c]
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
mov dword [esp + 0x7c], 0x466ca0
call fcn.0040a680
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
mov ecx, edi
call sub.MFC71.DLL_CDC::LineTo
mov al, byte [esi + 4]
test al, al
je 0x42c530
mov edx, dword [esp + 0x14]
mov al, byte [edx + 0xd8]
test al, al
je 0x42c530
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x2c]
mov edx, dword [edi]
push 7
mov ecx, edi
call dword [edx + 0x2c]
push 0
mov ecx, esi
call fcn.0040a600
test eax, eax
je 0x42c530
push eax
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.0040a680
mov eax, dword [esp + 0x48]
cmp eax, dword [ebx + 0xd8]
jle 0x42c525
cmp eax, dword [ebx + 0xe0]
jge 0x42c525
mov ecx, dword [esp + 0x4c]
lea edx, [ecx + 3]
push edx
lea ebx, [eax + 3]
push ebx
add ecx, 0xfffffffc
push ecx
mov ecx, dword [edi + 4]
add eax, 0xfffffffc
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
mov ebx, dword [esp + 0x10]
mov ecx, esi
call fcn.0040a650
test eax, eax
jne 0x42c4e2
mov edx, dword [esp + 0x18]
mov esi, dword [edx]
mov eax, dword [edi]
push 7
mov ecx, edi
mov dword [esp + 0x1c], esi
call dword [eax + 0x2c]
lea ecx, [esp + 0x30]
mov byte [esp + 0x8c], 0
mov dword [esp + 0x30], 0x4647f4
call fcn.004594a6
test esi, esi
jne 0x42c21e
jmp 0x42c1df
call fcn.004593ce
int3