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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f623
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x4cd070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004302a0
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x42fb1d
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push esi
lea ecx, [ebp - 0x50]
movups xmmword [ebp - 0x50], xmm0
call fcn.00405bb0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x42f74c
cmp word [eax], 0
je 0x42f74c
mov dword [ebp - 0x54], eax
jmp 0x42f754
mov ecx, 0x4aebf4
mov dword [ebp - 0x54], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x42f764
cmp word [eax], 0
jne 0x42f772
mov eax, 0x4aebf4
mov dword [ebp - 0x5c], eax
cmp word [eax], 0
je 0x42f7ac
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f777
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x58], ecx
push ecx
lea ecx, [ebp - 0x28]
call fcn.004064a0
push dword [ebp - 0x5c]
push eax
push dword [ebp - 0x28]
call fcn.00480d25
mov eax, dword [ebp - 0x24]
add esp, 0xc
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x24], eax
jmp 0x42f7af
mov eax, dword [ebp - 0x24]
inc eax
lea ecx, [ebp - 0x28]
push eax
call fcn.004064a0
push 0x4b5884
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.00480d25
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov eax, dword [ebp - 0x54]
inc edx
mov dword [ebp - 0x24], edx
test eax, eax
je 0x42f820
cmp word [eax], 0
je 0x42f820
mov ecx, eax
lea eax, [ecx + 2]
mov dword [ebp - 0x58], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f7e7
sub ecx, dword [ebp - 0x58]
sar ecx, 1
mov dword [ebp - 0x58], ecx
lea eax, [edx + ecx]
push eax
lea ecx, [ebp - 0x28]
call fcn.004064a0
mov ecx, dword [ebp - 0x54]
push ecx
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.00480d25
mov eax, dword [ebp - 0x24]
add esp, 0xc
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42f82d
cmp word [eax], 0
jne 0x42f832
mov eax, 0x4aebf4
cmp word [eax], 0
mov dword [ebp - 0x5c], eax
je 0x42f875
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f840
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x58], ecx
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004064a0
push dword [ebp - 0x5c]
push eax
push dword [ebp - 0x3c]
call fcn.00480d25
mov eax, dword [ebp - 0x38]
add esp, 0xc
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x38], eax
jmp 0x42f878
mov eax, dword [ebp - 0x38]
add eax, 4
lea ecx, [ebp - 0x3c]
push eax
call fcn.004064a0
push str._tmp
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00480d25
add dword [ebp - 0x38], 4
add esp, 0xc
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x42f8a7
cmp word [eax], 0
jne 0x42f8ac
mov eax, 0x4aebf4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x42f8d6
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x42f8ca
cmp word [eax], 0
jne 0x42f8cf
mov eax, 0x4aebf4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42f8e3
cmp word [eax], 0
jne 0x42f8e8
mov eax, 0x4aebf4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x42fa68
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x42f90c
cmp word [eax], 0
mov edx, eax
jne 0x42f911
mov edx, 0x4aebf4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42f91e
cmp word [eax], 0
jne 0x42f923
mov eax, 0x4aebf4
mov ecx, eax
call fcn.0042a730
test al, al
jne 0x42fa68
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42f95e
cmp word [eax], 0
je 0x42f95e
sub esp, 8
lea edx, [ebp - 0x1c]
mov ecx, eax
call fcn.004237d0
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
je 0x42f95e
cmp byte [eax], 0
mov dword [ebp - 0x54], eax
jne 0x42f965
mov dword [ebp - 0x54], 0x4afda8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x54]
push str.renameOldVersionFiles._renameFile_step1_faild._path_s__lastErr_d
push str.Utils
push 0x869
push str.utilsUtils.cpp
push 4
call fcn.0040e400
push eax
call fcn.00402c30
mov eax, dword [ebp - 0x28]
add esp, 0x20
test eax, eax
je 0x42f9a0
cmp word [eax], 0
jne 0x42f9a5
mov eax, 0x4aebf4
push dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
push eax
call fcn.00405e40
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x3c]
add eax, 4
push eax
call fcn.004064a0
push str._bak
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00480d25
add dword [ebp - 0x38], 4
add esp, 0xc
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x42f9e5
cmp word [eax], 0
mov edx, eax
jne 0x42f9ea
mov edx, 0x4aebf4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42f9f7
cmp word [eax], 0
jne 0x42f9fc
mov eax, 0x4aebf4
mov ecx, eax
call fcn.0042a730
test al, al
jne 0x42fa68
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42fa33
cmp word [eax], 0
je 0x42fa33
sub esp, 8
lea edx, [ebp - 0x1c]
mov ecx, eax
call fcn.004237d0
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
je 0x42fa33
cmp byte [eax], 0
mov dword [ebp - 0x54], eax
jne 0x42fa3a
mov dword [ebp - 0x54], 0x4afda8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x54]
push str.renameOldVersionFiles._renameFile_step2_faild._path_s__lastErr_d
push str.Utils
push 0x870
push str.utilsUtils.cpp
push 4
call fcn.0040e400
push eax
call fcn.00402c30
add esp, 0x20
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x42fa7f
push eax
call fcn.00480a27
add esp, 4
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
test eax, eax
je 0x42faab
push eax
call fcn.00480a27
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42fac2
push eax
call fcn.00480a27
add esp, 4
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
test eax, eax
je 0x42faee
push eax
call fcn.00480a27
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x42fb02
push eax
call fcn.00480a27
add esp, 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x42fb12
push eax
call fcn.00480a27
add esp, 4
add esi, 0x14
cmp esi, edi
jne 0x42f6f0
mov eax, dword [ebx + 8]
test eax, eax
je 0x42fb34
push eax
call fcn.00480a27
add esp, 4
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0xc], 0
test eax, eax
je 0x42fb52
push eax
call fcn.00480a27
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00464f19
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret