Function at 0x100016d0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x80
push ebx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
push esi
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov dword [esp + 8], ebx
test ebx, ebx
jne 0x10001706
pop esi
pop ebx
add esp, 0x80
ret
push ebp
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x10001954
push edi
push 0x10
lea eax, [esp + 0x3c]
push eax
call sub.NTDLL.dll_RtlZeroMemory
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], 0
cmp eax, 0x640
jg 0x10001764
mov edi, ecx
mov esi, eax
mov dword [esp + 0x1c], edi
cmp ecx, 0x640
jle 0x100017a7
movsd xmm0, qword [0x10009a88]
movd xmm2, eax
movaps xmm1, xmm0
movd xmm3, ecx
cvtdq2pd xmm2, xmm2
mov dword [esp + 0x18], 1
cvtdq2pd xmm3, xmm3
divsd xmm0, xmm2
divsd xmm1, xmm3
minsd xmm1, xmm0
mulsd xmm3, xmm1
mulsd xmm2, xmm1
cvttsd2si edi, xmm3
cvttsd2si esi, xmm2
mov dword [esp + 0x1c], edi
push edi
push esi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x20], eax
test eax, eax
je 0x10001948
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x1000193e
cmp eax, 0xffffffff
je 0x1000193e
cmp dword [esp + 0x18], 0
je 0x1000180a
push 4
push ebp
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 0x40cc0020
push dword [esp + 0x2c]
push dword [esp + 0x34]
push 0
push 0
push ebx
push edi
push esi
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push ebp
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x10001825
push 0x40cc0020
push 0
push 0
push ebx
push edi
push esi
push dword [esp + 0x54]
push dword [esp + 0x54]
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x1000193e
push 0
push 0
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov edi, eax
test edi, edi
je 0x1000193e
push edi
push dword [esp + 0x20]
lea eax, [esp + 0x28]
push esi
push eax
call fcn.10006400
add esp, 0x10
test eax, eax
je 0x10001938
push 0x48
lea eax, [esp + 0x4c]
push eax
call sub.NTDLL.dll_RtlZeroMemory
mov eax, dword [edi]
lea ecx, [esp + 0x48]
push 1
push ecx
push edi
call dword [eax + 0x30]
test eax, eax
js 0x10001938
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x10001934
push 4
push 0x1000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, eax
test ebp, ebp
je 0x10001930
push 8
lea eax, [esp + 0x30]
push eax
call sub.NTDLL.dll_RtlZeroMemory
mov eax, dword [edi]
xorps xmm0, xmm0
push 0
push 0
movlpd qword [esp + 0x34], xmm0
push dword [esp + 0x38]
push dword [esp + 0x38]
push edi
call dword [eax + 0x14]
test eax, eax
js 0x10001922
xor esi, esi
test ebx, ebx
je 0x10001922
mov ecx, dword [edi]
lea eax, [esp + 0x1c]
push eax
mov eax, ebx
mov dword [esp + 0x20], 0
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push edi
call dword [ecx + 0xc]
test eax, eax
js 0x10001902
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10001902
add esi, eax
cmp esi, ebx
jb 0x100018d4
test esi, esi
je 0x10001922
mov eax, dword [esp + 0x98]
mov dword [esp + 0x24], 1
mov dword [eax], esi
mov eax, dword [esp + 0x94]
mov dword [eax], ebp
jmp 0x10001930
push 0x8000
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0x34]
pop edi
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x20]
pop ebp
pop esi
pop ebx
add esp, 0x80
ret