Function at 0x42de40
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45e274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45e020]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x45e020
call edx
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x40]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00402c30
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov edi, eax
cmp edi, ebx
jl 0x42dfb6
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edi, eax
cmp edi, ebx
jl 0x42dfb6
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
call fcn.004062e0
test eax, eax
je 0x42dfb6
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esi + 0x34]
lea edx, [ebp - 0x28]
push edx
dec eax
push eax
mov ecx, esi
call fcn.0042dcd0
mov esi, eax
cmp esi, ebx
jge 0x42df49
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42df1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42df42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x42e023
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42df82
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42df82
lea ecx, [ebp - 0x24]
call fcn.00403740
lea ecx, [ebp - 0x28]
call fcn.00403740
xor eax, eax
jmp 0x42e023
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42df6b
cmp eax, 3
je 0x42df6b
cmp eax, ebx
jle 0x42dfa0
and eax, 0xffff
or eax, 0x80070000
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00403740
lea ecx, [ebp - 0x28]
call fcn.00403740
mov eax, esi
jmp 0x42e023
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x42dfc4
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, edi
and ecx, 0x80000000
cmp ecx, 0x80000000
je 0x42dfd9
mov edi, 0x80040104
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42dffb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e021
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f0df
mov esp, ebp
pop ebp
ret