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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ffeb
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4ab028]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x4ab028]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esp + 0x98]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ecx + 0x20]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x1c]
call dword [0x479de8]
mov dword [esp + 0xc8], edi
cmp esi, edi
jne 0x4074b4
xor eax, eax
jmp 0x4074b7
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call edi
mov ebx, dword [sym.imp.mfc100u.dll_CDC::Attach]
push eax
lea ecx, [esp + 0x20]
call ebx
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], vtable.CBitmap.0
mov byte [esp + 0xc8], 1
mov eax, dword [esp + 0xa4]
sub eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
sub ecx, dword [esp + 0x98]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [sym.imp.mfc100u.dll_CGdiObject::Attach]
push eax
lea ecx, [esp + 0x44]
call esi
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.mfc100u.dll_CDC::SelectGdiObject]
mov edx, dword [0x4ad0f4]
mov dword [esp + 0x5c], eax
push edx
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc100u.dll_CDC::FillSolidRect]
lea ecx, [esp + 0x4c]
call dword [0x479de8]
mov ecx, dword [esp + 0x48]
mov byte [esp + 0xc8], 2
mov eax, dword [ecx + 4]
push eax
call edi
push eax
lea ecx, [esp + 0x50]
call ebx
mov eax, dword [0x4ab428]
mov edx, dword [esp + 0x50]
mov edi, dword [sym.imp.mfc100u.dll_CDC::SelectGdiObject]
push eax
push edx
call edi
mov ecx, dword [0x4ab428]
mov ebx, eax
lea eax, [esp + 0x70]
push eax
push 0x18
push ecx
mov dword [esp + 0x74], ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], vtable.CPen.0
xor eax, eax
mov byte [esp + 0xc8], 3
mov ecx, 2
mov dword [esp + 0xac], eax
mov edx, ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov eax, dword [0x4ad0f0]
mov dword [esp + 0xac], ecx
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xac], 0
mov dword [esp + 0xb4], edx
call dword [sym.imp.GDI32.dll_CreatePenIndirect]
push eax
lea ecx, [esp + 0x38]
call esi
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc100u.dll_CDC::SelectObject]
mov esi, dword [esp + 0x3c]
cmp byte [esi + 0xc0], 0
mov dword [esp + 0x6c], eax
je 0x4077a5
cmp dword [esi + 0x164], 0
mov dword [esp + 0x30], 0
jle 0x4077a5
add esi, 0xc4
mov dword [esp + 0x2c], esi
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov ebx, dword [esi]
mov edi, dword [esi + 8]
sub eax, ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x18], eax
push 0xcc0020
cmp eax, dword [esp + 0x7c]
jge 0x407757
cdq
sub eax, edx
mov esi, eax
mov eax, edi
sub eax, ebx
mov dword [esp + 0x18], eax
push 0
cdq
push 0
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x5c]
push eax
sar esi, 1
push esi
sar edi, 1
push edi
push ecx
mov ecx, dword [esp + 0x3c]
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x14]
push 0xcc0020
push 0
sub ecx, edi
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x30]
push esi
sub eax, edi
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xa4]
lea edx, [ebx + edi]
push eax
push edx
push ecx
mov dword [esp + 0x88], edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x8c]
push 0xcc0020
sub ecx, esi
push ecx
mov ecx, dword [esp + 0x58]
push 0
push ecx
sub eax, esi
push eax
add edx, esi
push edi
push edx
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x3c]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push edx
mov dword [esp + 0x3c], eax
call ebx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
push 0xcc0020
sub eax, esi
push eax
mov eax, dword [esp + 0x58]
sub ecx, edi
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
call ebx
mov esi, dword [esp + 0x2c]
jmp 0x40777b
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x5c]
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0x3c]
sub edi, ebx
push edi
push ecx
push ebx
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
inc eax
add esi, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
cmp eax, dword [ecx + 0x164]
jl 0x407651
mov edi, dword [sym.imp.mfc100u.dll_CDC::SelectGdiObject]
mov ebx, dword [esp + 0x68]
test ebx, ebx
je 0x4077ac
mov ebx, dword [ebx + 4]
mov edx, dword [esp + 0x50]
push ebx
push edx
call edi
mov esi, dword [sym.imp.mfc100u.dll_CDC::DeleteDC]
lea ecx, [esp + 0x4c]
call esi
mov eax, dword [esp + 0xa4]
sub eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xa0]
sub ecx, dword [esp + 0x98]
push 0xcc0020
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [eax + 4]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x407809
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x20]
push eax
push edx
call edi
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc100u.dll_CDC::SelectObject]
lea ecx, [esp + 0x1c]
call esi
mov byte [esp + 0xc8], 2
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], vtable.CPen.0
call fcn.004030e0
mov byte [esp + 0xc8], 1
mov esi, dword [sym.imp.mfc100u.dll_CDC::CDC]
lea ecx, [esp + 0x4c]
call esi
mov byte [esp + 0xc8], 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], vtable.CBitmap.0
call fcn.004030e0
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc8], 0xffffffff
call esi
mov eax, 1
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0046bf30
mov esp, ebp
pop ebp
ret 4