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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4033b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov ebx, ecx
mov eax, dword [ebx + 0x20]
push edi
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC71.DLL_CDC::FromHandle
mov esi, eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], esi
call sub.MFC71.DLL_CDC::CDC
xor edi, edi
cmp esi, edi
mov dword [esp + 0x6c], edi
jne 0x401cf5
xor eax, eax
jmp 0x401cf8
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x44]
call sub.MFC71.DLL_CDC::Attach
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], 0x40477c
push 0x86
push 2
push 0x86
mov byte [esp + 0x78], 1
call sub.MFC71.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x3c]
call sub.MFC71.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
push ecx
push edx
call sub.MFC71.DLL_CDC::SelectGdiObject
mov ecx, dword [ebx + 0x20]
mov ebp, eax
lea eax, [esp + 0x50]
push eax
push ecx
mov dword [esp + 0x28], ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
sub esi, edi
push esi
sub eax, ecx
push eax
push 0
push 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
lea edi, [ebx + 0xec]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
mov ecx, edi
call sub.MFC71.DLL_CGdiObject::Attach
xor edi, edi
test esi, esi
jle 0x401f0a
mov eax, dword [esp + 0x18]
xor ebp, ebp
xor bl, bl
xor esi, esi
test eax, eax
mov dword [esp + 0x14], ebp
jle 0x401ef5
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
push edi
push edx
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
test eax, eax
jne 0x401de5
test bl, bl
je 0x401dd5
inc ebp
jmp 0x401e64
mov esi, dword [esp + 0x14]
mov bl, 1
mov ebp, 1
jmp 0x401e64
test bl, bl
je 0x401e64
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x404790
lea ecx, [edi + 1]
push ecx
lea edx, [esi + ebp]
push edx
push edi
push esi
mov byte [esp + 0x7c], 2
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC71.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x10]
add eax, 0xec
jne 0x401e27
xor eax, eax
jmp 0x401e2a
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push 3
push ecx
push eax
mov eax, dword [edx + 0xf0]
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x28]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x28]
xor bl, bl
mov byte [esp + 0x6c], 1
mov dword [esp + 0x28], 0x404768
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x401db6
test bl, bl
je 0x401ef5
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0x404790
lea ecx, [edi + 1]
push ecx
add ebp, esi
push ebp
push edi
push esi
mov byte [esp + 0x7c], 3
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x34]
call sub.MFC71.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x10]
add eax, 0xec
jne 0x401eba
xor eax, eax
jmp 0x401ebd
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x34]
push 3
push edx
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xf0]
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x30]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 1
mov dword [esp + 0x30], 0x404768
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x401da0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
test ebp, ebp
je 0x401f11
mov ebp, dword [ebp + 4]
mov edx, dword [esp + 0x44]
push ebp
push edx
call sub.MFC71.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x40]
call sub.MFC71.DLL_CDC::DeleteDC
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov edx, dword [ebx + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebx + 0xf0]
push 1
push eax
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 0
mov dword [esp + 0x38], 0x404768
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x40]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00402c14
mov ecx, dword [esp + 0x64]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret