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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4058a0
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 ebp, eax
xor esi, esi
cmp ebp, esi
mov dword [esp + 0x20], ebp
je 0x402b05
lea ecx, [esp + 0x40]
call sub.MFC71.DLL_CDC::CDC
mov eax, dword [ebp + 4]
push eax
mov dword [esp + 0x70], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x44]
call sub.MFC71.DLL_CDC::Attach
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], 0x4068b4
push 0xab
push 2
push 0xab
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 dword [esp + 0x24], eax
lea eax, [esp + 0x50]
push eax
push ecx
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 0x402a9e
mov edi, edi
mov eax, dword [esp + 0x18]
xor ebp, ebp
xor bl, bl
xor esi, esi
test eax, eax
mov dword [esp + 0x14], ebp
jle 0x402a89
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 0x402975
test bl, bl
je 0x402965
inc ebp
jmp 0x4029f8
mov esi, dword [esp + 0x14]
mov bl, 1
mov ebp, 1
jmp 0x4029f8
test bl, bl
je 0x4029f8
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 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 + 0x2c]
call sub.MFC71.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x10]
add eax, 0xec
jne 0x4029bb
xor eax, eax
jmp 0x4029be
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], 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 0x402946
test bl, bl
je 0x402a89
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 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 + 0x34]
call sub.MFC71.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x10]
add eax, 0xec
jne 0x402a4e
xor eax, eax
jmp 0x402a51
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], 0x4068a0
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x402930
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x402aa9
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x44]
push eax
push edx
call sub.MFC71.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x40]
call sub.MFC71.DLL_CDC::DeleteDC
mov eax, dword [ebp + 4]
mov ecx, dword [ebx + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebx + 0xf0]
mov edx, dword [ebx + 0x20]
push 1
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 0
mov dword [esp + 0x38], 0x4068a0
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