Function at 0x40f150
Capabilities:
Delete file

Disassembly:
mov eax, 0x41f0
call fcn.00479200
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x41ec], eax
push ebx
push ebp
mov ebp, dword [esp + 0x41fc]
push esi
push edi
mov esi, ecx
push str.ApplyDeleteList
mov dword [esp + 0x1c], esi
call fcn.004169a0
mov eax, dword [ebp + 0x60]
add esp, 4
test eax, eax
jne 0x40f191
xor ecx, ecx
jmp 0x40f1a9
mov ecx, dword [ebp + 0x64]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, dword [esi + 0x2a4]
test eax, eax
je 0x40f1cc
mov edx, dword [esi + 0x2a8]
sub edx, eax
mov eax, 0x67b23a55
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
xor ebx, ebx
xor edi, edi
mov dword [ebp + 0xa0], eax
mov dword [esp + 0x14], edi
lea esp, [esp]
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x40f1ff
mov ecx, dword [ebp + 0x64]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jge 0x40f605
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x40f22a
mov ecx, dword [ebp + 0x64]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40f22f
call fcn.0047263c
mov eax, dword [ebp + 0x60]
add eax, edi
cmp dword [eax + 0x18], 0x10
jb 0x40f23f
mov esi, dword [eax + 4]
jmp 0x40f242
lea esi, [eax + 4]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40f247
sub eax, edx
add eax, 1
push esi
push eax
lea eax, [esp + 0x130]
push eax
call fcn.004739e4
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40f270
sub eax, edx
add eax, 0xffffffff
js 0x40f292
mov cl, byte [esi + eax]
cmp cl, 0x5c
je 0x40f2d2
cmp cl, 0x2f
je 0x40f2d2
sub eax, 1
jns 0x40f280
mov byte [esp + 0x128], 0
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x40f2bd
mov ecx, dword [ebp + 0x64]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40f2c2
call fcn.0047263c
mov eax, dword [ebp + 0x60]
add eax, edi
cmp dword [eax + 0x18], 0x10
jb 0x40f2dc
mov eax, dword [eax + 4]
jmp 0x40f2df
mov byte [esp + eax + 0x129], 0
jmp 0x40f29a
add eax, 4
mov edx, eax
lea edi, [esp + 0x2190]
call fcn.00421af0
xor edi, edi
nop
mov ecx, dword [ebp + 0x50]
test ecx, ecx
jne 0x40f2fb
xor eax, eax
jmp 0x40f303
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x40f3a6
test ecx, ecx
je 0x40f31b
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f320
call fcn.0047263c
mov ecx, dword [ebp + 0x50]
lea esi, [edi*4]
mov ecx, dword [esi + ecx]
mov eax, 0x4ac5e0
call fcn.00426c00
cmp byte [esp + 0x128], 0
je 0x40f36b
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x40f354
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f359
call fcn.0047263c
mov edx, dword [ebp + 0x50]
mov ecx, dword [esi + edx]
lea eax, [esp + 0x128]
call fcn.00426c00
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x40f37e
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40f383
call fcn.0047263c
mov eax, dword [ebp + 0x50]
add eax, esi
mov esi, dword [eax]
lea ecx, [esp + 0x2190]
call fcn.00426a30
test al, al
jne 0x40f500
add edi, 1
jmp 0x40f2f0
push 0xff
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.00475860
mov eax, dword [ebp + 0x60]
add esp, 0xc
test eax, eax
je 0x40f3e2
mov ecx, dword [ebp + 0x64]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40f3e7
call fcn.0047263c
mov eax, dword [ebp + 0x60]
add eax, dword [esp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x40f3f9
mov edx, dword [eax + 4]
jmp 0x40f3fc
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40f401
sub eax, esi
add eax, 0xffffffff
mov esi, eax
js 0x40f41e
cmp byte [edx + eax], 0x2e
je 0x40f483
sub eax, 1
jns 0x40f413
mov byte [esp + 0x20], 0
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40f430
sub eax, edx
mov eax, dword [ebp + 0x60]
jne 0x40f4ad
test eax, eax
je 0x40f460
mov ecx, dword [ebp + 0x64]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40f465
call fcn.0047263c
mov eax, dword [ebp + 0x60]
add eax, dword [esp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x40f49f
mov eax, dword [eax + 4]
push eax
call fcn.00421c00
add esp, 4
jmp 0x40f52b
sub esi, eax
lea ecx, [edx + eax + 1]
push esi
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00475390
add esp, 0xc
mov byte [esp + esi + 0x20], 0
jmp 0x40f423
add eax, 4
push eax
call fcn.00421c00
add esp, 4
jmp 0x40f52b
test eax, eax
je 0x40f4cd
mov ecx, dword [ebp + 0x64]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40f4d2
call fcn.0047263c
mov eax, dword [ebp + 0x60]
add eax, dword [esp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x40f4e4
mov eax, dword [eax + 4]
jmp 0x40f4e7
add eax, 4
push eax
push str.._s
lea esi, [esp + 0x28]
call fcn.004134f0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add dword [ebp + 0x9c], 1
mov eax, dword [ebp + 0x9c]
cdq
mov dword [0x4c5cf0], eax
mov dword [0x4c5cf4], edx
mov eax, dword [ebp + 0xa0]
cdq
mov dword [0x4c5cfc], edx
mov dword [0x4c5cf8], eax
cmp dword [ebp + 0x48], 0
jne 0x40f542
add ebx, 1
add dword [esp + 0x14], 0x1c
mov edi, dword [esp + 0x14]
jmp 0x40f1e0
xor esi, esi
mov ecx, dword [ebp + 0x50]
test ecx, ecx
jne 0x40f54f
xor eax, eax
jmp 0x40f557
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x40f5f4
test ecx, ecx
je 0x40f56f
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f574
call fcn.0047263c
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax + esi*4]
push ecx
call fcn.00425110
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x40f593
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f598
call fcn.0047263c
mov edx, dword [ebp + 0x50]
cmp dword [edx + esi*4], 0
je 0x40f5ec
mov ecx, edx
test ecx, ecx
je 0x40f5b3
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f5b8
call fcn.0047263c
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x40f5ca
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x40f5dd
mov eax, dword [ebp + 0x54]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f5e2
call fcn.0047263c
mov ecx, dword [ebp + 0x50]
mov dword [ecx + esi*4], 0
add esi, 1
jmp 0x40f544
mov edx, dword [esp + 0x18]
push edx
call fcn.00425110
mov eax, 4
jmp 0x40f60a
mov eax, 1
mov ecx, dword [esp + 0x41fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004716ba
add esp, 0x41f0
ret 4