Function at 0x4f5284
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x4f528d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004059b0
xor eax, eax
push ebp
push 0x4f5a08
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
call fcn.0040ae64
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x18]
call fcn.0040a40c
xor edx, edx
push ebp
push 0x4f5941
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x41d940]
call fcn.00404500
mov dword [ebp - 0x58], eax
mov dl, 1
mov eax, dword [0x41d940]
call fcn.00404500
mov dword [ebp - 0x5c], eax
mov dl, 1
mov eax, dword [0x41d940]
call fcn.00404500
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0x4b8]
xor ecx, ecx
mov edx, dword [ebp - 0x58]
call fcn.004d7f2c
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x40]
dec eax
imul dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x4c]
jg 0x4f591b
push 0x4f5a24
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x40]
call fcn.0040a628
push dword [ebp - 0x70]
push dword [ebp - 0x18]
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.004058c4
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0040ad98
lea edx, [ebp - 0x74]
mov eax, 0x4f5a30
call fcn.004b1bfc
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x28]
call fcn.004170a0
mov eax, dword [ebp - 0x14]
call fcn.0040abd8
test al, al
je 0x4f5393
mov eax, dword [ebp - 0x14]
call fcn.004059c0
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 0x18]
mov edx, 0x4f5a48
call fcn.00405958
jne 0x4f53d8
push 0x80
push 0x4f5a58
lea eax, [ebp - 0x14]
push eax
push 0x4f5a7c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00412838
add esp, 0x18
lea edx, [ebp - 0x84]
lea eax, [ebp - 0x38]
call fcn.00417188
jmp 0x4f5409
push 0x40
push 0x4f5a58
lea eax, [ebp - 0x14]
push eax
push 0x4f5a7c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00412838
add esp, 0x18
lea edx, [ebp - 0x94]
lea eax, [ebp - 0x38]
call fcn.00417188
push 0x4f5a94
lea eax, [ebp - 0x38]
push eax
push 0
call fcn.00412838
add esp, 0xc
mov eax, dword [ebx + 0x584]
call fcn.004c2afc
push 0x4f5aa8
push dword [ebp - 0x14]
push 0x4f5ae0
push 0x4f5b08
lea eax, [ebp - 0x9c]
mov edx, 4
call fcn.004058c4
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
call fcn.00405ef8
mov edx, dword [ebp - 0x98]
mov eax, dword [ebx + 0x584]
call fcn.004d8a74
mov eax, dword [ebx + 0x584]
call fcn.004c2af4
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4f590b
inc eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x58]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x614]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x4f54e8
lea edx, [ebp - 0xa4]
mov eax, dword [ebx + 0x5fc]
call fcn.004595d8
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.0040a40c
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x10]
call fcn.00405958
jne 0x4f58ff
mov eax, dword [ebx + 0x4b4]
call fcn.004ced00
test al, al
je 0x4f5502
mov eax, dword [ebx + 0x4b4]
call fcn.004ceb74
mov eax, dword [ebx + 0x4b4]
call fcn.004e3ebc
mov edx, dword [eax]
call dword [edx + 0x48]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4f5b30
call fcn.00405848
mov eax, dword [ebx + 0x4b4]
call fcn.004e3ebc
push eax
lea eax, [ebp - 0xa8]
mov edx, dword [ebp - 0xc]
call fcn.00405ef8
mov edx, dword [ebp - 0xa8]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x4b4]
call fcn.004e216c
mov eax, dword [ebx + 0x4b4]
call fcn.004ceb60
mov eax, dword [ebx + 0x4b4]
mov edx, dword [eax]
call dword [edx + 0x16c]
cmp eax, dword [ebp - 0x4c]
jle 0x4f5574
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x40]
dec edx
imul edx, dword [ebp - 0x3c]
inc edx
mov dword [ebp - 0x50], edx
cmp eax, dword [ebp - 0x50]
jl 0x4f58ff
mov edx, dword [ebp - 0x3c]
imul edx, dword [ebp - 0x40]
mov dword [ebp - 0x54], edx
cmp eax, dword [ebp - 0x54]
jge 0x4f559b
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + 0x4b4]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x25c]
mov eax, dword [ebx + 0x580]
call fcn.004ced00
test al, al
je 0x4f55c6
mov eax, dword [ebx + 0x580]
call fcn.004ceb74
mov eax, dword [ebx + 0x580]
call fcn.004e3ebc
mov edx, dword [eax]
call dword [edx + 0x48]
lea ecx, [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 0x5c]
mov esi, dword [eax]
call dword [esi + 0xc]
push 0x4f5b48
push dword [ebp - 0x10]
push 0x4f5b60
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 8]
call fcn.0040a40c
push dword [ebp - 0xac]
push 0x4f5b6c
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.004058c4
mov eax, dword [ebx + 0x580]
call fcn.004e3ebc
push eax
lea eax, [ebp - 0xb0]
mov edx, dword [ebp - 0xc]
call fcn.00405ef8
mov edx, dword [ebp - 0xb0]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x580]
call fcn.004e3dfc
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jle 0x4f56e7
mov dword [ebp - 0x48], 1
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x5c]
mov edi, dword [eax]
call dword [edi + 0xc]
push 0x4f5b80
push dword [ebp - 0x10]
push 0x4f5b98
push dword [ebp - 8]
push 0x4f5bb0
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.004058c4
mov eax, dword [ebx + 0x580]
call fcn.004ceb74
mov eax, dword [ebx + 0x580]
call fcn.004e3ebc
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebx + 0x580]
call fcn.004e3ebc
push eax
lea eax, [ebp - 0xb4]
mov edx, dword [ebp - 0xc]
call fcn.00405ef8
mov edx, dword [ebp - 0xb4]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x580]
call fcn.004e3dfc
inc dword [ebp - 0x48]
dec esi
jne 0x4f5661
mov eax, dword [ebx + 0x580]
call fcn.004ced00
test al, al
je 0x4f5701
mov eax, dword [ebx + 0x580]
call fcn.004ceb74
mov eax, dword [ebx + 0x580]
call fcn.004e3ebc
mov edx, dword [eax]
call dword [edx + 0x48]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4f5b30
call fcn.00405848
mov eax, dword [ebx + 0x580]
call fcn.004e3ebc
push eax
lea eax, [ebp - 0xb8]
mov edx, dword [ebp - 0xc]
call fcn.00405ef8
mov edx, dword [ebp - 0xb8]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x580]
call fcn.004e216c
mov eax, dword [ebx + 0x580]
call fcn.004ceb60
mov eax, dword [ebx + 0x4b4]
call fcn.004ced00
test al, al
je 0x4f5777
mov eax, dword [ebx + 0x4b4]
call fcn.004ceb74
mov eax, dword [ebx + 0x4b4]
call fcn.004e3ebc
mov edx, dword [eax]
call dword [edx + 0x48]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4f5b30
call fcn.00405848
mov eax, dword [ebx + 0x4b4]
call fcn.004e3ebc
push eax
lea eax, [ebp - 0xbc]
mov edx, dword [ebp - 0xc]
call fcn.00405ef8
mov edx, dword [ebp - 0xbc]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x4b4]
call fcn.004e216c
mov eax, dword [ebx + 0x4b4]
call fcn.004ceb60
mov eax, dword [ebx + 0x4b4]
mov edx, dword [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x1c0]
jmp 0x4f58ec
mov eax, ebx
call fcn.004f8790
test al, al
jne 0x4f57ff
mov eax, dword [ebx + 0x4b4]
call fcn.004d1444
mov eax, dword [ebx + 0x580]
call fcn.004d1604
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jle 0x4f58b8
mov dword [ebp - 0x48], 1
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x5c]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0xc0]
mov edx, dword [ebp - 8]
call fcn.00405ef8
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebx + 0x580]
call fcn.004cfd8c
test eax, eax
je 0x4f58ae
lea eax, [ebp - 0xc8]
mov edx, dword [ebp - 8]
call fcn.00405ef8
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebx + 0x4b4]
call fcn.004cfcf0
lea edx, [ebp - 0xc4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0xc4]
push eax
lea eax, [ebp - 0xcc]
mov edx, dword [ebp - 8]
call fcn.00405ef8
mov edx, dword [ebp - 0xcc]
mov eax, dword [ebx + 0x580]
call fcn.004cfcf0
pop edx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
inc dword [ebp - 0x48]
dec esi
jne 0x4f5824
mov eax, dword [ebx + 0x580]
mov edx, dword [eax]
call dword [edx + 0x270]
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x3c]
je 0x4f58e1
mov eax, dword [ebx + 0x4b4]
mov edx, dword [eax]
call dword [edx + 0x170]
cmp eax, dword [ebp - 0x54]
je 0x4f58ff
mov eax, dword [ebx + 0x4b4]
call fcn.004d1444
mov eax, dword [ebx + 0x4b4]
cmp byte [eax + 0xa1], 0
je 0x4f57e9
inc dword [ebp - 0x44]
dec dword [ebp - 0x64]
jne 0x4f5492
inc dword [ebp - 0x40]
cmp dword [ebp - 0x40], 0x3e9
jne 0x4f5320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5948
mov eax, dword [ebp - 0x58]
call fcn.00404530
mov eax, dword [ebp - 0x5c]
call fcn.00404530
mov eax, dword [ebp - 0x60]
call fcn.00404530
ret