Function at 0x580ed0
Capabilities:
Capture screenshot
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a365
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x5ed130]
xor eax, ebp
mov dword [ebp - 0x40], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x11], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x58121b
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x58121b
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x58120d
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x581203
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x28]
shl eax, 2
push eax
call fcn.0043d429
add esp, 4
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
je 0x5811f9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._x.bmp
lea edx, [ebp - 0x70]
push edx
call fcn.0043fe06
add esp, 0xc
push str.pic_
push 0x5fe808
lea eax, [ebp - 0xfc]
push eax
call fcn.00405830
add esp, 0xc
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x108], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x108]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00405830
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00401600
push 0x5def04
lea ecx, [ebp - 0x5c]
call fcn.00401700
push eax
call fcn.004433c7
add esp, 8
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x5811d9
push 0x2c
push 0
lea edx, [ebp - 0xdc]
push edx
call fcn.0043fa10
add esp, 0xc
mov dword [ebp - 0xdc], 0x2c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xd4], ecx
mov edx, 1
mov word [ebp - 0xd0], dx
mov eax, 0x18
mov word [ebp - 0xce], ax
mov dword [ebp - 0xcc], 0
mov ecx, 0x4d42
mov word [ebp - 0xb0], cx
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x28]
imul edx, edx, 3
add edx, 0x36
mov dword [ebp - 0xae], edx
xor eax, eax
mov word [ebp - 0xa8], ax
mov cx, word [ebp - 0xa8]
mov word [ebp - 0xaa], cx
mov dword [ebp - 0xa6], 0x36
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
lea edx, [ebp - 0xdc]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
mov ecx, dword [ebp - 0x60]
push ecx
push 1
push 0xe
lea edx, [ebp - 0xb0]
push edx
call fcn.00443593
add esp, 0x10
mov eax, dword [ebp - 0x60]
push eax
push 1
push 0x28
lea ecx, [ebp - 0xdc]
push ecx
call fcn.00443593
add esp, 0x10
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x28]
imul eax, eax, 3
push eax
push 1
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00443593
add esp, 0x10
mov edx, dword [ebp - 0x60]
push edx
call fcn.0044379f
add esp, 4
mov eax, dword [ebp - 0x60]
push eax
call fcn.00443872
add esp, 4
lea ecx, [ebp - 0xa0]
call fcn.00407760
lea ecx, [ebp - 0x5c]
call fcn.00401700
push eax
lea ecx, [ebp - 0xa0]
call fcn.00407bc0
test eax, eax
jl 0x5811bf
push 0x40
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.004083e0
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x5c]
call fcn.00401700
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xa0]
call fcn.00407830
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x100], edx
mov eax, dword [ebp - 0x100]
push eax
call fcn.00441a40
add esp, 4
lea ecx, [ebp - 0x5c]
call fcn.00401600
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret