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

Disassembly:
push 0xffffffffffffffff
push 0x42b335
mov eax, dword fs:[0]
push eax
mov eax, 0xc09c
call fcn.00429400
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.0040e0c0
mov dword [esp + 0x24], eax
cmp eax, dword [0x436790]
ja 0x40eadc
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.0040e120
add esp, 8
lea ecx, [esp + 0x28]
push ecx
call fcn.00410830
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0xc0bc], 1
call fcn.00417f30
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.0040a710
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 0x40e67b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40e6bd
lea esi, [esp + 0x94]
call fcn.00405510
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xc0bc], 1
call fcn.0040eb10
lea ebx, [esp + 0x28]
call fcn.004052f0
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041c21c
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
jmp 0x40eacc
push 0x4000
lea ecx, [esp + 0x80a9]
push ebp
push ecx
mov byte [esp + 0x80b0], 0
call fcn.0041e4d0
add esp, 0xc
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x80a8]
call fcn.00405600
test eax, eax
je 0x40e845
jmp 0x40e700
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.00410a80
mov esi, eax
mov eax, dword [esi]
cmp eax, ebp
je 0x40e738
cmp eax, ebx
je 0x40e73d
call fcn.0041cb02
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 0x40e763
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40e829
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.00410970
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 0x40e7c0
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 0x40e829
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 0x40e700
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 0x40e88c
cmp edi, dword [esp + 0x28]
je 0x40e891
call fcn.0041cb02
cmp esi, ebx
je 0x40e99f
test edi, edi
jne 0x40e942
call fcn.0041cb02
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x40e8b2
call fcn.0041cb02
lea eax, [esi + 8]
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x43678c
call fcn.0040c500
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 0x40e94d
test edi, edi
jne 0x40e949
call fcn.0041cb02
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x40e90f
call fcn.0041cb02
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 0x40e87e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40e87e
mov eax, dword [edi]
jmp 0x40e8a8
mov eax, dword [edi]
jmp 0x40e905
push esi
push edi
lea ebx, [esp + 0x6c]
lea edi, [esp + 0x30]
call fcn.004108d0
mov edi, dword [eax]
mov esi, dword [eax + 4]
call fcn.0040e0c0
mov ecx, dword [0x436790]
lea edx, [ecx + ecx]
mov dword [esp + 0x24], eax
cmp eax, edx
jbe 0x40e911
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 0x40e99f
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.0040a710
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 0x40e9f6
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 0x40ea0e
cmp esi, dword [esp + 0x28]
je 0x40ea13
call fcn.0041cb02
cmp edi, ebx
je 0x40ea62
test esi, esi
jne 0x40ea5a
call fcn.0041cb02
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40ea2c
call fcn.0041cb02
mov edx, dword [edi + 8]
push edx
push 0x42df10
lea ecx, [esp + 0x74]
call fcn.00404800
add esp, 8
test esi, esi
jne 0x40ea5e
call fcn.0041cb02
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40ea56
call fcn.0041cb02
mov edi, dword [edi]
jmp 0x40ea00
mov eax, dword [esi]
jmp 0x40ea22
mov eax, dword [esi]
jmp 0x40ea4c
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.0041c21c
add esp, 4
lea ebx, [esp + 0x28]
call fcn.004052f0
mov eax, dword [esp + 0x3c]
push eax
call fcn.0041c21c
mov ecx, dword [esp + 0x2c]
add esp, 4
push ecx
mov dword [esp + 0x40], 0
call fcn.0041c21c
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.0041c227
add esp, 0xc0a8
ret