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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x408bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC71.DLL_CDC::FromHandle
mov esi, eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x34], esi
call sub.MFC71.DLL_CDC::CDC
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x94], ebp
jne 0x4027f8
xor eax, eax
jmp 0x4027fb
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x6c]
call sub.MFC71.DLL_CDC::Attach
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], 0x4099e0
push 0x83
push 2
push 0x83
mov byte [esp + 0xa0], 1
call sub.MFC71.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x64]
call sub.MFC71.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
push ecx
push edx
call sub.MFC71.DLL_CDC::SelectGdiObject
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
sub ebx, eax
mov eax, dword [esp + 0x84]
sub eax, esi
push eax
push ebx
push ebp
push ebp
mov ebp, dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], eax
lea esi, [edi + 0xec]
call ebp
push eax
mov ecx, esi
call sub.MFC71.DLL_CGdiObject::Attach
xor esi, esi
test ebx, ebx
jle 0x402ba0
lea ebx, [ebx]
xor bl, bl
xor edi, edi
xor ebp, ebp
xor eax, eax
mov byte [esp + 0x17], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea esp, [esp]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x6c]
push edx
push esi
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
test eax, eax
jne 0x4028ff
test bl, bl
je 0x4028ef
inc ebp
jmp 0x402988
mov edi, dword [esp + 0x20]
mov bl, 1
mov ebp, 1
jmp 0x402988
test bl, bl
je 0x402988
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0x4099f4
lea ecx, [edi + ebp]
push ecx
lea edx, [esi + 1]
push edx
push edi
push esi
mov byte [esp + 0xa4], 2
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x44]
call sub.MFC71.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x18]
add eax, 0xec
jne 0x402948
xor eax, eax
jmp 0x40294b
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
push 3
push ecx
push eax
mov eax, dword [edx + 0xf0]
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x40]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x40]
xor bl, bl
mov byte [esp + 0x94], 1
mov dword [esp + 0x40], 0x4099cc
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 0x1c
mov dword [esp + 0x20], eax
jl 0x4028d0
test bl, bl
je 0x402a24
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0x4099f4
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
add ebp, edi
push ebp
lea ecx, [esi + 1]
push ecx
push edi
push esi
mov byte [esp + 0xa4], 3
call ebx
push eax
lea ecx, [esp + 0x4c]
call sub.MFC71.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x18]
add eax, 0xec
jne 0x4029e4
xor eax, eax
jmp 0x4029e7
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x18]
push 3
push edx
push eax
mov eax, dword [edi + 0xf0]
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x48]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x48]
mov byte [esp + 0x94], 1
mov dword [esp + 0x48], 0x4099cc
call sub.MFC71.DLL_CGdiObject::DeleteObject
jmp 0x402a2e
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add ebp, 0xffffffec
cmp ebp, eax
jge 0x402b89
mov ecx, dword [esp + 0x6c]
push ebp
push esi
push ecx
call dword [sym.imp.GDI32.dll_GetPixel]
test eax, eax
mov al, byte [esp + 0x17]
jne 0x402a79
test al, al
je 0x402a63
inc dword [esp + 0x1c]
jmp 0x402afb
mov byte [esp + 0x17], 1
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], 1
jmp 0x402afb
test al, al
je 0x402afb
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0x4099f4
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
add edx, eax
push edx
lea ecx, [esi + 1]
push ecx
push eax
push esi
mov byte [esp + 0xa4], 4
call ebx
push eax
lea ecx, [esp + 0x54]
call sub.MFC71.DLL_CGdiObject::Attach
lea eax, [edi + 0xec]
test eax, eax
je 0x402abf
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x54]
push 3
push edx
push eax
mov eax, dword [edi + 0xf0]
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x50]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x50]
mov byte [esp + 0x17], 0
mov byte [esp + 0x94], 1
mov dword [esp + 0x50], 0x4099cc
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jl 0x402a41
mov al, byte [esp + 0x17]
test al, al
je 0x402b89
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0x4099f4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add ecx, eax
push ecx
lea edx, [esi + 1]
push edx
push eax
push esi
mov byte [esp + 0xa4], 5
call ebx
push eax
lea ecx, [esp + 0x5c]
call sub.MFC71.DLL_CGdiObject::Attach
lea eax, [edi + 0xec]
test eax, eax
je 0x402b52
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x5c]
mov edx, dword [edi + 0xf0]
push 3
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x58]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x58]
mov byte [esp + 0x94], 1
mov dword [esp + 0x58], 0x4099cc
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x4028b0
mov edi, dword [esp + 0x18]
mov ebp, dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0x4099f4
push 0x22a
push 0xa
push 0x1c
push 0
mov byte [esp + 0xa4], 6
call ebp
push eax
lea ecx, [esp + 0x3c]
call sub.MFC71.DLL_CGdiObject::Attach
lea esi, [edi + 0xec]
test esi, esi
jne 0x402bdd
xor eax, eax
jmp 0x402be0
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi + 0xf0]
mov ebx, dword [sym.imp.GDI32.dll_CombineRgn]
push 3
push ecx
push eax
push edx
call ebx
lea ecx, [esp + 0x38]
call sub.MFC71.DLL_CGdiObject::DeleteObject
push 0x22a
push 0x2e4
push 0x1c
push 0x2dc
call ebp
push eax
lea ecx, [esp + 0x3c]
call sub.MFC71.DLL_CGdiObject::Attach
test esi, esi
je 0x402c24
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0xf0]
push 3
push eax
push esi
push ecx
call ebx
lea ecx, [esp + 0x38]
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x30]
test eax, eax
je 0x402c49
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x6c]
push eax
push edx
call sub.MFC71.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x68]
call sub.MFC71.DLL_CDC::DeleteDC
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
mov edx, dword [edi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [edi + 0xf0]
push 1
push eax
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov esi, 0x4099cc
lea ecx, [esp + 0x38]
mov byte [esp + 0x94], 1
mov dword [esp + 0x38], esi
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x60]
mov byte [esp + 0x94], 0
mov dword [esp + 0x60], esi
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x68]
mov dword [esp + 0x94], 0xffffffff
call fcn.00408294
mov ecx, dword [esp + 0x8c]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret