Function at 0x40c330
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0
jne 0x40c349
xor eax, eax
jmp 0x40c50c
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp + 0xc]
jle 0x40c354
mov dword [ebp + 0xc], eax
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebp + 0x10]
jle 0x40c35f
mov dword [ebp + 0x10], edx
cmp ebx, 0x4d3ad8
jne 0x40c36d
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0xc], 1
jl 0x40c3b4
cmp dword [ebp + 0x10], 1
jl 0x40c3b4
lea ecx, [ebp - 0x30]
push ecx
push 0x18
mov eax, dword [ebx + 4]
push eax
call sub.GDI32.dll_GetObjectA
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp + 0xc]
jne 0x40c3a2
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp + 0x10]
jne 0x40c3a2
mov eax, 1
jmp 0x40c50c
mov edx, dword [0x4d429c]
push edx
call sub.USER32.dll_GetDC
mov edi, eax
test edi, edi
jne 0x40c3ea
mov eax, dword [ebx + 4]
test eax, eax
je 0x40c3c1
push eax
call sub.GDI32.dll_DeleteObject
xor edx, edx
mov dword [ebx + 4], edx
mov eax, dword [ebx + 8]
test eax, eax
je 0x40c3d3
push eax
call sub.GDI32.dll_DeleteObject
xor edx, edx
mov dword [ebx + 8], edx
mov byte [ebx + 0x14], 0
push 0
call sub.USER32.dll_MessageBeep
xor eax, eax
jmp 0x40c50c
push edi
call sub.GDI32.dll_CreateCompatibleDC
mov esi, eax
test esi, esi
jne 0x40c404
push edi
mov eax, dword [0x4d429c]
push eax
call sub.USER32.dll_ReleaseDC
jmp 0x40c3b4
push edi
call sub.GDI32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40c428
push esi
call sub.GDI32.dll_DeleteDC
push edi
mov edx, dword [0x4d429c]
push edx
call sub.USER32.dll_ReleaseDC
jmp 0x40c3b4
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
push edi
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40c460
mov edx, dword [ebp - 0x10]
push edx
call sub.GDI32.dll_DeleteDC
push esi
call sub.GDI32.dll_DeleteDC
push edi
mov ecx, dword [0x4d429c]
push ecx
call sub.USER32.dll_ReleaseDC
jmp 0x40c3b4
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.GDI32.dll_SelectObject
mov dword [ebp - 4], eax
mov edx, dword [ebx + 4]
push edx
mov ecx, dword [ebp - 0x10]
push ecx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor edx, edx
mov dword [ebp - 0x14], edx
push 0xcc0020
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov eax, dword [ebx + 0x10]
push eax
mov edx, dword [ebx + 0xc]
push edx
mov ecx, dword [ebp - 0x18]
push ecx
mov eax, dword [ebp - 0x14]
push eax
push esi
call sub.GDI32.dll_BitBlt
mov edx, dword [ebx + 0xc]
add dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0xc]
jl 0x40c487
mov eax, dword [ebx + 0x10]
add dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jl 0x40c482
mov ecx, dword [ebp - 4]
push ecx
push esi
call sub.GDI32.dll_SelectObject
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 0x10]
push edx
call sub.GDI32.dll_SelectObject
mov ecx, dword [ebp - 0x10]
push ecx
call sub.GDI32.dll_DeleteDC
push esi
call sub.GDI32.dll_DeleteDC
push edi
mov eax, dword [0x4d429c]
push eax
call sub.USER32.dll_ReleaseDC
mov edx, dword [ebx + 4]
push edx
call sub.GDI32.dll_DeleteObject
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 4], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc