Function at 0x10011da0
Capabilities:
Capture screenshot
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x10012055
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, ebx
je 0x10012055
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0xc], eax
cmp eax, ebx
je 0x1001204d
push edi
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, ebx
je 0x1001203d
mov ecx, dword [esp + 0xc]
push esi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x28]
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
push 0x660046
sar eax, 1
sub edx, eax
push edx
mov edx, dword [esp + 0x18]
sub ecx, eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push edi
push edi
push ebx
push ebx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x10012036
lea ecx, [esp + 0x40]
push ecx
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x5c], eax
mov edx, 1
mov word [esp + 0x64], dx
shl eax, 5
mov edx, 0x20
mov word [esp + 0x66], dx
add eax, 0x1f
cdq
and edx, 0x1f
lea edi, [edx + eax]
sar edi, 5
imul edi, ecx
add edi, edi
add edi, edi
push edi
push 0x42
mov dword [esp + 0x60], 0x28
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x10012036
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x48]
push ebx
lea ecx, [esp + 0x5c]
push ecx
push eax
push edx
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push esi
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
mov ecx, dword [ebp + 8]
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10012032
push 1
push ebx
push ebx
lea edx, [edi + 0x36]
mov eax, 0x4d42
push esi
mov dword [esp + 0x4a], 0x36
mov dword [esp + 0x42], edx
mov word [esp + 0x40], ax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push 0xe
push ebx
push eax
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0xe
lea edx, [esp + 0x3c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
push ebx
push 0xe
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push 1
push ebx
push ebx
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push 0x28
push ebx
push eax
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push ebx
lea ecx, [esp + 0x24]
push ecx
push 0x28
lea edx, [esp + 0x64]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
push ebx
push 0x28
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x14], ebx
je 0x10011ffa
cmp edi, ebx
je 0x10011ffa
push 1
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push edi
push ebx
push eax
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_LockFile]
mov edx, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x24]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
push ebx
push edi
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x14], ebx
cmp esi, ebx
je 0x10012032
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10012032
test byte [esp + 0x14], 2
jne 0x10012032
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0xc]
push edx
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x10]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4