Function at 0x40be60
Capabilities:
Delete file

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x48
push ebx
push ebp
push esi
push edi
push edx
mov ebx, 1
xor ebp, ebp
call fcn.0040afb0
add esp, 4
test eax, eax
jne 0x40be89
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [esp + 0x64]
test eax, eax
mov esi, dword [edx]
je 0x40becd
push esi
push edx
call fcn.0040b650
push 1
push 1
xor eax, eax
mov ecx, 0x12
lea edi, [esp + 0x20]
push 0x48
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
push 0
push str._signature_
push esi
call fcn.0040b7a0
add esp, 0x24
test eax, eax
jne 0x40becd
mov ebp, 0x8520006d
xor ebx, ebx
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x40c0b8
mov eax, dword [esp + 0x60]
xor edi, edi
test eax, eax
je 0x40beea
mov edi, 1
mov eax, dword [esi + 0x154]
test eax, eax
jne 0x40beff
mov eax, dword [esi + 0x150]
test eax, eax
jle 0x40beff
inc edi
push edi
push esi
call fcn.0040c2a0
mov eax, dword [esi + 0x120]
add esp, 8
cmp eax, edi
jne 0x40bfa1
mov ecx, dword [esi + 0x114]
push 0
push 0
push ecx
mov ecx, dword [esi + 8]
call fcn.004182e0
mov ecx, dword [esi + 8]
call fcn.00418370
mov edi, dword [esi + 8]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40bf41
call fcn.0040af90
dec dword [edi + 8]
jne 0x40bf4e
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esi + 0x114]
test eax, eax
mov dword [esi + 8], 0
jne 0x40bf69
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x5c]
push 0
push 0xffffffffffffffff
push str.delete
push ecx
call fcn.0040fb50
mov ecx, esi
call fcn.00409e10
push 0
push 0xffffffffffffffff
push str.delete
push esi
call fcn.0040fb50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret 0xc
mov edi, dword [esp + 0x5c]
push esi
push edi
call fcn.0040c5d0
mov eax, dword [esp + 0x68]
add esp, 8
test eax, eax
je 0x40bfd9
mov edx, dword [esi + 0x120]
mov eax, dword [esi + 0x134]
push edx
push eax
push edi
call fcn.0040c120
add esp, 0xc
test eax, eax
jne 0x40bfd9
mov ebp, 0x85200068
xor ebx, ebx
mov ecx, dword [esi + 0x118]
mov edx, dword [esi + 0x114]
push 0
lea eax, [ecx + edx]
mov ecx, dword [esi + 8]
push 0
push eax
mov dword [esi + 0x140], eax
call fcn.004182e0
mov ecx, dword [esi + 0x140]
mov eax, dword [esi + 0x114]
sub ecx, eax
push esi
mov dword [esi + 0x140], ecx
call fcn.0040c4f0
add esp, 4
test eax, eax
jne 0x40c023
mov ebp, 0x85200068
xor ebx, ebx
mov ecx, dword [esi + 8]
push 1
push 0
push 0
call fcn.004182e0
sub eax, dword [esi + 0x114]
push esi
mov dword [esi + 0x130], eax
call fcn.0040c400
add esp, 4
test eax, eax
jne 0x40c051
mov ebp, 0x85200068
xor ebx, ebx
mov ecx, dword [esi + 8]
push 1
push 0
push 0
call fcn.004182e0
mov edx, dword [esi + 0x114]
mov ecx, dword [esi + 8]
sub eax, edx
mov dword [esi + 0x158], eax
call fcn.00418370
test al, al
jne 0x40c080
mov ebp, 0x85200068
xor ebx, ebx
mov ecx, dword [esi + 0x114]
push ecx
push esi
call fcn.0040c540
add esp, 8
test eax, eax
jne 0x40c09b
mov ebp, 0x85200068
xor ebx, ebx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40c0b8
push eax
push esi
call fcn.0040c860
add esp, 8
test eax, eax
jne 0x40c0b8
mov ebp, 0x8520006d
xor ebx, ebx
mov edi, dword [esi + 8]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40c0c7
call fcn.0040af90
dec dword [edi + 8]
jne 0x40c0d4
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esp + 0x5c]
push 0
push 0xffffffffffffffff
push str.delete
push eax
mov dword [esi + 8], 0
call fcn.0040fb50
mov ecx, esi
call fcn.00409e10
push 0
push 0xffffffffffffffff
push str.delete
push esi
call fcn.0040fb50
test ebx, ebx
jne 0x40c10e
push ebp
call fcn.00411cb0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x48
ret 0xc