Function at 0x42138c
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 0x4213a5
xor eax, eax
jmp 0x421568
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp + 0xc]
jle 0x4213b0
mov dword [ebp + 0xc], eax
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebp + 0x10]
jle 0x4213bb
mov dword [ebp + 0x10], edx
cmp ebx, 0x4fd0cc
jne 0x4213c9
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0xc], 1
jl 0x421410
cmp dword [ebp + 0x10], 1
jl 0x421410
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 0x4213fe
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp + 0x10]
jne 0x4213fe
mov eax, 1
jmp 0x421568
mov edx, dword [0x4fd9ec]
push edx
call sub.USER32.dll_GetDC
mov edi, eax
test edi, edi
jne 0x421446
mov eax, dword [ebx + 4]
test eax, eax
je 0x42141d
push eax
call sub.GDI32.dll_DeleteObject
xor edx, edx
mov dword [ebx + 4], edx
mov eax, dword [ebx + 8]
test eax, eax
je 0x42142f
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 0x421568
push edi
call sub.GDI32.dll_CreateCompatibleDC
mov esi, eax
test esi, esi
jne 0x421460
push edi
mov eax, dword [0x4fd9ec]
push eax
call sub.USER32.dll_ReleaseDC
jmp 0x421410
push edi
call sub.GDI32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x421484
push esi
call sub.GDI32.dll_DeleteDC
push edi
mov edx, dword [0x4fd9ec]
push edx
call sub.USER32.dll_ReleaseDC
jmp 0x421410
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 0x4214bc
mov edx, dword [ebp - 0x10]
push edx
call sub.GDI32.dll_DeleteDC
push esi
call sub.GDI32.dll_DeleteDC
push edi
mov ecx, dword [0x4fd9ec]
push ecx
call sub.USER32.dll_ReleaseDC
jmp 0x421410
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 0x4214e3
mov eax, dword [ebx + 0x10]
add dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jl 0x4214de
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 [0x4fd9ec]
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