Function at 0x406907
Capabilities:
Capture screenshot

Disassembly:
mov eax, 0x42e88c
call fcn.004101c8
sub esp, 0x58
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00425c29
mov ebx, eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x10], ebx
call fcn.00425b87
xor eax, eax
cmp ebx, eax
mov dword [ebp - 4], eax
je 0x406941
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call edi
push eax
lea ecx, [ebp - 0x4c]
call fcn.00425c3e
lea ecx, [ebp - 0x2c]
call fcn.00425b87
test ebx, ebx
mov byte [ebp - 4], 1
je 0x406966
mov ebx, dword [ebx + 4]
push ebx
call edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00425c3e
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40697d
xor eax, eax
jmp 0x406980
mov eax, dword [ebx + 4]
push eax
push dword [ebp - 0x28]
call fcn.00425d69
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x64]
push eax
push 0x18
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
cdq
idiv dword [ebp + 0x14]
mov dword [ebp + 8], ecx
mov dword [ebp + 0x14], eax
mov ebx, eax
imul ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.004264b9
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x10]
push ecx
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.00426462
test edi, edi
je 0x4069f1
mov edi, dword [edi + 4]
push edi
push dword [ebp - 0x48]
call fcn.00425d69
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x68]
lea eax, [ebp - 0x2c]
mov edx, dword [esi + 0x70]
neg eax
sbb eax, eax
mov edi, 0xcc0020
and eax, dword [ebp - 0x28]
push edi
push 0
push ebx
push eax
push ecx
push edx
push 0
push 0
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x406a31
xor bl, bl
jmp 0x406cc8
mov edx, dword [esi + 0x6c]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
sub eax, edx
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x2c]
sub ecx, edx
push edi
push dword [ebp + 0x10]
neg eax
sbb eax, eax
push ebx
and eax, dword [ebp - 0x28]
push eax
push edx
push dword [esi + 0x70]
push ecx
push 0
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x406a2a
mov edx, dword [esi + 0x74]
mov ecx, dword [ebp - 0x34]
mov eax, ebx
sub ecx, edx
sub eax, edx
push edi
add eax, dword [ebp + 0x14]
push 0
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x2c]
push dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
push eax
push dword [esi + 0x68]
push edx
push 0
push ecx
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x406a2a
mov edx, dword [esi + 0x6c]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x74]
sub eax, edx
mov dword [ebp + 0x10], eax
mov eax, ebx
sub eax, ecx
mov ecx, dword [ebp - 0x30]
add eax, dword [ebp + 0x14]
sub ecx, edx
push edi
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [esi + 0x74]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
push eax
push edx
push dword [esi + 0x74]
push ecx
push dword [ebp - 0x14]
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x406a2a
mov ecx, dword [esi + 0x6c]
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x68]
sub eax, ecx
mov ecx, dword [esi + 0x74]
sub eax, edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
sub eax, ecx
mov ecx, dword [ebp - 0x30]
sub eax, dword [esi + 0x70]
sub ecx, dword [esi + 0x6c]
push edi
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [esi + 0x74]
push dword [ebp + 0x10]
sub ecx, edx
sub eax, dword [esi + 0x70]
push dword [ebp + 0xc]
sub ecx, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
push edx
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
neg eax
sbb eax, eax
add edx, ebx
and eax, dword [ebp - 0x28]
push edx
push eax
push ecx
push dword [ebp - 0x14]
push dword [esi + 0x68]
push dword [esi + 0x70]
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [esi + 0x74]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x70]
sub eax, edx
sub eax, ecx
mov ecx, dword [ebp - 0x34]
sub ecx, edx
mov edx, dword [esi + 0x70]
sub ecx, dword [esi + 0x70]
mov dword [ebp + 0x10], eax
push edi
lea eax, [ebp - 0x2c]
sub ecx, dword [ebp - 0x3c]
push dword [esi + 0x68]
neg eax
push dword [ebp + 0x10]
sbb eax, eax
add edx, ebx
and eax, dword [ebp - 0x28]
push 0
push edx
push eax
push dword [esi + 0x68]
push ecx
push 0
push dword [esi + 0x70]
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ecx, dword [esi + 0x74]
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, dword [esi + 0x70]
mov ecx, dword [ebp - 0x34]
sub ecx, dword [esi + 0x74]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
sub ecx, dword [esi + 0x70]
sub eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x3c]
sub eax, edx
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x2c]
push edx
push dword [ebp + 0x10]
mov edx, dword [esi + 0x70]
neg eax
push dword [ebp + 0xc]
sbb eax, eax
add edx, ebx
and eax, dword [ebp - 0x28]
push edx
push eax
push dword [esi + 0x6c]
push ecx
push dword [ebp - 0x14]
push dword [esi + 0x70]
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 0x6c]
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x68]
sub edx, eax
sub edx, ecx
mov ecx, dword [ebp - 0x30]
sub ecx, eax
lea eax, [ebp - 0x2c]
sub ecx, dword [esi + 0x68]
push edi
neg eax
push edx
mov edx, dword [esi + 0x68]
push dword [esi + 0x70]
sbb eax, eax
and eax, dword [ebp - 0x28]
push edx
push ebx
push eax
push ecx
push dword [esi + 0x70]
push edx
push 0
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ecx, dword [esi + 0x6c]
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x68]
sub eax, ecx
sub eax, edx
mov ecx, dword [ebp - 0x30]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x74]
sub ecx, dword [esi + 0x6c]
sub ebx, eax
add ebx, dword [ebp + 0x14]
push edi
push dword [ebp + 8]
sub ecx, edx
mov dword [ebp + 0x14], ebx
mov ebx, dword [ebp - 0x34]
push dword [esi + 0x74]
sub ebx, eax
lea eax, [ebp - 0x2c]
neg eax
sbb eax, eax
push edx
and eax, dword [ebp - 0x28]
push dword [ebp + 0x14]
push eax
push ecx
push dword [esi + 0x74]
push edx
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406c82
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x28]
call fcn.00425d69
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x406c95
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x48]
call fcn.00425d69
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.USER32.dll_ReleaseDC]
push dword [eax + 4]
push dword [esi + 0x1c]
call edi
push dword [ebp - 0x28]
push dword [esi + 0x1c]
call edi
push dword [ebp - 0x48]
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x3c], 1
mov bl, 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00425ca6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00425ca6
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10