Function at 0x402f30
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4045e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_CDC::CDC
xor edi, edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.00403270
mov ebx, 0x405818
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CDC::CDC
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00403270
mov dword [ebp - 0x20], ebx
mov eax, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_GetDC]
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], edi
call ebx
push eax
call sub.MFC42.DLL_CDC::FromHandle
cmp eax, edi
jne 0x402fac
xor eax, eax
jmp 0x402faf
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CDC::Attach
mov ecx, dword [esi + 0x20]
push ecx
call ebx
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov edx, dword [eax + 4]
push 0x12c
push 0x190
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esi + 0xb0]
call fcn.004035a0
mov edi, eax
xor eax, eax
cmp edi, eax
mov dword [ebp - 0x18], edi
je 0x4031e9
lea edx, [ebp - 0x14]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], 0x12c
mov dword [ebp - 0x50], 0x190
mov ecx, dword [edi]
push edx
push 0x405888
push edi
mov byte [ebp - 4], 4
call dword [ecx]
test eax, eax
jl 0x4031e9
mov eax, dword [ebp - 0x14]
push 0
push 0
lea edx, [ebp - 0x58]
push 0
mov ecx, dword [eax]
push edx
mov edx, dword [ebp - 0x34]
push edx
push 0
push 0
push 0
push 0xffffffffffffffff
push 1
push eax
mov dword [ebp - 4], 3
call dword [ecx + 0xc]
test eax, eax
jge 0x4030c4
mov esi, 0x405818
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], esi
call fcn.004032a0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00403fa8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
mov dword [ebp - 0x28], esi
call fcn.004032a0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00403fa8
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov ecx, dword [esi + 0x20]
push ecx
call ebx
push eax
call sub.MFC42.DLL_CDC::FromHandle
test eax, eax
je 0x4030dd
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CDC::Attach
mov edx, dword [esi + 0x20]
push edx
call ebx
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov eax, dword [eax + 4]
push 0x1e
push 0x64
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CGdiObject::Attach
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x20]
neg eax
sbb eax, eax
and eax, ebx
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
neg eax
mov edx, dword [ebp - 0x44]
push 0xcc0020
sbb eax, eax
push 0xa8
and eax, ecx
push 0x8a
push eax
push 0x1e
push 0x64
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CDC::DeleteDC
mov eax, dword [0x40752c]
lea ecx, [ebp - 0x20]
push eax
call sub.MFC42.DLL_CGdiObject::Detach
push eax
call fcn.00402d20
mov edi, 0x405804
add esp, 8
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x4057f0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
call fcn.00403fa8
mov dword [ebp - 0x28], edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0xffffffff
call fcn.00403fa8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x405818
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], esi
call fcn.004032a0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00403fa8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
mov dword [ebp - 0x28], esi
call fcn.004032a0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00403fa8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret