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

Disassembly:
push 0xffffffffffffffff
push 0x429505
mov eax, dword fs:[0]
push eax
mov eax, 0xc09c
call fcn.00427360
mov eax, dword [0x431040]
xor eax, esp
mov dword [esp + 0xc098], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431040]
xor eax, esp
push eax
lea eax, [esp + 0xc0b0]
mov dword fs:[0], eax
call fcn.0040de00
mov dword [esp + 0x24], eax
cmp eax, dword [0x433710]
ja 0x40e87c
push eax
push str.DELCACHE:_now_free__d_MB__need_del.
mov ecx, 0x433658
call fcn.00404270
add esp, 4
mov eax, esp
mov dword [esp + 0x24], esp
push eax
mov ecx, str.tmp
call fcn.00401680
xor ebp, ebp
mov dword [esp + 0xc0bc], ebp
mov eax, dword [0x43370c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.00402bb0
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0xc0c0], 0xffffffff
call fcn.0040dec0
add esp, 8
lea ecx, [esp + 0x28]
push ecx
call fcn.004105d0
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0xc0bc], 1
call fcn.004179e0
lea eax, [esp + 0x94]
call fcn.00405000
lea eax, [esp + 0x1c]
push str.cache.dat
push eax
mov ecx, 0x43370c
mov byte [esp + 0xc0c0], 3
call fcn.0040a130
mov eax, dword [eax]
add esp, 8
push eax
lea eax, [esp + 0x98]
call fcn.00405060
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 0x40e41b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40e45d
lea esi, [esp + 0x94]
call fcn.00405020
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xc0bc], 1
call fcn.0040e8b0
lea ebx, [esp + 0x28]
call fcn.00404d60
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041a2be
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
jmp 0x40e86c
push 0x4000
lea ecx, [esp + 0x80a9]
push ebp
push ecx
mov byte [esp + 0x80b0], 0
call fcn.0041c570
add esp, 0xc
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x80a8]
call fcn.00405110
test eax, eax
je 0x40e5e5
jmp 0x40e4a0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x80a8]
call fcn.00401680
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.00410820
mov esi, eax
mov eax, dword [esi]
cmp eax, ebp
je 0x40e4d8
cmp eax, ebx
je 0x40e4dd
call fcn.0041aa5b
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 0x40e503
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40e5c9
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x80a8]
call fcn.00401680
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0bc], 4
call fcn.00410710
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 0x40e560
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.00401680
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.00404e20
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00404ec0
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 0x40e5c9
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.00405110
test eax, eax
jne 0x40e4a0
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x48]
call fcn.00411170
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 0x40e62c
cmp edi, dword [esp + 0x28]
je 0x40e631
call fcn.0041aa5b
cmp esi, ebx
je 0x40e73f
test edi, edi
jne 0x40e6e2
call fcn.0041aa5b
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x40e652
call fcn.0041aa5b
lea eax, [esi + 8]
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x43370c
call fcn.0040beb0
mov byte [esp + 0xc0c0], 6
mov eax, dword [esp + 0x20]
push eax
push str.DELCACHE:__s
mov ecx, 0x433658
call fcn.00404270
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 0x40e6ed
test edi, edi
jne 0x40e6e9
call fcn.0041aa5b
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x40e6af
call fcn.0041aa5b
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 0x40e61e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40e61e
mov eax, dword [edi]
jmp 0x40e648
mov eax, dword [edi]
jmp 0x40e6a5
push esi
push edi
lea ebx, [esp + 0x6c]
lea edi, [esp + 0x30]
call fcn.00410670
mov edi, dword [eax]
mov esi, dword [eax + 4]
call fcn.0040de00
mov ecx, dword [0x433710]
lea edx, [ecx + ecx]
mov dword [esp + 0x24], eax
cmp eax, edx
jbe 0x40e6b1
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 0x40e73f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x6c]
call fcn.00404090
lea ecx, [esp + 0x1c]
push str.cache.dat
push ecx
mov ecx, 0x43370c
mov byte [esp + 0xc0c0], 7
call fcn.0040a130
mov eax, dword [eax]
add esp, 8
push 0
push 0
push 0
mov edi, eax
call fcn.004040f0
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 0x40e796
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 0x40e7ae
cmp esi, dword [esp + 0x28]
je 0x40e7b3
call fcn.0041aa5b
cmp edi, ebx
je 0x40e802
test esi, esi
jne 0x40e7fa
call fcn.0041aa5b
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40e7cc
call fcn.0041aa5b
mov edx, dword [edi + 8]
push edx
push 0x42bddc
lea ecx, [esp + 0x74]
call fcn.00404270
add esp, 8
test esi, esi
jne 0x40e7fe
call fcn.0041aa5b
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40e7f6
call fcn.0041aa5b
mov edi, dword [edi]
jmp 0x40e7a0
mov eax, dword [esi]
jmp 0x40e7c2
mov eax, dword [esi]
jmp 0x40e7ec
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, 0x433658
call fcn.00404270
add esp, 0xc
lea eax, [esp + 0x6c]
call fcn.004040c0
lea esi, [esp + 0x94]
call fcn.00405020
lea esi, [esp + 0x44]
mov byte [esp + 0xc0b8], 8
call fcn.004111d0
mov edx, dword [esp + 0x44]
push edx
call fcn.0041a2be
add esp, 4
lea ebx, [esp + 0x28]
call fcn.00404d60
mov eax, dword [esp + 0x3c]
push eax
call fcn.0041a2be
mov ecx, dword [esp + 0x2c]
add esp, 4
push ecx
mov dword [esp + 0x40], 0
call fcn.0041a2be
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.0041a2c9
add esp, 0xc0a8
ret