Function at 0x101312b0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x101d0b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x10260608], ebp
call ebx
mov dword [0x10260610], eax
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x1013153d
push eax
call fcn.10093856
add esp, 4
test eax, eax
je 0x1013153d
mov esi, dword [esp + 0x28]
cmp esi, ebp
je 0x1013153d
push esi
call fcn.10093856
add esp, 4
test eax, eax
je 0x1013153d
cmp dword [0x10260614], ebp
jne 0x1013133a
mov dword [0x10260608], 2
mov dword [0x1026060c], 0x65e
jmp 0x10131551
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10131363
test al, 0x10
je 0x10131363
mov dword [0x10260608], 0x1e
mov dword [0x1026060c], 0x668
jmp 0x10131551
mov edx, dword [0x10200e98]
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [esp + 0x10], edx
setne cl
mov edi, ecx
cmp edi, ebp
mov dword [esp + 0x1c], ebp
je 0x101313cd
mov eax, dword [0x10260b48]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x1023c254
push esi
call fcn.1013e110
add esp, 0x10
test eax, eax
jne 0x101313d7
mov dword [0x10260608], 0x24
mov dword [0x1026060c], 0x674
call ebx
lea ecx, [esp + 0x10]
mov dword [0x10260610], eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.100c88b0
jmp 0x10131558
push esi
lea ecx, [esp + 0x14]
call fcn.100c8b30
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push 0
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
mov ebp, 1
call fcn.10131880
add esp, 0x14
test eax, eax
je 0x10131517
test edi, edi
je 0x101314df
mov eax, dword [0x10200e98]
mov dword [esp + 0x24], eax
mov ecx, dword [0x10260b48]
lea edx, [esp + 0x24]
push ecx
push edx
push 0x1023c134
push esi
mov byte [esp + 0x2c], 1
call fcn.1013e110
add esp, 0x10
test eax, eax
je 0x101314e3
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 2
push eax
push esi
call edi
test eax, eax
je 0x101314c9
mov ecx, dword [esp + 0x10]
push 3
push esi
push ecx
call edi
test eax, eax
je 0x10131480
mov edx, dword [esp + 0x24]
xor ebp, ebp
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x101314fe
mov eax, dword [esp + 0x24]
push eax
call fcn.1013df30
add esp, 4
jmp 0x101314fe
mov dword [0x10260608], 0x27
mov dword [0x1026060c], 0x6a8
call ebx
mov ecx, dword [esp + 0x24]
push 3
push esi
push ecx
mov dword [0x10260610], eax
call edi
test eax, eax
jne 0x101314fe
mov eax, dword [esp + 0x2c]
or ebp, 0xffffffff
test eax, eax
je 0x101314fe
mov edx, dword [esp + 0x24]
push 0x103
push edx
push eax
call fcn.1009380c
add esp, 0xc
jmp 0x101314fe
mov dword [0x10260608], 0x28
mov dword [0x1026060c], 0x6b6
jmp 0x101314f7
xor ebp, ebp
jmp 0x10131517
mov dword [0x10260608], 0x24
mov dword [0x1026060c], 0x693
call ebx
mov dword [0x10260610], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call fcn.100c88b0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.100c88b0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov dword [0x10260608], 1
mov dword [0x1026060c], 0x657
call ebx
mov dword [0x10260610], eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret