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

Disassembly:
push 0xffffffffffffffff
push 0x5a2868
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
cmp dword [esp + 0x38], 0
jne 0x42aee5
call fcn.004a581f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42ad2c
push 0x80004005
call fcn.0040b390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
push 0x5e8ee8
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.0040e080
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x18]
mov ebx, dword [eax]
mov esi, dword [edi]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
lea ebx, [ebx]
mov ebp, dword [edi + 0x18]
mov eax, dword [edi]
test esi, esi
je 0x42ad7d
cmp esi, eax
je 0x42ad82
call fcn.004e73ca
cmp ebx, ebp
je 0x42adf2
test esi, esi
jne 0x42adee
call fcn.004e73ca
cmp ebx, dword [esi + 0x18]
jne 0x42ad99
call fcn.004e73ca
mov ecx, dword [ebx + 0x10]
push ecx
lea edx, [esp + 0x3c]
push 0x5bd490
push edx
call fcn.0040cbe0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [eax - 0xc], 0
je 0x42adc9
push 1
push 0x5bd498
lea ecx, [esp + 0x1c]
call fcn.0040c9c0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040c9c0
lea ecx, [esp + 0x1c]
call fcn.0041b630
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x42ad70
mov esi, dword [esi]
jmp 0x42ad8f
push 0x5e8ee8
lea ecx, [esp + 0x1c]
call fcn.0040e080
push 0
mov byte [esp + 0x30], 2
call fcn.004e5f5f
push edx
push eax
lea edx, [esp + 0x24]
push 0x5bd490
push edx
call fcn.0040cbe0
lea eax, [esp + 0x48]
push eax
call fcn.0040e820
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x18
push eax
push ecx
push str.lasttime
push str.cvir
call esi
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42ae64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
je 0x42aeaf
lea edx, [esp + 0x34]
push edx
call fcn.0040e820
mov eax, dword [eax]
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push eax
push str.lastvir
push str.cvir
call esi
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42aeaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42aed4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x2c], 0
add eax, 0xfffffff0
jmp 0x42b00c
lea ecx, [esp + 0x38]
push ecx
call fcn.00426d00
add esp, 4
mov edx, dword [esp + 0x38]
push edx
mov dword [esp + 0x30], 3
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42af14
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x34]
cmp dword [edi + 0x1c], 0
je 0x42b025
call fcn.004a581f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42af3c
push 0x80004005
call fcn.0040b390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x18]
mov ebx, dword [eax]
mov esi, dword [edi]
mov byte [esp + 0x2c], 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
mov ebp, dword [edi + 0x18]
mov eax, dword [edi]
test esi, esi
je 0x42af6d
cmp esi, eax
je 0x42af72
call fcn.004e73ca
cmp ebx, ebp
je 0x42afb6
test esi, esi
jne 0x42afae
call fcn.004e73ca
cmp ebx, dword [esi + 0x18]
jne 0x42af89
call fcn.004e73ca
mov eax, dword [ebx + 0x10]
cmp eax, 7
je 0x42afb2
cmp eax, 5
je 0x42afb2
cmp eax, 3
je 0x42afb2
lea ecx, [esp + 0x1c]
call fcn.0041b630
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x42af60
mov esi, dword [esi]
jmp 0x42af7f
mov ecx, eax
jmp 0x42afd7
mov eax, dword [edi + 0x18]
mov edi, dword [edi]
mov esi, dword [eax]
test edi, edi
jne 0x42b05f
call fcn.004e73ca
cmp esi, dword [edi + 0x18]
jne 0x42afd4
call fcn.004e73ca
mov ecx, dword [esi + 0x10]
push ecx
lea edx, [esp + 0x38]
push 0x5bd490
push edx
call fcn.0040cbe0
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
add esp, 0xc
push eax
push esi
push 0x5bf4e8
push str.avsection
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b025
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x2c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b049
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov edi, dword [edi]
jmp 0x42afca