Function at 0x40aca7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
lea eax, [ebx + 0x20]
call fcn.004050d2
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
and dword [ebp - 8], 0
test eax, eax
mov dword [ebp - 0x14], eax
jle 0x40ad26
mov eax, dword [ebp - 8]
lea ecx, [ebx + 0xc]
call fcn.00404d14
cmp dword [eax], 2
jne 0x40ad1b
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebp - 8]
call fcn.0040fe9a
mov edi, eax
mov eax, dword [0x41b208]
mov ecx, 0x41b208
call dword [eax + 0xc]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 4
push dword [ebp - 8]
add edi, 4
push dword [edi + 0x28]
lea eax, [ebx + 0x20]
push edi
add esi, 0x10
push eax
mov dword [ebp - 0x18], esi
call fcn.00405043
lea eax, [esi - 0x10]
call fcn.00402515
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jl 0x40acc8
mov eax, dword [0x41b208]
mov ecx, 0x41b208
call dword [eax + 0xc]
mov esi, eax
add esi, 0x10
cmp dword [ebp + 8], 0
mov dword [ebp - 0xc], esi
je 0x40ad65
push 0xc7
lea ecx, [ebp - 0x18]
call fcn.00403f48
pop ecx
lea edi, [ebp - 0xc]
call fcn.00402393
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402515
mov esi, dword [ebp - 0xc]
mov eax, dword [ebx + 0x28]
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 0x14], eax
jle 0x40af22
mov eax, dword [ebp - 4]
lea ecx, [ebx + 0x24]
call fcn.0040c6ab
mov ecx, dword [ebp + 8]
test ecx, ecx
mov edi, eax
je 0x40adf8
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x40af22
mov eax, dword [0x41b208]
mov ecx, 0x41b208
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x18]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x10]
call fcn.0040fe9a
mov esi, eax
call fcn.0040233c
push eax
lea esi, [ebp - 0xc]
call fcn.0040233c
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402920
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea esi, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call fcn.0040233c
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x1c]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebp - 4]
lea ecx, [ebx + 0x20]
call fcn.004050df
mov eax, dword [ebp - 4]
lea esi, [ebx + 0x24]
mov ecx, esi
call fcn.0040c6ab
cmp dword [eax + 0xc], 0
jne 0x40aef5
push 0x418598
lea esi, [ebp - 0x18]
call fcn.004029c8
lea eax, [ebx + 0x20]
push eax
lea eax, [ebp - 8]
push edi
push eax
mov eax, esi
call fcn.00403891
mov eax, dword [ebp - 0x18]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00402515
lea eax, [ebp - 8]
call fcn.0040384d
cmp dword [edi + 4], eax
setne al
test al, al
jne 0x40ae9c
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx + 0x18]
call fcn.0040fe9a
add eax, 0x10
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x40ae7e
push 0
push eax
lea ecx, [ebp - 8]
call fcn.004040e9
test al, al
pop ecx
pop ecx
je 0x40ae9c
mov eax, dword [ebp - 4]
lea ecx, [ebx + 0x24]
call fcn.0040c6ab
mov eax, dword [eax + 0x10]
lea ecx, [ebx + 0xc]
call fcn.00404d14
mov dword [eax], 4
jmp 0x40aee8
lea esi, [ebp - 8]
call fcn.0040233c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebp - 8]
push 0x5c
add esi, 0x54
call fcn.00404db2
test eax, eax
pop ecx
jne 0x40aec5
or eax, 0xffffffff
jmp 0x40aec8
sub eax, dword [ebp - 8]
push esi
lea ecx, [ebp - 0x20]
push ecx
lea esi, [ebp - 8]
call fcn.004027fd
push eax
call fcn.004047a0
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402515
jmp 0x40af10
mov eax, dword [ebp - 4]
mov ecx, esi
call fcn.0040c6ab
mov eax, dword [eax + 0x10]
lea ecx, [ebx + 0xc]
call fcn.00404d14
mov dword [eax], 5
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
jl 0x40ad77
lea eax, [esi - 0x10]
call fcn.00402515
pop edi
xor eax, eax
pop esi
leave
ret 4