Function at 0x40b790
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x43a3e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ebp
call fcn.00438cea
mov esi, dword [esp + 0x40]
mov dword [esp + 0x38], 0
test esi, esi
jne 0x40b7cf
xor eax, eax
jmp 0x40b7d2
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x40b7ed
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x28]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x40b80d
mov dword [esp + 0x40], 2
jmp 0x40b81b
mov eax, dword [ebp + 0x48]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x44]
mov eax, dword [ebp + 0x40]
mov edi, dword [esp + 0x48]
cmp eax, edx
mov eax, dword [esp + 0x50]
jne 0x40b870
cmp edi, eax
jge 0x40b8b1
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
sub ebx, ebp
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
mov edx, dword [esi + 4]
and eax, ecx
mov ecx, dword [esp + 0x40]
push 0xcc0020
push ebp
push ecx
push eax
push ebx
push 1
push ebp
push edi
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x50]
inc edi
cmp edi, eax
jl 0x40b83c
jmp 0x40b8ad
cmp edi, eax
jge 0x40b8b1
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
sub ebx, ebp
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
push ebp
push 0
push eax
mov eax, dword [esi + 4]
push ebx
push 1
push ebp
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x50]
inc edi
cmp edi, eax
jl 0x40b87e
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b8bc
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
push 0x808080
push 1
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CPen::CPen
lea edx, [esp + 0x18]
mov ecx, esi
push edx
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CDC::SelectObject_1
mov ecx, dword [esp + 0x60]
mov edi, eax
mov eax, dword [esp + 0x5c]
add ecx, 0xfffffffe
add eax, 4
lea edx, [esp + 0x48]
push eax
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
add eax, 0xfffffffc
add ecx, 0xfffffffe
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_1
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::DeleteObject
push 0xffffff
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject_1
mov ecx, dword [esp + 0x60]
mov edi, eax
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x48]
add eax, 4
dec ecx
push eax
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
add eax, 0xfffffffc
dec ecx
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_1
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::DeleteObject
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
sub edx, ecx
test edx, edx
jle 0x40ba68
mov eax, dword [esp + 0x68]
test byte [eax], 2
je 0x40ba68
mov eax, dword [eax + 0x14]
test ah, 0x40
je 0x40ba68
test al, 2
mov ebx, 0x8024
je 0x40b9db
mov ebx, 0x8025
jmp 0x40b9e4
test al, 1
je 0x40b9e4
mov ebx, 0x8026
mov eax, dword [esp + 0x44]
mov ecx, dword [ebp + 0x64]
cmp eax, ecx
push 0
jne 0x40b9f7
mov ecx, dword [ebp + 0x6c]
push ecx
jmp 0x40b9f9
push 6
push 0
push 6
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CRect::DeflateRect
mov edx, dword [ebp + 0x20]
push 0
push 0
push 0x31
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esi]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
push eax
mov ecx, esi
call dword [edi + 0x30]
mov edi, eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
push ecx
lea ecx, [esp + 0x48]
call fcn.00438dc2
mov eax, dword [esp + 0x44]
mov edx, dword [esi]
push ebx
lea ebx, [esp + 0x5c]
mov ecx, dword [eax - 8]
push ebx
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x48], 2
call dword [edx + 0x70]
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x30]
mov dword [esp + 0x18], 0x43ed88
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0x43ed74
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x2c