Function at 0x5716dc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x87
push 0
push 0
dec ecx
jne 0x5716e5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x571c2d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.0040452c
lea eax, [ebp - 0x24]
mov edx, dword [ebp + 8]
call fcn.0040452c
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00567b18
mov eax, dword [ebp - 0x7a]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00567b18
mov eax, dword [ebp - 0xda]
push eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
mov edx, dword [ebp - 0x28]
mov eax, 0x571c48
call fcn.00404aa8
test eax, eax
jg 0x571790
mov edx, dword [ebp - 0x28]
mov eax, 0x571c54
call fcn.00404aa8
test eax, eax
jle 0x571798
lea eax, [ebp - 0x24]
call fcn.00404494
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 8], 0
jne 0x5717c5
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 0x28]
call fcn.00409d48
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x28]
call fcn.0040452c
jmp 0x571893
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 8], 0
je 0x571893
xor eax, eax
push ebp
push 0x571831
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x28]
call fcn.00409c80
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 0x24]
call fcn.004047b0
mov eax, dword [ebp - 0x118]
call fcn.00565874
test al, al
jne 0x571827
xor ecx, ecx
mov dl, 1
mov eax, dword [0x408224]
call fcn.0040d8e0
call fcn.00403e10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x571893
lea ecx, [ebp - 0x19c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00567b18
test byte [ebp - 0x176], 0x10
jne 0x571bc6
lea ecx, [ebp - 0x20c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00567b18
mov eax, dword [ebp - 0x1de]
call fcn.00404764
mov ebx, eax
lea ecx, [ebp - 0x27c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00567b18
mov eax, dword [ebp - 0x24e]
cmp byte [eax + ebx - 1], 0x2f
je 0x571bc6
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.004047b0
mov eax, dword [ebp - 0x2c]
call fcn.00409944
test al, al
je 0x571a10
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 9], 0
jne 0x57194b
mov eax, dword [ebp - 0x2c]
call fcn.00409ab8
mov dword [ebp - 0x18], eax
test byte [ebp - 0x18], 1
jne 0x571bc6
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
mov al, byte [eax + 7]
sub al, 1
jb 0x57196a
dec al
je 0x571bc6
dec eax
sub al, 2
jb 0x57198b
jmp 0x571a10
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x40]
cmp byte [ebp - 0x2d], 0
je 0x571bc6
jmp 0x571a10
mov eax, dword [ebp - 0x2c]
call fcn.004098dc
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2ec]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00567b18
mov ax, word [ebp - 0x2de]
mov word [ebp - 2], ax
lea ecx, [ebp - 0x35c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00567b18
mov ax, word [ebp - 0x350]
mov word [ebp - 4], ax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
jl 0x5719f8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 7], 3
je 0x571bc6
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
jg 0x571a10
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 7], 4
je 0x571bc6
xor eax, eax
push ebp
push 0x571a63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x2c]
call fcn.00409944
test al, al
je 0x571a42
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.00409acc
mov eax, dword [ebp - 0x2c]
call fcn.00404964
push eax
call sub.kernel32.dll_DeleteFileA
push 0xffff
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x41c764]
call fcn.00421450
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x571aa0
xor eax, eax
push ebp
push 0x571bbc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x2e], 0
xor eax, eax
push ebp
push 0x571ad8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00570194
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x571aeb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x571bc6
lea ecx, [ebp - 0x3cc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00567b18
mov ax, word [ebp - 0x3be]
mov word [ebp - 2], ax
lea ecx, [ebp - 0x43c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00567b18
mov ax, word [ebp - 0x430]
mov word [ebp - 4], ax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
call fcn.00409a60
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 0x10], 0
je 0x571b74
mov eax, dword [ebp - 0x2c]
call fcn.005661fc
test al, al
je 0x571b74
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_FlushFileBuffers
mov eax, dword [ebp - 0x20]
call fcn.0040356c
mov eax, dword [ebp - 8]
cmp byte [eax + 0x76], 0
jne 0x571b94
mov eax, dword [ebp - 8]
cmp byte [eax + 0x74], 0
jne 0x571b94
cmp byte [ebp - 0x2e], 0
je 0x571ba4
mov eax, dword [ebp - 0x2c]
call fcn.00404964
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x571bbb
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 0xa], 0
je 0x571bbb
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
call fcn.00409acc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x571c34
lea eax, [ebp - 0x43c]
mov edx, dword [0x564dc8]
mov ecx, 7
call fcn.0040528c
lea eax, [ebp - 0x12c]
mov edx, 2
call fcn.004044b8
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.004044b8
lea eax, [ebp - 0x110]
mov edx, dword [0x564dc8]
mov ecx, 2
call fcn.0040528c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004044b8
ret