Function at 0x513118
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x513121
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.00405c14
mov eax, dword [ebp - 8]
call fcn.00405c14
mov eax, dword [ebp - 0xc]
call fcn.00405c14
xor eax, eax
push ebp
push 0x5134bc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0050dbbc
mov byte [ebp - 0x35], 1
lea eax, [ebp - 0x20]
mov edx, 0x5134d4
call fcn.004057e8
lea eax, [ebp - 0x40]
mov ecx, 0x5134ec
mov edx, dword [ebp - 0x10]
call fcn.00405a70
mov eax, dword [ebp - 0x40]
push eax
push 0x513500
push dword [ebp - 0x20]
push 0x513514
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00405ae4
mov eax, dword [ebp - 0x44]
xor ecx, ecx
pop edx
call fcn.0050da90
test al, al
je 0x5133b2
lea eax, [ebp - 0x48]
mov ecx, 0x5134ec
mov edx, dword [ebp - 0x10]
call fcn.00405a70
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x426918]
call fcn.004269d0
mov dword [ebp - 0x24], eax
call fcn.0050d2f4
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 1
push 0x513530
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
call fcn.0040a5d8
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, 0x513530
call fcn.00405b70
je 0x5133a3
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x513396
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 1
call fcn.0050d2f4
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x30]
dec edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00405b70
jne 0x51338a
mov eax, dword [ebp - 0x24]
call fcn.00404850
lea eax, [ebp - 0x50]
mov ecx, 0x5134ec
mov edx, dword [ebp - 0x10]
call fcn.00405a70
mov eax, dword [ebp - 0x50]
call fcn.00405c24
push eax
call sub.kernel32.dll_DeleteFileA
push dword [ebp - 0x10]
push dword [ebp - 4]
push 0x513540
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00405ae4
mov eax, dword [ebp - 0x54]
call fcn.00405c24
push eax
call sub.kernel32.dll_DeleteFileA
push dword [ebp - 0x10]
push dword [ebp - 4]
push 0x513550
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405ae4
lea edx, [ebp - 0x58]
xor eax, eax
call fcn.004031e8
mov eax, dword [ebp - 0x58]
xor edx, edx
call fcn.0040ad00
mov dl, 1
mov eax, dword [0x419fb4]
call fcn.00404820
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x513333
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x513560
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5135a0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5135ec
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 0x51333a
mov eax, dword [ebp - 0x34]
call fcn.00404850
ret
inc dword [ebp - 0x30]
dec dword [ebp - 0x3c]
jne 0x513234
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0x65
jne 0x5131eb
mov dword [0x553610], 1
jmp 0x51346a
cmp byte [ebp + 8], 0
je 0x51346a
mov eax, 0x513650
call fcn.0044812c
cmp dword [0x553610], 0x3c
setg al
or al, byte [ebp + 8]
je 0x51341e
lea eax, [ebp - 0x64]
mov ecx, 0x5134ec
mov edx, dword [ebp - 0x10]
call fcn.00405a70
mov eax, dword [ebp - 0x64]
call fcn.00405c24
push eax
call sub.kernel32.dll_DeleteFileA
push dword [ebp - 0x10]
push dword [ebp - 4]
push 0x513540
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.00405ae4
mov eax, dword [ebp - 0x68]
call fcn.00405c24
push eax
call sub.kernel32.dll_DeleteFileA
call fcn.00405588
mov byte [ebp - 0x35], 0
cmp dword [0x553610], 0x32
jle 0x51346a
push 0x5136d0
lea edx, [ebp - 0x70]
mov eax, 0x3c
sub eax, dword [0x553610]
call fcn.0040a5d8
push dword [ebp - 0x70]
push 0x513718
push 0x513748
push 0x513754
lea eax, [ebp - 0x6c]
mov edx, 5
call fcn.00405ae4
mov eax, dword [ebp - 0x6c]
call fcn.0044812c
mov eax, dword [ebp - 0x24]
call fcn.00404850
lea eax, [ebp - 0x74]
mov ecx, 0x5134ec
mov edx, dword [ebp - 0x10]
call fcn.00405a70
mov eax, dword [ebp - 0x74]
call fcn.00405c24
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 0x5134c3
lea eax, [ebp - 0x74]
mov edx, 0xe
call fcn.00405774
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00405774
ret