Function at 0x4f4960
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x4f4969
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 0x4f50cc
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 eax, eax
push ebp
push 0x4f5005
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41d940]
call fcn.00404500
mov dword [ebp - 0x54], eax
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 eax, dword [ebx + 0x4b8]
xor ecx, ecx
mov edx, dword [ebp - 0x54]
call fcn.004d7f2c
mov eax, dword [ebp - 0x3c]
test eax, eax
jle 0x4f4fdf
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x40], 1
push 0x4f50e8
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, 0x4f50f4
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 0x4f4a6d
mov eax, dword [ebp - 0x14]
call fcn.004059c0
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 0x18]
mov edx, 0x4f510c
call fcn.00405958
jne 0x4f4ab2
push 0x80
push 0x4f511c
lea eax, [ebp - 0x14]
push eax
push 0x4f5140
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 0x4f4ae3
push 0x40
push 0x4f511c
lea eax, [ebp - 0x14]
push eax
push 0x4f5140
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 0x4f5158
lea eax, [ebp - 0x38]
push eax
push 0
call fcn.00412838
add esp, 0xc
mov eax, dword [ebx + 0x584]
call fcn.004c2afc
push 0x4f516c
push dword [ebp - 0x14]
push 0x4f51a4
push 0x4f51cc
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 - 0x54]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4f4fd3
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 - 0x54]
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 0x4f4bc2
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 0x4f4fc7
mov eax, dword [ebx + 0x4b4]
call fcn.004ced00
test al, al
je 0x4f4bdc
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, 0x4f51f4
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]
mov esi, eax
mov ecx, dword [ebp - 0x3c]
mov eax, esi
cdq
idiv ecx
mov esi, eax
mov eax, dword [ebp - 0x40]
dec eax
imul esi
inc eax
mov dword [ebp - 0x4c], eax
imul esi, dword [ebp - 0x40]
mov dword [ebp - 0x50], esi
mov eax, dword [ebx + 0x4b4]
mov edx, dword [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x25c]
mov eax, dword [ebx + 0x580]
call fcn.004ced00
test al, al
je 0x4f4c8e
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 - 0x58]
mov esi, dword [eax]
call dword [esi + 0xc]
push 0x4f520c
push dword [ebp - 0x10]
push 0x4f5224
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 8]
call fcn.0040a40c
push dword [ebp - 0xac]
push 0x4f5230
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 - 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jle 0x4f4daf
mov dword [ebp - 0x48], 1
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x58]
mov edi, dword [eax]
call dword [edi + 0xc]
push 0x4f5244
push dword [ebp - 0x10]
push 0x4f525c
push dword [ebp - 8]
push 0x4f5274
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 0x4f4d29
mov eax, dword [ebx + 0x580]
call fcn.004ced00
test al, al
je 0x4f4dc9
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, 0x4f51f4
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 0x4f4e3f
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, 0x4f51f4
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 - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x1c0]
jmp 0x4f4fb4
mov eax, ebx
call fcn.004f8790
test al, al
jne 0x4f4ec7
mov eax, dword [ebx + 0x4b4]
call fcn.004d1444
mov eax, dword [ebx + 0x580]
call fcn.004d1604
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jle 0x4f4f80
mov dword [ebp - 0x48], 1
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x58]
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 0x4f4f76
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 0x4f4eec
mov eax, dword [ebx + 0x580]
mov edx, dword [eax]
call dword [edx + 0x270]
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x3c]
je 0x4f4fa9
mov eax, dword [ebx + 0x4b4]
mov edx, dword [eax]
call dword [edx + 0x170]
cmp eax, dword [ebp - 0x50]
je 0x4f4fc7
mov eax, dword [ebx + 0x4b4]
call fcn.004d1444
mov eax, dword [ebx + 0x4b4]
cmp byte [eax + 0xa1], 0
je 0x4f4eb1
inc dword [ebp - 0x44]
dec dword [ebp - 0x64]
jne 0x4f4b6c
inc dword [ebp - 0x40]
dec dword [ebp - 0x60]
jne 0x4f4a0a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f500c
mov eax, dword [ebp - 0x54]
call fcn.00404530
mov eax, dword [ebp - 0x58]
call fcn.00404530
mov eax, dword [ebp - 0x5c]
call fcn.00404530
ret