Function at 0x405f28
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov dword [ebp - 0x58], 0
mov dword [esp], 0
call sub.USER32.dll_GetSystemMetrics
push ebx
mov dword [edi], eax
mov dword [esp], 1
call sub.USER32.dll_GetSystemMetrics
push edx
mov dword [esi], eax
call sub.USER32.dll_GetDesktopWindow
mov dword [ebp - 0x64], eax
test eax, eax
je 0x4061e2
cmp dword [edi], 0
je 0x4061e2
cmp dword [esi], 0
je 0x4061e2
mov dword [esp], eax
call sub.USER32.dll_GetDC
push edx
mov ebx, eax
mov dword [esp], eax
call sub.GDI32.dll_CreateCompatibleDC
push ecx
mov dword [ebp - 0x60], eax
mov eax, dword [esi]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.GDI32.dll_CreateCompatibleBitmap
sub esp, 0xc
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x60], 0
je 0x4061b4
test ebx, ebx
je 0x4061b4
test eax, eax
je 0x4061b4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sub.GDI32.dll_SelectObject
push eax
push eax
mov dword [esp + 0x20], 0x40cc0020
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov eax, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sub.GDI32.dll_BitBlt
sub esp, 0x24
test eax, eax
je 0x4061b4
mov dword [esp + 8], 0xe
mov dword [esp + 4], 0
lea eax, [ebp - 0x52]
mov dword [esp], eax
call fcn.00409bfc
mov dword [esp + 8], 0x2c
mov dword [esp + 4], 0
lea ecx, [ebp - 0x44]
mov dword [esp], ecx
call fcn.00409bfc
mov dword [ebp - 0x44], 0x28
mov word [ebp - 0x36], 0
mov dword [esp + 0x18], 0
lea eax, [ebp - 0x44]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.GDI32.dll_GetDIBits
sub esp, 0x1c
test eax, eax
je 0x4061b4
mov edx, dword [ebp - 0x3c]
mov word [ebp - 0x52], 0x4d42
mov eax, dword [ebp - 0x40]
inc eax
lea eax, [eax + eax*2]
and eax, 0xfffffffc
imul eax, edx
add eax, 0x36
mov dword [ebp - 0x50], eax
mov word [ebp - 0x4a], 0
mov word [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x36
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x44], 0x28
mov eax, dword [edi]
mov dword [ebp - 0x40], eax
mov eax, dword [esi]
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x38], 1
mov word [ebp - 0x36], 0x18
mov eax, dword [ebp - 0x30]
add eax, 0x36
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [esp], eax
mov dword [ebp - 0x68], edx
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x58], eax
test eax, eax
mov edx, dword [ebp - 0x68]
je 0x4061b4
mov dword [esp + 0x18], 0
lea ecx, [ebp - 0x44]
mov dword [esp + 0x14], ecx
add eax, 0x36
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.GDI32.dll_GetDIBits
sub esp, 0x1c
test eax, eax
je 0x4061a0
mov dword [esp + 8], 0xe
lea eax, [ebp - 0x52]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call fcn.00409cc0
mov dword [esp + 8], 0x28
lea eax, [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
add eax, 0xe
mov dword [esp], eax
call fcn.00409cc0
jmp 0x4061b4
lea eax, [ebp - 0x58]
mov dword [esp], eax
call fcn.00405186
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sub.USER32.dll_ReleaseDC
push eax
push eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sub.GDI32.dll_DeleteDC
push edx
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sub.GDI32.dll_DeleteObject
push ecx
mov eax, dword [ebp - 0x58]
jmp 0x4061e4
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret