Function at 0x410289
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 0x40], 0
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
mov byte [ebp - 2], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x38]
sub edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x34]
sub ebx, dword [ebp - 0x3c]
test edi, edi
jle 0x41046d
mov eax, 0x9c4
cmp edi, eax
jg 0x41046d
test ebx, ebx
jle 0x41046d
cmp ebx, eax
jg 0x41046d
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowDC]
mov esi, eax
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push edi
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
xor eax, eax
push eax
push eax
push esi
push ebx
push edi
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, ebx
imul eax, edi
shl eax, 2
push eax
call fcn.0040fb14
test eax, eax
pop ecx
mov dword [ebp - 0x24], eax
je 0x41043f
push eax
push ebx
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x14]
call fcn.00410210
add esp, 0x14
test eax, eax
je 0x41043f
and dword [ebp - 0xc], 0
test ebx, ebx
jle 0x41043f
and dword [ebp - 0x20], 0
and dword [ebp - 8], 0
test edi, edi
jle 0x41041a
xor eax, eax
cmp dword [ebp + 0x14], eax
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], eax
jle 0x41042b
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
xor esi, esi
cmp dword [ebp + 0x10], esi
jle 0x4103f4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], ebx
jge 0x41043f
mov eax, dword [ebp - 8]
lea ecx, [esi + eax]
cmp ecx, edi
jge 0x41043f
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
add ecx, esi
add ecx, eax
mov eax, dword [ebp - 0x24]
lea ecx, [eax + ecx*4]
mov eax, dword [ebp - 0x1c]
add eax, esi
lea edx, [edx + eax*2]
add eax, edx
mov dl, byte [eax + 2]
cmp dl, byte [ecx]
jne 0x4103f0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4103f0
mov al, byte [eax]
cmp al, byte [ecx + 2]
jne 0x4103f0
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x4103a1
jmp 0x4103f4
mov byte [ebp - 1], 0
mov eax, dword [ebp + 0x10]
inc dword [ebp - 0x10]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x18], edi
cmp eax, dword [ebp + 0x14]
jl 0x41038f
cmp byte [ebp - 1], 0
jne 0x41042b
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jl 0x410374
inc dword [ebp - 0xc]
add dword [ebp - 0x20], edi
cmp dword [ebp - 0xc], ebx
jl 0x410368
jmp 0x41043f
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0xc]
mov byte [ebp - 2], 1
mov dword [eax], ecx
push dword [ebp - 0x24]
call fcn.0040fb5b
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x30]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x28]
call dword [sym.imp.GDI32.dll_DeleteObject]
movzx eax, byte [ebp - 2]
pop esi
jmp 0x410470
or eax, 0xffffffff
pop edi
pop ebx
leave
ret