Function at 0x539ea0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x539ea9
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405d78
mov eax, dword [ebp - 8]
call fcn.00405d78
mov eax, dword [ebp - 0xc]
call fcn.00405d78
xor eax, eax
push ebp
push 0x53a254
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.005149b4
mov byte [ebp - 0x35], 0
lea eax, [ebp - 0x20]
mov edx, 0x53a26c
call fcn.0040594c
lea eax, [ebp - 0x40]
mov ecx, 0x53a284
mov edx, dword [ebp - 0x10]
call fcn.00405bd4
mov eax, dword [ebp - 0x40]
push eax
push 0x53a298
push dword [ebp - 0x20]
push 0x53a2ac
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00405c48
mov eax, dword [ebp - 0x44]
xor ecx, ecx
pop edx
call fcn.00514888
test al, al
je 0x53a147
lea eax, [ebp - 0x48]
mov ecx, 0x53a284
mov edx, dword [ebp - 0x10]
call fcn.00405bd4
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x426cc0]
call fcn.00426d78
mov dword [ebp - 0x24], eax
call fcn.005140c0
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 1
push 0x53a2c8
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
call fcn.0040a848
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x14]
mov edx, 0x53a2c8
call fcn.00405cd4
je 0x53a138
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x53a12b
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 1
call fcn.005140c0
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x30]
sub edx, 1
jno 0x539fd1
call fcn.00404884
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00405cd4
jne 0x53a11f
mov byte [ebp - 0x35], 1
mov eax, dword [ebp - 0x24]
call fcn.004049b4
lea eax, [ebp - 0x50]
mov ecx, 0x53a284
mov edx, dword [ebp - 0x10]
call fcn.00405bd4
mov eax, dword [ebp - 0x50]
call fcn.00405d88
push eax
call sub.kernel32.dll_DeleteFileA
push dword [ebp - 0x10]
push dword [ebp - 4]
push 0x53a2d8
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00405c48
mov eax, dword [ebp - 0x54]
call fcn.00405d88
push eax
call sub.kernel32.dll_DeleteFileA
push dword [ebp - 0x10]
push dword [ebp - 4]
push 0x53a2e8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405c48
lea edx, [ebp - 0x58]
xor eax, eax
call fcn.00403210
mov eax, dword [ebp - 0x58]
xor edx, edx
call fcn.0040af70
mov dl, 1
mov eax, dword [0x41a280]
call fcn.00404984
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x53a0c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x53a2f8
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x53a338
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x53a384
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a0cf
mov eax, dword [ebp - 0x34]
call fcn.004049b4
ret
inc dword [ebp - 0x30]
dec dword [ebp - 0x3c]
jne 0x539fbc
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0x65
jne 0x539f73
mov dword [0x5a87fc], 1
jmp 0x53a202
cmp dword [0x5a87fc], 0x1e
setg al
or al, byte [ebp + 8]
je 0x53a1af
mov byte [ebp - 0x35], 1
mov eax, 0x53a3e8
call fcn.0044b124
lea eax, [ebp - 0x64]
mov ecx, 0x53a284
mov edx, dword [ebp - 0x10]
call fcn.00405bd4
mov eax, dword [ebp - 0x64]
call fcn.00405d88
push eax
call sub.kernel32.dll_DeleteFileA
push dword [ebp - 0x10]
push dword [ebp - 4]
push 0x53a2d8
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.00405c48
mov eax, dword [ebp - 0x68]
call fcn.00405d88
push eax
call sub.kernel32.dll_DeleteFileA
call fcn.004056ec
jmp 0x53a202
mov byte [ebp - 0x35], 1
cmp dword [0x5a87fc], 0xf
jle 0x53a202
push 0x53a470
lea edx, [ebp - 0x70]
mov eax, 0x1e
sub eax, dword [0x5a87fc]
jno 0x53a1d6
call fcn.00404884
call fcn.0040a848
push dword [ebp - 0x70]
push 0x53a4b8
push 0x53a4e8
push 0x53a4f4
lea eax, [ebp - 0x6c]
mov edx, 5
call fcn.00405c48
mov eax, dword [ebp - 0x6c]
call fcn.0044b124
mov eax, dword [ebp - 0x24]
call fcn.004049b4
lea eax, [ebp - 0x74]
mov ecx, 0x53a284
mov edx, dword [ebp - 0x10]
call fcn.00405bd4
mov eax, dword [ebp - 0x74]
call fcn.00405d88
push eax
call sub.kernel32.dll_DeleteFileA
movzx ebx, byte [ebp - 0x35]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a25b
lea eax, [ebp - 0x74]
mov edx, 0xe
call fcn.004058d8
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.004058d8
ret