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

Disassembly:
push 0x220
mov eax, 0x1006b746
call fcn.100417b5
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 - 0x224], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x220], eax
call fcn.10001ccc
push eax
lea ecx, [ebp - 0x22c]
call fcn.1000170c
xor esi, esi
test byte [ebp + 0x14], 0x20
mov dword [ebp - 4], esi
je 0x100235cf
mov ebx, dword [ebp - 0x21c]
push 5
push dword [ebp - 0x228]
push ebx
call fcn.1000e29f
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100237a8
test dword [ebp + 0x14], 0x4000
je 0x100235c0
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 0x100235c7
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x100235c7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
jmp 0x100237a8
test dword [ebp + 0x14], 0x840
je 0x10023630
test dword [ebp + 0x14], 0x800
jne 0x100235ec
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10023630
push dword [ebp - 0x220]
mov ecx, ebx
push dword [ebp - 0x21c]
push edi
call fcn.10023a23
test eax, eax
je 0x1002361e
test dword [ebp + 0x14], 0x400
jne 0x10023616
push 2
mov ecx, ebx
call fcn.10020962
push 3
pop esi
jmp 0x100237a8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x10001
jmp 0x10023747
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10046d90
add esp, 0xc
lea eax, [ebp - 0x218]
push SysReAllocString
push edi
push esi
push 0x104
push eax
call fcn.1001181a
test eax, eax
js 0x1002366e
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 0x100236a4
cmp word [ebp - 0x218], si
je 0x100236a4
lea eax, [ebp - 0x218]
push eax
call fcn.1000dffd
pop ecx
test eax, eax
jne 0x100236a4
lea eax, [ebp - 0x218]
push eax
push 0x10002
jmp 0x10023747
push dword [ebp - 0x220]
mov ecx, ebx
push dword [ebp - 0x21c]
push edi
call fcn.1002397d
mov dword [ebp - 0x21c], eax
cmp eax, 1
je 0x100236c8
cmp eax, 2
jne 0x10023709
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x10023709
push ecx
call fcn.1004a445
pop ecx
cmp eax, 0x20
jne 0x10023703
push dword [ebp + 0x20]
push dword [ebp - 0x224]
push edi
call fcn.1000ce15
add esp, 0xc
test eax, eax
jne 0x10023703
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x10003
jmp 0x10023747
mov eax, dword [ebp - 0x21c]
test eax, eax
jne 0x1002371c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x10004
jmp 0x10023747
test dword [ebp + 0x14], 0x100
je 0x1002375a
cmp word [ebp - 0x218], si
je 0x10023756
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.1000e857
pop ecx
pop ecx
test eax, eax
jne 0x10023750
push edi
push 0x10005
mov ecx, ebx
call fcn.10023924
jmp 0x100237a8
mov eax, dword [ebp - 0x21c]
mov esi, eax
jmp 0x100237a8
test byte [ebp + 0x14], 1
je 0x1002376a
push 1
push edi
call fcn.1000d057
pop ecx
pop ecx
test byte [ebp + 0x14], 0x80
je 0x1002377f
push esi
push str._RegServer
push edi
call fcn.1000e381
add esp, 0xc
mov esi, dword [ebp - 0x21c]
cmp esi, 3
je 0x100237a8
test byte [ebp + 0x14], 4
je 0x10023799
push 1
mov ecx, ebx
call fcn.10020962
test byte [ebp + 0x14], 8
je 0x100237a8
push 2
mov ecx, ebx
call fcn.10020962
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.10002163
mov eax, esi
call fcn.1004175f
ret 0x1c