Function at 0x14001e60c
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 0x14001e66c
call fcn.14003c2b8
mov qword [rdi + 0x18], r14
or r15, 0xffffffffffffffff
mov rbx, r15
inc rbx
cmp word [rsi + rbx*2], r14w
jne 0x14001e673
mov r12d, 2
inc rbx
mov eax, r12d
mul rbx
cmovo rax, r15
mov rcx, rax
call fcn.14003c310
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14001e6ab
mov eax, 0x8007000e
jmp 0x14001e876
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140001470
cmp qword [rdi + 0x30], r14
jne 0x14001e874
mov esi, 0x104
lea rdx, [rsp + 0x30]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14001e874
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14001e6ef
call fcn.14003c2b8
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 0x14001e713
inc rbx
mov rax, r12
mul rbx
cmovo rax, r15
mov rcx, rax
call fcn.14003c310
mov qword [rdi + 0x30], rax
test rax, rax
je 0x14001e874
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rax
call fcn.140001470
mov rcx, qword [rdi + 0x30]
call fcn.140017448
test eax, eax
jne 0x14001e874
lea rdx, [rsp + 0x30]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001e874
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14001e787
call fcn.14003c2b8
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 0x14001e799
lea rdx, [rsp + 0x30]
mov rax, r15
inc rax
cmp word [rdx + rax*2], r14w
jne 0x14001e7ab
lea rbx, [rax + 0x41]
mov rax, r12
add rbx, rcx
mul rbx
cmovo rax, r15
mov rcx, rax
call fcn.14003c310
mov qword [rdi + 0x30], rax
mov r10, rax
test rax, rax
je 0x14001e874
mov ecx, dword [0x1400516fc]
mov dword [rsp + 0x20], ecx
mov dword [rdi + 0x7c], 1
lea eax, [rcx + 1]
mov rcx, r10
jmp 0x14001e824
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x57
cmove eax, ecx
cmp eax, 0xb7
jne 0x14001e850
mov ecx, dword [0x1400516fc]
cmp ecx, 0xffffffff
jae 0x14001e850
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 0x14001e7f7
jmp 0x14001e855
mov ebp, 0x80004005
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14001e868
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.14003c6c0
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