Function at 0x411356
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 0x41153a
mov eax, 0x9c4
cmp edi, eax
jg 0x41153a
test ebx, ebx
jle 0x41153a
cmp ebx, eax
jg 0x41153a
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.00410bf4
test eax, eax
pop ecx
mov dword [ebp - 0x24], eax
je 0x41150c
push eax
push ebx
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x14]
call fcn.004112dd
add esp, 0x14
test eax, eax
je 0x41150c
and dword [ebp - 0xc], 0
test ebx, ebx
jle 0x41150c
and dword [ebp - 0x20], 0
and dword [ebp - 8], 0
test edi, edi
jle 0x4114e7
xor eax, eax
cmp dword [ebp + 0x14], eax
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], eax
jle 0x4114f8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
xor esi, esi
cmp dword [ebp + 0x10], esi
jle 0x4114c1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], ebx
jge 0x41150c
mov eax, dword [ebp - 8]
lea ecx, [esi + eax]
cmp ecx, edi
jge 0x41150c
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 0x4114bd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4114bd
mov al, byte [eax]
cmp al, byte [ecx + 2]
jne 0x4114bd
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x41146e
jmp 0x4114c1
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 0x41145c
cmp byte [ebp - 1], 0
jne 0x4114f8
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jl 0x411441
inc dword [ebp - 0xc]
add dword [ebp - 0x20], edi
cmp dword [ebp - 0xc], ebx
jl 0x411435
jmp 0x41150c
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.00410c3b
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 0x41153d
or eax, 0xffffffff
pop edi
pop ebx
leave
ret