Function at 0x10007241
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x34], edx
xor esi, esi
mov dword [esp + 0x38], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, eax
push ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x100074ca
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
je 0x100074c0
push 0x10
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.NTDLL.dll_RtlZeroMemory]
lea eax, [esp + 0x40]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], esi
cmp edx, 0x640
jg 0x100072d4
mov eax, edx
mov ecx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
cmp ebx, 0x640
jle 0x1000731b
movsd xmm0, qword [0x10021118]
movd xmm2, edx
movaps xmm1, xmm0
movd xmm3, ebx
cvtdq2pd xmm2, xmm2
mov dword [esp + 0x1c], 1
cvtdq2pd xmm3, xmm3
divsd xmm0, xmm2
divsd xmm1, xmm3
minsd xmm1, xmm0
mulsd xmm2, xmm1
mulsd xmm3, xmm1
cvttsd2si eax, xmm2
cvttsd2si ecx, xmm3
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
push ecx
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x100074b5
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x100074ae
cmp eax, 0xffffffff
je 0x100074ae
cmp dword [esp + 0x1c], esi
je 0x10007383
push 4
push edi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 0x40cc0020
push dword [esp + 0x34]
push dword [esp + 0x30]
push esi
push esi
push ebp
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x64]
push dword [esp + 0x64]
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x100073a2
push 0x40cc0020
push esi
push esi
push ebp
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x100074ae
push esi
push esi
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov edi, eax
test edi, edi
je 0x100074aa
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push edi
push dword [esp + 0x14]
call fcn.10004ca1
pop ecx
pop ecx
test eax, eax
je 0x100074a0
mov ebx, dword [sym.imp.NTDLL.dll_RtlZeroMemory]
lea eax, [esp + 0x50]
push 0x48
push eax
call ebx
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push 1
push ecx
push edi
call dword [eax + 0x30]
test eax, eax
js 0x100074a0
mov ebp, dword [esp + 0x58]
test ebp, ebp
je 0x1000749c
push 4
push 0x1000
mov edx, ebp
call fcn.10006c4d
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000749c
push 8
lea eax, [esp + 0x2c]
push eax
call ebx
mov eax, dword [edi]
xorps xmm0, xmm0
push esi
push esi
movlpd qword [esp + 0x30], xmm0
push dword [esp + 0x34]
push dword [esp + 0x34]
push edi
call dword [eax + 0x14]
test eax, eax
js 0x10007490
mov ebx, esi
test ebp, ebp
je 0x10007490
mov ecx, dword [edi]
lea eax, [esp + 0x14]
push eax
mov eax, ebp
mov dword [esp + 0x18], esi
sub eax, ebx
push eax
mov eax, dword [esp + 0x18]
add eax, ebx
push eax
push edi
call dword [ecx + 0xc]
test eax, eax
js 0x10007477
cmp dword [esp + 0x14], esi
jbe 0x10007477
add ebx, dword [esp + 0x14]
cmp ebx, ebp
jb 0x1000744a
test ebx, ebx
je 0x10007490
mov eax, dword [esp + 0x34]
xor esi, esi
mov ecx, dword [esp + 0x38]
inc esi
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
jmp 0x1000749c
push ecx
mov ecx, dword [esp + 0x14]
xor edx, edx
call fcn.10007c48
mov ebp, dword [esp + 0x18]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, dword [esp + 0x3c]
push ebp
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret