Function at 0x40e030
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xb8
mov eax, 0x45d979
call fcn.004146fb
mov edi, ecx
mov esi, dword [ebp + 0x24]
xor ebx, ebx
mov dword [ebp - 0x5c], 7
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x47241c
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x70], ax
call fcn.00406c30
push ebx
xor eax, eax
mov byte [ebp - 4], 1
push 0x47241c
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
call fcn.00406c30
push ebx
call fcn.00443211
and dword [ebp - 0x78], 0
mov ebx, eax
pop ecx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x74], ecx
mov word [ebp - 0x88], ax
and dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x88]
push eax
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00407370
push dword [ebp + 8]
mov ecx, edi
call fcn.0040e585
test al, al
je 0x40e1e5
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.00446642
add eax, dword [edi]
pop ecx
cmp eax, ebx
jl 0x40e117
lea eax, [ebp - 0x40]
xor ebx, ebx
cmp esi, eax
je 0x40e1dd
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00406e50
jmp 0x40e1dd
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040d3a4
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x40e132
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0040b6d1
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00407270
xor ebx, ebx
lea ecx, [ebp - 0xb8]
push ebx
push 1
call fcn.00406b70
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00407d5f
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x58]
call fcn.00407810
test eax, eax
jne 0x40e1e7
lea eax, [ebp - 0x40]
cmp esi, eax
je 0x40e18e
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00406e50
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0xbc], esp
push eax
call fcn.00407370
sub esp, 0x18
mov byte [ebp - 4], 6
lea eax, [ebp - 0x88]
mov dword [ebp - 0xc0], esp
mov ecx, esp
push eax
call fcn.00407370
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00407370
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0040e902
xor esi, esi
inc esi
jmp 0x40e491
xor ebx, ebx
cmp dword [ebp + 0x28], 0
jne 0x40e1ff
push ebx
push 0x47241c
mov ecx, esi
call fcn.00406c30
jmp 0x40e48f
cmp dword [esi + 0x10], ebx
jne 0x40e2b4
cmp dword [ebp + 8], 0
je 0x40e255
lea eax, [edi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x40e219
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040bea5
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.00407270
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00406b70
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040be16
pop ecx
pop ecx
mov byte [ebp - 4], 8
jmp 0x40e29a
lea eax, [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x40e260
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040bea5
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.00407270
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00406b70
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040be16
pop ecx
pop ecx
mov byte [ebp - 4], 9
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00407700
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00406b70
cmp dword [esi + 0x14], 8
jb 0x40e2be
mov eax, dword [esi]
jmp 0x40e2c0
mov eax, esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x40e2e0
cmp dword [esi + 0x14], 8
jb 0x40e2d7
mov eax, dword [esi]
jmp 0x40e2d9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00407370
push 0x460b80
mov byte [ebp - 4], 0xa
call fcn.004424dd
pop ecx
push eax
push 0
push 0x460b80
lea ecx, [ebp - 0xa0]
call fcn.00407420
cmp eax, 0xffffffff
jne 0x40e374
push 0x460b80
call fcn.004424dd
pop ecx
push eax
push 0x460b80
lea ecx, [ebp - 0xa0]
call fcn.004075d0
push 0x1869f
push 0x2710
call fcn.00413345
cdq
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00411ddf
add esp, 0x14
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
call fcn.00407700
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.00406b70
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc4], esp
push esi
call fcn.00407370
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xa0]
mov ecx, esp
push eax
call fcn.00407370
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push eax
mov ecx, edi
call fcn.0040e4d5
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00406b70
cmp dword [esi + 0x14], 8
jb 0x40e3bf
mov eax, dword [esi]
jmp 0x40e3c1
mov eax, esi
push eax
call ebx
test eax, eax
jne 0x40e3dc
xor ebx, ebx
mov ecx, esi
push ebx
push 0x47241c
call fcn.00406c30
jmp 0x40e481
cmp dword [ebp - 0x48], 0
jne 0x40e436
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0040d3a4
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x40e400
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040b6d1
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00407270
xor ebx, ebx
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00406b70
push ebx
push 1
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xa
call fcn.00407d5f
jmp 0x40e438
xor ebx, ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc4], esp
push esi
call fcn.00407370
sub esp, 0x18
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x58]
mov dword [ebp - 0xc0], esp
mov ecx, esp
push eax
call fcn.00407370
sub esp, 0x18
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00407370
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.0040e902
push ebx
push 1
lea ecx, [ebp - 0xa0]
call fcn.00406b70
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00406b70
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.00406b70
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00406b70
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00406b70
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00406b70
mov eax, esi
call fcn.004146b6
ret 0x24