Function at 0x140005038
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x14000e0a8]
xor rax, rsp
mov qword [rbp + 0x970], rax
mov r15, rdx
lea r8, [rsp + 0x20]
mov edx, 0x5601
mov r9d, 0x104
mov r13, rcx
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
xor r14d, r14d
mov edi, 0x80004005
test eax, eax
je 0x1400050af
lea r8, [rsp + 0x20]
mov rcx, r15
lea rdx, [rbp + 0x340]
call fcn.140004fb0
mov r12d, eax
jmp 0x1400050b2
mov r12d, edi
test r12d, r12d
js 0x1400052d9
mov ebx, 0x5610
mov r9d, 0x104
lea r8, [rbp + 0x130]
mov edx, ebx
mov rcx, r13
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x1400050f8
lea r8, [rbp + 0x130]
mov rcx, r15
lea rdx, [rsp + 0x20]
call fcn.140004fb0
jmp 0x1400050fa
mov eax, edi
test eax, eax
js 0x14000515a
or rax, 0xffffffffffffffff
inc rax
cmp word [r15 + rax*2], r14w
jne 0x140005102
cmp eax, 3
jle 0x14000515a
mov r8d, eax
lea rdx, [rsp + 0x20]
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_StrCmpNW]
nop dword [rax + rax]
test eax, eax
jne 0x14000515a
lea rdx, [0x14000b674]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
nop dword [rax + rax]
test rax, rax
jne 0x14000515a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
inc ebx
cmp ebx, 0x5613
jbe 0x1400050c0
mov ebx, 0x5630
mov edi, r14d
mov esi, ebx
jmp 0x140005177
xor r14d, r14d
mov r9d, 0x104
lea r8, [rbp + 0x130]
mov edx, esi
mov rcx, r13
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x1400051af
lea r8, [rbp + 0x130]
mov rcx, r15
lea rdx, [rsp + 0x20]
call fcn.140004fb0
jmp 0x1400051b4
mov eax, 0x80004005
test eax, eax
js 0x1400051cc
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
mov r14d, eax
test r14d, r14d
lea ecx, [rdi + 1]
mov r14d, 0x5631
cmove ecx, edi
inc esi
mov edi, ecx
cmp esi, r14d
jbe 0x140005174
cmp ecx, 2
jl 0x1400052d9
lea rcx, [rbp + 0x340]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
jne 0x140005221
xor edx, edx
lea rcx, [rbp + 0x340]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x1400052d9
mov edi, 0x104
mov r9d, edi
lea r8, [rbp + 0x550]
mov edx, ebx
mov rcx, r13
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x1400052ce
mov r9d, edi
lea r8, [rbp + 0x130]
mov edx, ebx
mov rcx, r13
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x140005280
lea r8, [rbp + 0x130]
mov rcx, r15
lea rdx, [rbp + 0x760]
call fcn.140004fb0
jmp 0x140005285
mov eax, 0x80004005
test eax, eax
js 0x1400052ce
lea r8, [rbp + 0x340]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14000175c
test eax, eax
js 0x1400052ce
lea r8, [rbp + 0x550]
lea rcx, [rsp + 0x20]
call fcn.1400081e0
test eax, eax
js 0x1400052ce
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x760]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
nop dword [rax + rax]
inc ebx
cmp ebx, r14d
jbe 0x140005226
mov eax, r12d
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.140008d70
mov rbx, qword [rsp + 0xad0]
add rsp, 0xa80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret