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

Disassembly:
push 0xffffffffffffffff
push 0x42b365
mov eax, dword fs:[0]
push eax
mov eax, 0xc09c
call fcn.00429430
mov eax, dword [0x4340a0]
xor eax, esp
mov dword [esp + 0xc098], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0xc0b0]
mov dword fs:[0], eax
call fcn.0040e0a0
mov dword [esp + 0x24], eax
cmp eax, dword [0x436790]
ja 0x40eabc
push eax
push str.DELCACHE:_now_free__d_MB__need_del.
mov ecx, 0x4366d8
call fcn.00404800
add esp, 4
mov eax, esp
mov dword [esp + 0x24], esp
push eax
mov ecx, str.tmp
call fcn.00401cb0
xor ebp, ebp
mov dword [esp + 0xc0bc], ebp
mov eax, dword [0x43678c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.004031e0
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0xc0c0], 0xffffffff
call fcn.0040e100
add esp, 8
lea ecx, [esp + 0x28]
push ecx
call fcn.00410810
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0xc0bc], 1
call fcn.00417f80
lea eax, [esp + 0x94]
call fcn.004054f0
lea eax, [esp + 0x1c]
push str.cache.dat
push eax
mov ecx, 0x43678c
mov byte [esp + 0xc0c0], 3
call fcn.0040a6f0
mov eax, dword [eax]
add esp, 8
push eax
lea eax, [esp + 0x98]
call fcn.00405550
test eax, eax
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e65b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40e69d
lea esi, [esp + 0x94]
call fcn.00405510
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xc0bc], 1
call fcn.0040eaf0
lea ebx, [esp + 0x28]
call fcn.004052f0
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041c24c
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
jmp 0x40eaac
push 0x4000
lea ecx, [esp + 0x80a9]
push ebp
push ecx
mov byte [esp + 0x80b0], 0
call fcn.0041e500
add esp, 0xc
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x80a8]
call fcn.00405600
test eax, eax
je 0x40e825
jmp 0x40e6e0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x80a8]
call fcn.00401cb0
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x44]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x68]
push edx
lea esi, [esp + 0x4c]
call fcn.00410a60
mov esi, eax
mov eax, dword [esi]
cmp eax, ebp
je 0x40e718
cmp eax, ebx
je 0x40e71d
call fcn.0041cb32
cmp dword [esi + 4], edi
mov eax, dword [esp + 0x18]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e743
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40e809
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x80a8]
call fcn.00401cb0
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0bc], 4
call fcn.00410950
mov dword [eax], 1
mov byte [esp + 0xc0b8], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e7a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x80a8]
call fcn.00401cb0
mov byte [esp + 0xc0b8], 5
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
call fcn.004053b0
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00405450
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov byte [esp + 0xc0b8], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e809
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x80a8]
call fcn.00405600
test eax, eax
jne 0x40e6e0
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x48]
call fcn.004113b0
mov eax, dword [esp + 0x5c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x60], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [eax], eax
mov eax, dword [esp + 0x5c]
mov dword [eax + 8], eax
mov ecx, dword [esp + 0x3c]
mov esi, dword [ecx]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
test edi, edi
je 0x40e86c
cmp edi, dword [esp + 0x28]
je 0x40e871
call fcn.0041cb32
cmp esi, ebx
je 0x40e97f
test edi, edi
jne 0x40e922
call fcn.0041cb32
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x40e892
call fcn.0041cb32
lea eax, [esi + 8]
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x43678c
call fcn.0040c4e0
mov byte [esp + 0xc0c0], 6
mov eax, dword [esp + 0x20]
push eax
push str.DELCACHE:__s
mov ecx, 0x4366d8
call fcn.00404800
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ecx
call ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40e92d
test edi, edi
jne 0x40e929
call fcn.0041cb32
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x40e8ef
call fcn.0041cb32
mov esi, dword [esi]
mov byte [esp + 0xc0b8], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e85e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40e85e
mov eax, dword [edi]
jmp 0x40e888
mov eax, dword [edi]
jmp 0x40e8e5
push esi
push edi
lea ebx, [esp + 0x6c]
lea edi, [esp + 0x30]
call fcn.004108b0
mov edi, dword [eax]
mov esi, dword [eax + 4]
call fcn.0040e0a0
mov ecx, dword [0x436790]
lea edx, [ecx + ecx]
mov dword [esp + 0x24], eax
cmp eax, edx
jbe 0x40e8f1
mov byte [esp + 0xc0b8], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e97f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x6c]
call fcn.00404620
lea ecx, [esp + 0x1c]
push str.cache.dat
push ecx
mov ecx, 0x43678c
mov byte [esp + 0xc0c0], 7
call fcn.0040a6f0
mov eax, dword [eax]
add esp, 8
push 0
push 0
push 0
mov edi, eax
call fcn.00404680
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e9d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov edi, dword [ecx]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
test esi, esi
je 0x40e9ee
cmp esi, dword [esp + 0x28]
je 0x40e9f3
call fcn.0041cb32
cmp edi, ebx
je 0x40ea42
test esi, esi
jne 0x40ea3a
call fcn.0041cb32
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40ea0c
call fcn.0041cb32
mov edx, dword [edi + 8]
push edx
push 0x42df10
lea ecx, [esp + 0x74]
call fcn.00404800
add esp, 8
test esi, esi
jne 0x40ea3e
call fcn.0041cb32
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40ea36
call fcn.0041cb32
mov edi, dword [edi]
jmp 0x40e9e0
mov eax, dword [esi]
jmp 0x40ea02
mov eax, dword [esi]
jmp 0x40ea2c
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push str.DELCACHE:_done._now_free__d_MB__cache_files:__d
mov ecx, 0x4366d8
call fcn.00404800
add esp, 0xc
lea eax, [esp + 0x6c]
call fcn.00404650
lea esi, [esp + 0x94]
call fcn.00405510
lea esi, [esp + 0x44]
mov byte [esp + 0xc0b8], 8
call fcn.00411410
mov edx, dword [esp + 0x44]
push edx
call fcn.0041c24c
add esp, 4
lea ebx, [esp + 0x28]
call fcn.004052f0
mov eax, dword [esp + 0x3c]
push eax
call fcn.0041c24c
mov ecx, dword [esp + 0x2c]
add esp, 4
push ecx
mov dword [esp + 0x40], 0
call fcn.0041c24c
add esp, 4
mov ecx, dword [esp + 0xc0b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc098]
xor ecx, esp
call fcn.0041c257
add esp, 0xc0a8
ret