Function at 0x67899490
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x67ad7034]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push 0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x78], edi
push eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.GdiPlus.dll_GdiplusStartup]
test edi, edi
je 0x67899760
push edi
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
je 0x67899760
push edi
call dword [sym.imp.user32.dll_IsIconic]
test eax, eax
je 0x67899500
push 9
push edi
call dword [sym.imp.user32.dll_ShowWindow]
push edi
call dword [sym.imp.user32.dll_SetForegroundWindow]
test eax, eax
jne 0x67899523
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.679343f5
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.user32.dll_GetWindowRect]
lea eax, [ebp - 0x3c]
push eax
push edi
call esi
test eax, eax
jne 0x6789954c
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.679343f5
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.user32.dll_GetDesktopWindow]
lea ecx, [ebp - 0x50]
push ecx
push eax
call esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.user32.dll_IntersectRect]
test eax, eax
jne 0x67899577
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [ebp - 0x1c], xmm0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.user32.dll_IsRectEmpty]
test eax, eax
je 0x6789959d
mov eax, 0xfffffffb
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.679343f5
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
sub ebx, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x18]
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x68], esi
call dword [sym.imp.user32.dll_GetWindowDC]
push eax
mov dword [ebp - 0x6c], eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push esi
push ebx
push dword [ebp - 0x6c]
mov edi, eax
mov dword [ebp - 0x70], edi
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
mov ecx, eax
mov dword [ebp - 0x74], ecx
test ecx, ecx
je 0x6789974b
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
jns 0x678995e8
neg ebx
jmp 0x678995ea
xor ebx, ebx
mov eax, dword [ebp - 0x38]
test eax, eax
jns 0x678995f8
neg eax
mov dword [ebp - 0x64], eax
jmp 0x678995ff
mov dword [ebp - 0x64], 0
push ecx
push edi
mov edi, dword [sym.imp.gdi32.dll_SelectObject]
call edi
push 0xcc0020
push dword [ebp - 0x64]
mov esi, eax
push ebx
push dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x70]
push dword [ebp - 0x68]
push dword [ebp - 0xc]
push 0
push 0
push ebx
call dword [sym.imp.gdi32.dll_BitBlt]
push esi
push ebx
call edi
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push eax
push 0
push dword [ebp - 0x74]
call dword [sym.imp.GdiPlus.dll_GdipCreateBitmapFromHBITMAP]
lea eax, [ebp - 0x64]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x64], 0
push eax
call dword [sym.imp.GdiPlus.dll_GdipGetImageEncodersSize]
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x678996ef
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x678996ef
push ebx
push dword [ebp - 0x64]
push dword [ebp - 0xc]
call dword [sym.imp.GdiPlus.dll_GdipGetImageEncoders]
xor esi, esi
cmp dword [ebp - 0xc], esi
jbe 0x678996e5
lea edi, [ebx + 0x30]
mov eax, dword [edi]
mov ecx, 0x67abc934
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x678996c6
test dx, dx
je 0x678996c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x678996c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x678996a0
xor eax, eax
jmp 0x678996cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x678996da
inc esi
add edi, 0x4c
cmp esi, dword [ebp - 0xc]
jb 0x67899693
jmp 0x678996e5
imul eax, esi, 0x4c
movups xmm0, xmmword [eax + ebx]
movups xmmword [ebp - 0x60], xmm0
push ebx
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x60]
push 0
push eax
push 0x67abda30
push esi
call dword [sym.imp.GdiPlus.dll_GdipSaveImageToFile]
mov edi, dword [ebp - 0x70]
mov ebx, dword [sym.imp.gdi32.dll_DeleteDC]
push edi
call ebx
push edi
push 0
call dword [sym.imp.user32.dll_ReleaseDC]
push dword [ebp - 0x74]
mov edi, dword [sym.imp.gdi32.dll_DeleteObject]
call edi
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x67899735
push eax
push dword [ebp - 0x78]
call dword [sym.imp.user32.dll_ReleaseDC]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x6789973f
push eax
call ebx
push dword [ebp - 0x74]
call edi
push esi
call dword [sym.imp.GdiPlus.dll_GdipDisposeImage]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.679343f5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.679343f5
mov esp, ebp
pop ebp
ret 4