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

Disassembly:
push 0x220
mov eax, 0x1005eaa9
call fcn.1003ef45
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x224], eax
call fcn.1000ada5
push eax
lea ecx, [ebp - 0x22c]
call fcn.1000a8c4
xor esi, esi
test byte [ebp + 0x14], 0x20
mov dword [ebp - 4], esi
je 0x100274a5
mov ebx, dword [ebp - 0x21c]
push 5
push dword [ebp - 0x220]
push ebx
call fcn.1000fb49
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10027698
test dword [ebp + 0x14], 0x4000
je 0x10027496
push 0x927c0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1002749d
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1002749d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
jmp 0x10027698
test dword [ebp + 0x14], 0x840
je 0x10027506
test dword [ebp + 0x14], 0x800
jne 0x100274c2
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10027506
push dword [ebp - 0x224]
mov ecx, ebx
push dword [ebp - 0x21c]
push edi
call fcn.10027913
test eax, eax
je 0x100274f4
test dword [ebp + 0x14], 0x400
jne 0x100274ec
push 2
mov ecx, ebx
call fcn.1002469b
push 3
pop esi
jmp 0x10027698
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x10001
jmp 0x10027637
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10040d30
add esp, 0xc
lea eax, [ebp - 0x218]
push SysReAllocString
push edi
push esi
push 0x104
push eax
call fcn.1001313b
test eax, eax
js 0x10027544
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002757a
cmp word [ebp - 0x218], si
je 0x1002757a
lea eax, [ebp - 0x218]
push eax
call fcn.1000f8f1
pop ecx
test eax, eax
jne 0x1002757a
lea eax, [ebp - 0x218]
push eax
push 0x10002
jmp 0x10027637
push dword [ebp - 0x224]
mov ecx, ebx
push dword [ebp - 0x21c]
push edi
call fcn.1002786d
mov ecx, eax
mov dword [ebp - 0x21c], ecx
cmp ecx, 1
je 0x100275a0
cmp ecx, 2
jne 0x100275f9
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x100275f9
mov edx, eax
lea eax, [edx + 2]
mov dword [ebp - 0x220], eax
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x100275b5
sub edx, dword [ebp - 0x220]
sar edx, 1
cmp edx, 0x20
jne 0x100275f9
push dword [ebp + 0x20]
mov eax, dword [ebp - 0x228]
push eax
push edi
call fcn.1000ee18
add esp, 0xc
test eax, eax
jne 0x100275f3
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x10003
jmp 0x10027637
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
jne 0x1002760c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x10004
jmp 0x10027637
test dword [ebp + 0x14], 0x100
je 0x1002764a
cmp word [ebp - 0x218], si
je 0x10027646
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.100100fe
pop ecx
pop ecx
test eax, eax
jne 0x10027640
push edi
push 0x10005
mov ecx, ebx
call fcn.10027814
jmp 0x10027698
mov ecx, dword [ebp - 0x21c]
mov esi, ecx
jmp 0x10027698
test byte [ebp + 0x14], 1
je 0x1002765a
push 1
push edi
call fcn.1000effb
pop ecx
pop ecx
test byte [ebp + 0x14], 0x80
je 0x1002766f
push esi
push str._RegServer
push edi
call fcn.1000fc28
add esp, 0xc
mov esi, dword [ebp - 0x21c]
cmp esi, 3
je 0x10027698
test byte [ebp + 0x14], 4
je 0x10027689
push 1
mov ecx, ebx
call fcn.1002469b
test byte [ebp + 0x14], 8
je 0x10027698
push 2
mov ecx, ebx
call fcn.1002469b
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.10009de4
mov eax, esi
call fcn.1003eeef
ret 0x1c