Function at 0x51df20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x51df29
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.00405d50
mov eax, dword [ebp - 8]
call fcn.00405d50
mov eax, dword [ebp - 0xc]
call fcn.00405d50
xor eax, eax
push ebp
push 0x51e2d4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004f71fc
mov byte [ebp - 0x35], 0
lea eax, [ebp - 0x20]
mov edx, 0x51e2ec
call fcn.00405924
lea eax, [ebp - 0x40]
mov ecx, 0x51e304
mov edx, dword [ebp - 0x10]
call fcn.00405bac
mov eax, dword [ebp - 0x40]
push eax
push 0x51e318
push dword [ebp - 0x20]
push 0x51e32c
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00405c20
mov eax, dword [ebp - 0x44]
xor ecx, ecx
pop edx
call fcn.004f70d0
test al, al
je 0x51e1c7
lea eax, [ebp - 0x48]
mov ecx, 0x51e304
mov edx, dword [ebp - 0x10]
call fcn.00405bac
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x426950]
call fcn.00426a08
mov dword [ebp - 0x24], eax
call fcn.004f6908
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 1
push 0x51e348
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
call fcn.0040a724
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, 0x51e348
call fcn.00405cac
je 0x51e1b8
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x51e1ab
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 1
call fcn.004f6908
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x30]
sub edx, 1
jno 0x51e051
call fcn.0040485c
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00405cac
jne 0x51e19f
mov byte [ebp - 0x35], 1
mov eax, dword [ebp - 0x24]
call fcn.0040498c
lea eax, [ebp - 0x50]
mov ecx, 0x51e304
mov edx, dword [ebp - 0x10]
call fcn.00405bac
mov eax, dword [ebp - 0x50]
call fcn.00405d60
push eax
call sub.kernel32.dll_DeleteFileA
push dword [ebp - 0x10]
push dword [ebp - 4]
push 0x51e358
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00405c20
mov eax, dword [ebp - 0x54]
call fcn.00405d60
push eax
call sub.kernel32.dll_DeleteFileA
push dword [ebp - 0x10]
push dword [ebp - 4]
push 0x51e368
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405c20
lea edx, [ebp - 0x58]
xor eax, eax
call fcn.004031e8
mov eax, dword [ebp - 0x58]
xor edx, edx
call fcn.0040ae4c
mov dl, 1
mov eax, dword [0x419f28]
call fcn.0040495c
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x51e148
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x51e378
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x51e3b8
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x51e404
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 0x51e14f
mov eax, dword [ebp - 0x34]
call fcn.0040498c
ret
inc dword [ebp - 0x30]
dec dword [ebp - 0x3c]
jne 0x51e03c
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0x65
jne 0x51dff3
mov dword [0x55766c], 1
jmp 0x51e282
cmp dword [0x55766c], 0x1e
setg al
or al, byte [ebp + 8]
je 0x51e22f
mov byte [ebp - 0x35], 1
mov eax, 0x51e468
call fcn.0044a1f0
lea eax, [ebp - 0x64]
mov ecx, 0x51e304
mov edx, dword [ebp - 0x10]
call fcn.00405bac
mov eax, dword [ebp - 0x64]
call fcn.00405d60
push eax
call sub.kernel32.dll_DeleteFileA
push dword [ebp - 0x10]
push dword [ebp - 4]
push 0x51e358
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.00405c20
mov eax, dword [ebp - 0x68]
call fcn.00405d60
push eax
call sub.kernel32.dll_DeleteFileA
call fcn.004056c4
jmp 0x51e282
mov byte [ebp - 0x35], 1
cmp dword [0x55766c], 0xf
jle 0x51e282
push 0x51e4f0
lea edx, [ebp - 0x70]
mov eax, 0x1e
sub eax, dword [0x55766c]
jno 0x51e256
call fcn.0040485c
call fcn.0040a724
push dword [ebp - 0x70]
push 0x51e538
push 0x51e568
push 0x51e574
lea eax, [ebp - 0x6c]
mov edx, 5
call fcn.00405c20
mov eax, dword [ebp - 0x6c]
call fcn.0044a1f0
mov eax, dword [ebp - 0x24]
call fcn.0040498c
lea eax, [ebp - 0x74]
mov ecx, 0x51e304
mov edx, dword [ebp - 0x10]
call fcn.00405bac
mov eax, dword [ebp - 0x74]
call fcn.00405d60
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 0x51e2db
lea eax, [ebp - 0x74]
mov edx, 0xe
call fcn.004058b0
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.004058b0
ret