Function at 0x5796a8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.004064dc
mov eax, dword [ebp - 8]
call fcn.004064dc
mov eax, dword [ebp + 8]
call fcn.004064dc
xor eax, eax
push ebp
push 0x579abb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x4c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x50], 0xfffffffd
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x54], 0
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x58], edx
mov eax, dword [ebp - 0x10]
add eax, 0x5c
mov edx, 0x579ad8
call fcn.004064f4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov edx, 0x579af8
mov eax, 0x579b24
call fcn.0050c8a0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x9c], 0
je 0x579752
mov ebx, dword [ebp - 0x10]
call dword [ebx + 0x9c]
jmp 0x579754
mov al, 1
test al, al
je 0x579a5d
mov edx, 0x579af8
mov eax, 0x579b4c
call fcn.0050c8a0
mov byte [ebp - 0x21], 0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.0045d3fc
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0xc]
call fcn.0046491c
mov eax, dword [ebp - 0xc]
call fcn.0045cfbc
test al, al
jne 0x579799
mov eax, dword [ebp - 0xc]
call fcn.0045cfe0
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.0050f98c
test al, al
je 0x5797e7
mov edx, 0x579af8
mov eax, 0x579b7c
call fcn.0050c8a0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x58], 0x2710
mov eax, dword [ebp - 0x10]
add eax, 0x5c
mov edx, 0x579ba4
call fcn.004064f4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
jmp 0x579967
mov edx, 0x579af8
mov eax, 0x579bc4
call fcn.0050c8a0
xor eax, eax
mov dword [ebp - 0x14], eax
call fcn.004601c4
fstp qword [ebp - 0x20]
wait
push 0x579bf0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x84]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.005792c4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x84]
call fcn.005795d8
jmp 0x579954
xor eax, eax
push ebp
push 0x579851
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x64
call sub.kernel32.dll_Sleep_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57985b
xor eax, eax
push ebp
push 0x5798e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x84]
mov eax, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
add eax, 1
adc edx, 0
push edx
push eax
push dword [esi + 0x64]
push dword [esi + 0x60]
mov eax, 0x2710
xor edx, edx
call fcn.0040743c
call fcn.00407484
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x58], ebx
test ebx, ebx
jne 0x5798a6
cmp ebx, 2
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + 0x84]
mov eax, dword [edi + 0x58]
mov edx, dword [edi + 0x5c]
sub eax, dword [edi + 0x60]
sbb edx, dword [edi + 0x64]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], edx
mov eax, dword [ebp - 0x10]
add eax, 0x5c
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x84]
mov edx, dword [edx + 0x54]
call fcn.004064f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5798ef
mov eax, dword [ebp - 0x14]
cdq
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x84]
cmp edx, dword [ecx + 0x64]
jne 0x57993c
cmp eax, dword [ecx + 0x60]
jne 0x57993c
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.004601c4
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.005447e0
test edx, edx
jge 0x579928
neg eax
adc edx, 0
neg edx
cmp edx, 0
jne 0x579934
cmp eax, 0x1e
jbe 0x579954
jmp 0x579936
jle 0x579954
mov byte [ebp - 0x21], 1
jmp 0x579967
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x84]
mov eax, dword [eax + 0x60]
mov dword [ebp - 0x14], eax
call fcn.004601c4
fstp qword [ebp - 0x20]
wait
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x84]
cmp byte [eax + 0x6b], 0
je 0x579832
mov edx, 0x579af8
mov eax, 0x579c00
call fcn.0050c8a0
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.0050f98c
test al, al
je 0x5799a7
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x54], 0
jne 0x5799a7
mov edx, 0x579af8
mov eax, 0x579c2c
call fcn.0050c8a0
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x50], edx
jmp 0x579a11
mov edx, 0x579af8
mov eax, 0x579c5c
call fcn.0050c8a0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x50], 0xfffffffe
mov eax, dword [ebp - 8]
call fcn.00406580
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x579a11
xor eax, eax
push ebp
push 0x579a07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00406580
mov edx, 0x579c7c
mov ecx, 1
call fcn.00578164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x579a11
cmp byte [ebp - 0x21], 0
je 0x579a48
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x50], 0xffffffff
push 0x579c8c
push dword [ebp - 8]
push 0x579cac
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00406998
mov eax, dword [ebp - 0x2c]
mov edx, 0x579af8
call fcn.0050c8a0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x54], 0
je 0x579a6c
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x50], 1
jmp 0x579a6c
mov edx, 0x579af8
mov eax, 0x579ccc
call fcn.0050c8a0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x40], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x4c], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x81], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x54], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x579ac2
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004064ec
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004064ec
lea eax, [ebp + 8]
call fcn.004064e4
ret