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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x405740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
push eax
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC71.DLL_CDC::FromHandle
mov ebp, eax
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x20], ebp
je 0x401d37
lea ecx, [esp + 0x40]
call sub.MFC71.DLL_CDC::CDC
mov eax, dword [ebp + 4]
push eax
mov dword [esp + 0x70], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x44]
call sub.MFC71.DLL_CDC::Attach
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 0x4068b4
push 0xb6
push 2
push 0xb6
mov byte [esp + 0x78], 1
call sub.MFC71.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC71.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
push ecx
push edx
call sub.MFC71.DLL_CDC::SelectGdiObject
cmp eax, edi
mov dword [esp + 0x24], eax
je 0x401d10
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
sub eax, ebx
mov ebx, dword [esp + 0x5c]
sub ebx, edi
push ebx
push eax
push 0
push 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
lea edi, [esi + 0x78]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
mov ecx, edi
call sub.MFC71.DLL_CGdiObject::Attach
xor edi, edi
test ebx, ebx
jle 0x401cd7
mov eax, dword [esp + 0x18]
xor ebp, ebp
xor bl, bl
xor esi, esi
test eax, eax
mov dword [esp + 0x14], ebp
jle 0x401cc2
lea esp, [esp]
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 0x401bbc
test bl, bl
je 0x401baf
inc ebp
jmp 0x401c36
mov esi, dword [esp + 0x14]
mov bl, 1
mov ebp, 1
jmp 0x401c36
test bl, bl
je 0x401c36
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0x4068c8
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 + 0x34]
call sub.MFC71.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x10]
add eax, 0x78
jne 0x401bfc
xor eax, eax
jmp 0x401bff
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
push 3
push ecx
push eax
mov eax, dword [edx + 0x7c]
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x30]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x30]
xor bl, bl
mov byte [esp + 0x6c], 1
mov dword [esp + 0x30], 0x4068a0
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 0x401b90
test bl, bl
je 0x401cc2
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0x4068c8
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 + 0x3c]
call sub.MFC71.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x10]
add eax, 0x78
jne 0x401c8a
xor eax, eax
jmp 0x401c8d
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x3c]
push 3
push edx
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x7c]
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x38]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 1
mov dword [esp + 0x38], 0x4068a0
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x401b73
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
push eax
mov eax, dword [esp + 0x48]
push eax
call sub.MFC71.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x40]
call sub.MFC71.DLL_CDC::DeleteDC
mov ecx, dword [ebp + 4]
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x7c]
push 1
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x4068a0
mov byte [esp + 0x6c], 0
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x40]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00404e18
mov ecx, dword [esp + 0x64]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret