Function at 0x14001e660
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
xor r14d, r14d
mov rdi, rcx
mov ebp, r14d
mov rcx, rbx
lea edx, [r14 + 0x5c]
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rcx, qword [rdi + 0x18]
test rax, rax
mov rsi, rax
cmove rsi, rbx
test rcx, rcx
je 0x14001e6c0
call fcn.14003c408
mov qword [rdi + 0x18], r14
or r15, 0xffffffffffffffff
mov rbx, r15
inc rbx
cmp word [rsi + rbx*2], r14w
jne 0x14001e6c7
mov r12d, 2
inc rbx
mov eax, r12d
mul rbx
cmovo rax, r15
mov rcx, rax
call fcn.14003c460
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14001e6ff
mov eax, 0x8007000e
jmp 0x14001e8ca
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140001470
cmp qword [rdi + 0x30], r14
jne 0x14001e8c8
mov esi, 0x104
lea rdx, [rsp + 0x30]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14001e8c8
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14001e743
call fcn.14003c408
mov qword [rdi + 0x30], r14
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, qword [rdi + 0x18]
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.140001584
lea rax, [rsp + 0x30]
mov rbx, r15
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x14001e767
inc rbx
mov rax, r12
mul rbx
cmovo rax, r15
mov rcx, rax
call fcn.14003c460
mov qword [rdi + 0x30], rax
test rax, rax
je 0x14001e8c8
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rax
call fcn.140001470
mov rcx, qword [rdi + 0x30]
call fcn.140017488
test eax, eax
jne 0x14001e8c8
lea rdx, [rsp + 0x30]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001e8c8
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14001e7db
call fcn.14003c408
mov qword [rdi + 0x30], r14
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rax, qword [rdi + 0x18]
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x14001e7ed
lea rdx, [rsp + 0x30]
mov rax, r15
inc rax
cmp word [rdx + rax*2], r14w
jne 0x14001e7ff
lea rbx, [rax + 0x41]
mov rax, r12
add rbx, rcx
mul rbx
cmovo rax, r15
mov rcx, rax
call fcn.14003c460
mov qword [rdi + 0x30], rax
mov r10, rax
test rax, rax
je 0x14001e8c8
mov ecx, dword [0x1400516fc]
mov dword [rsp + 0x20], ecx
mov dword [rdi + 0x7c], 1
lea eax, [rcx + 1]
mov rcx, r10
jmp 0x14001e878
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x57
cmove eax, ecx
cmp eax, 0xb7
jne 0x14001e8a4
mov ecx, dword [0x1400516fc]
cmp ecx, 0xffffffff
jae 0x14001e8a4
lea eax, [rcx + 1]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rdi + 0x30]
lea r9, [rsp + 0x30]
mov dword [0x1400516fc], eax
lea r8, str._sWMC_4.4lu.tmp
mov rdx, rbx
call fcn.140001734
mov rcx, qword [rdi + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14001e84b
jmp 0x14001e8a9
mov ebp, 0x80004005
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14001e8bc
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rcx, qword [rdi + 0x30]
mov r8, qword [rdi + 0x18]
mov rdx, rbx
call fcn.140001584
mov eax, ebp
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret