Function at 0x100145d0
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043b09
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x1005a690]
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 edi, ecx
cmp dword [edi + 0x14], 8
jb 0x1001460a
mov eax, dword [edi]
jmp 0x1001460c
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001493c
xor eax, eax
push eax
push 0x10048468
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.1000aac0
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
mov ecx, dword [edi + 0x10]
jb 0x10014651
mov eax, dword [edi]
jmp 0x10014653
mov eax, edi
cmp word [eax + ecx*2 - 2], 0x5c
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jne 0x100146bf
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x290]
push eax
mov ecx, edi
call fcn.1000a1e0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x100146a9
cmp dword [ebp - 0x14], 8
jb 0x1001468c
push dword [ebp - 0x28]
call ebx
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.1000a660
cmp dword [ebp - 0x27c], 8
jb 0x100146d2
push dword [ebp - 0x290]
call ebx
add esp, 4
jmp 0x100146d2
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x100146d2
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.1000a9a0
push 2
push 0x10049f98
lea ecx, [ebp - 0x28]
call fcn.1000a7c0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x278]
call fcn.10026d80
mov dword [ebp - 0x294], eax
cmp eax, 0xffffffff
jne 0x1001470c
mov esi, 2
jmp 0x1001492c
push 0x1004846c
mov edx, edi
lea ecx, [ebp - 0x290]
call fcn.1000bb60
mov esi, eax
lea eax, [ebp - 0x28]
add esp, 4
cmp eax, esi
je 0x10014755
cmp dword [ebp - 0x14], 8
jb 0x10014738
push dword [ebp - 0x28]
call ebx
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.1000a660
cmp dword [ebp - 0x27c], 8
jb 0x10014769
push dword [ebp - 0x290]
call ebx
add esp, 4
mov esi, dword [ebp - 0x294]
lea edx, [ebp - 0x278]
mov ecx, esi
call fcn.10026e10
test eax, eax
je 0x100148ea
jmp 0x10014790
mov ecx, 0x10049fa0
lea eax, [ebp - 0x24c]
jmp 0x100147a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100147c6
test dx, dx
je 0x100147c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100147c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100147a0
xor eax, eax
jmp 0x100147cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x100148d5
mov ecx, 0x10049fa4
lea eax, [ebp - 0x24c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10014806
test dx, dx
je 0x10014802
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10014806
add eax, 4
add ecx, 4
test dx, dx
jne 0x100147e0
xor eax, eax
jmp 0x1001480b
sbb eax, eax
or eax, 1
test eax, eax
je 0x100148d5
test byte [ebp - 0x278], 0x10
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x28]
push eax
je 0x10014858
lea ecx, [ebp - 0x290]
call fcn.1000bb60
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100145d0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x27c], 8
jb 0x100148d5
push dword [ebp - 0x290]
jmp 0x100148d0
lea ecx, [ebp - 0x2ac]
call fcn.1000bb60
add esp, 4
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x10014872
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x290]
call fcn.10009fd0
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.10014960
cmp dword [ebp - 0x27c], 8
jb 0x100148a1
push dword [ebp - 0x290]
call ebx
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x298], 8
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
jb 0x100148d5
push dword [ebp - 0x2ac]
call ebx
add esp, 4
lea edx, [ebp - 0x278]
mov ecx, esi
call fcn.10026e10
test eax, eax
jne 0x10014790
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 8
jb 0x100148fb
mov eax, dword [edi]
jmp 0x100148fd
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1001492a
cmp dword [edi + 0x14], 8
jb 0x10014910
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x10014702
mov esi, 1
jmp 0x1001492c
xor esi, esi
cmp dword [ebp - 0x14], 8
jb 0x1001493a
push dword [ebp - 0x28]
call ebx
add esp, 4
mov eax, esi
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.1003e328
mov esp, ebp
pop ebp
ret