Function at 0x405ef0
Capabilities:
Open clipboard
Resolve function by parsing pe exports
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x40b178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
xor ecx, ecx
mov dword [esi + 0xe0], eax
mov dword [esi + 0xd8], eax
push edi
mov dword [esi + 0xe4], ecx
mov dword [esi + 0xdc], ecx
push esi
lea ecx, [esp + 0x74]
call sub.MFC42u.DLL_CClientDC::CClientDC
lea ecx, [esp + 0x50]
mov dword [esp + 0x8c], 0
call sub.MFC42u.DLL_CDC::CDC
mov edi, dword [esp + 0x74]
lea eax, [esp + 0x70]
neg eax
sbb eax, eax
mov byte [esp + 0x8c], 1
and eax, edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x54]
call sub.MFC42u.DLL_CDC::Attach
mov eax, dword [esi + 0x10c]
mov ebp, 1
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x405fcf
mov ecx, dword [ebx + 4]
test ebp, ebp
mov edi, dword [ecx + 8]
je 0x405faf
mov edx, dword [edi]
xor ebp, ebp
mov dword [esi + 0xe0], edx
mov eax, dword [edi + 4]
mov dword [esi + 0xe4], eax
mov ecx, dword [edi]
mov dword [esi + 0xd8], ecx
mov edx, dword [edi + 4]
mov dword [esi + 0xdc], edx
test edi, edi
je 0x405fc8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
mov ecx, esi
call fcn.00405170
mov edi, dword [edi + 8]
test edi, edi
jne 0x405fb3
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x405f81
mov eax, dword [esi + 0xa4]
mov ebx, dword [esi + 0xd8]
mov edi, dword [esi + 0xdc]
xor ebp, ebp
lea ecx, [eax*4]
lea eax, [eax + eax*4]
sub ebx, ecx
sub edi, ecx
mov edx, ebx
mov ecx, edi
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0xe0]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xe4]
add edx, eax
add ecx, eax
mov dword [esi + 0xe0], edx
mov dword [esp + 0x10], edx
mov eax, ecx
mov edx, 0x3e8
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe4], ecx
mov dword [esp + 0x18], eax
xor eax, eax
xor ecx, ecx
mov edi, edx
cmp esi, ebp
mov dword [esi + 0xd8], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edi
je 0x406051
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], 0x40d25c
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x74]
sub eax, ebx
sub ecx, edi
push eax
push ecx
push edx
mov byte [esp + 0x98], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x30]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esp + 0x58]
push eax
call sub.MFC42u.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
sub ecx, edx
test ecx, ecx
jle 0x406109
mov ebx, dword [sym.imp.GDI32.dll_SetPixel]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov edx, eax
xor edi, edi
sub edx, ecx
test edx, edx
jle 0x4060fa
mov eax, dword [esp + 0x54]
push 0xffffff
push edi
push ebp
push eax
call ebx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov edx, eax
inc edi
sub edx, ecx
cmp edi, edx
jl 0x4060db
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
inc ebp
sub edx, edi
cmp ebp, edx
jl 0x4060d1
mov eax, dword [esi + 0x10c]
mov ebp, dword [eax + 0xc]
test ebp, ebp
je 0x4061ce
mov ecx, dword [ebp]
mov eax, dword [esi + 0x128]
cmp ecx, eax
jg 0x4061ce
mov edx, dword [ebp + 0x10]
mov dword [esi + 0xa4], edx
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xa0], eax
mov ecx, dword [ebp + 4]
mov edi, dword [ecx + 8]
test edi, edi
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi + 0x64], eax
mov dword [esi + 0x60], ecx
je 0x4061c3
mov ecx, dword [edi + 0xc]
mov edi, dword [edi + 8]
test edi, edi
je 0x4061c3
mov ebx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], eax
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x40617c
mov byte [esi + 0x84], 1
jmp 0x406183
mov byte [esi + 0x84], 0
mov edx, dword [edi + 0xc]
mov dword [esi + 0x48], edx
mov al, byte [edi + 0x10]
test al, al
je 0x40619a
mov byte [esi + 0x4c], 1
mov byte [esi + 0x4d], 0
jmp 0x4061a2
mov byte [esi + 0x4c], 0
mov byte [esi + 0x4d], 1
mov eax, dword [esi + 0xa0]
push eax
push ecx
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esi + 0x40]
call fcn.00409b80
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], edx
jmp 0x406152
mov ebp, dword [ebp + 0xc]
test ebp, ebp
jne 0x40611a
lea ecx, [esp + 0x60]
call sub.MFC42u.DLL_CDC::CDC
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x40d25c
mov edx, dword [esp + 0x74]
lea eax, [esp + 0x70]
neg eax
sbb eax, eax
mov byte [esp + 0x8c], 4
and eax, edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x64]
call sub.MFC42u.DLL_CDC::Attach
fld qword [esi + 0x1d8]
fsqrt
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
sub edi, ebx
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
fmul st(1)
call sub.MSVCRT.dll__ftol
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub ebp, edx
mov ebx, eax
mov dword [esp + 0x1c], ebp
fild dword [esp + 0x1c]
fmul st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x10], eax
push eax
mov eax, dword [esp + 0x78]
push ebx
push eax
fstp st(0)
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call sub.MFC42u.DLL_CDC::SelectGdiObject
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x40c7b8
push 0
mov byte [esp + 0x90], 5
call dword [sym.imp.GDI32.dll_GetStockObject]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x60]
push edx
mov dword [esp + 0x30], eax
call sub.MFC42u.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x64]
push eax
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CGdiObject::DeleteObject
mov ecx, dword [esi + 0xd8]
test ecx, ecx
jl 0x406315
mov edx, dword [esi + 0xdc]
test edx, edx
jl 0x406315
lea eax, [esp + 0x50]
push 0xcc0020
neg eax
sbb eax, eax
push ebp
and eax, dword [esp + 0x5c]
push edi
push edx
mov edx, dword [esp + 0x20]
push ecx
push eax
mov eax, dword [esp + 0x7c]
push edx
push ebx
push 0
push 0
push eax
jmp 0x406346
mov edx, dword [esi + 0xdc]
lea eax, [esp + 0x50]
add edx, 0xf
add ecx, 0xf
neg eax
push 0xcc0020
push ebp
sbb eax, eax
push edi
and eax, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, ebp
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esi + 0xd0]
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CGdiObject::Detach
lea ecx, [esp + 0x30]
call sub.MFC42u.DLL_CGdiObject::Detach
lea ecx, [esi + 0xa8]
call sub.MFC42u.DLL_CGdiObject::Detach
mov ecx, dword [esp + 0x54]
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, 0x40c7a4
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x8c], 6
call sub.MFC42u.DLL_CGdiObject::DeleteObject
mov esi, 0x40c774
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 7
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x60]
mov dword [esp + 0x20], esi
mov byte [esp + 0x8c], 2
call fcn.0040a4c4
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x8c], 8
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x50]
mov dword [esp + 0x30], esi
mov byte [esp + 0x8c], 0
call fcn.0040a4c4
lea ecx, [esp + 0x70]
mov dword [esp + 0x8c], 0xffffffff
call fcn.0040a6e6
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret