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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431a40
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x448090]
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 [0x448020]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x448020
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.00403130
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 0x41ed26
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 0x41ed26
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00417f90
test eax, eax
je 0x41ed26
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.0041ea40
mov esi, eax
cmp esi, ebx
jge 0x41ecb9
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 0x41ec8c
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 0x41ecb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x41ed93
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 0x41ecf2
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41ecf2
lea ecx, [ebp - 0x24]
call fcn.00402930
lea ecx, [ebp - 0x28]
call fcn.00402930
xor eax, eax
jmp 0x41ed93
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41ecdb
cmp eax, 3
je 0x41ecdb
cmp eax, ebx
jle 0x41ed10
and eax, 0xffff
or eax, 0x80070000
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00402930
lea ecx, [ebp - 0x28]
call fcn.00402930
mov eax, esi
jmp 0x41ed93
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x41ed34
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, edi
and ecx, 0x80000000
cmp ecx, 0x80000000
je 0x41ed49
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 0x41ed6b
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 0x41ed91
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.0041fe49
mov esp, ebp
pop ebp
ret