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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140027054
mov eax, 0x80004003
jmp 0x140027283
mov edx, 0x5c
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x18]
test rax, rax
mov rbp, rax
cmove rbp, rsi
test rcx, rcx
je 0x140027084
call fcn.1400012c0
mov qword [rdi + 0x18], rbx
or r14, 0xffffffffffffffff
mov rsi, r14
inc rsi
cmp word [rbp + rsi*2], bx
jne 0x14002708b
mov r15d, 2
inc rsi
mov eax, r15d
mul rsi
cmovo rax, r14
mov rcx, rax
call fcn.14000130c
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1400270c3
mov eax, 0x8007000e
jmp 0x140027283
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call fcn.1400104bc
cmp qword [rdi + 0x30], rbx
jne 0x140027281
mov ebp, 0x104
lea rdx, [rsp + 0x30]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140027281
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14002710d
call fcn.1400012c0
mov qword [rdi + 0x30], rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
mov r8, qword [rdi + 0x18]
lea rcx, [rsp + 0x30]
mov rdx, rbp
call fcn.140010470
lea rax, [rsp + 0x30]
mov rsi, r14
inc rsi
cmp word [rax + rsi*2], bx
jne 0x140027137
inc rsi
mov rax, r15
mul rsi
cmovo rax, r14
mov rcx, rax
call fcn.14000130c
mov qword [rdi + 0x30], rax
test rax, rax
je 0x140027281
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rax
call fcn.1400104bc
mov rcx, qword [rdi + 0x30]
call fcn.140019eb0
test eax, eax
jne 0x140027281
lea rdx, [rsp + 0x30]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPath2W]
nop dword [rax + rax]
test eax, eax
je 0x140027281
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x1400271b0
call fcn.1400012c0
mov qword [rdi + 0x30], rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
mov rax, qword [rdi + 0x18]
mov rcx, r14
inc rcx
cmp word [rax + rcx*2], bx
jne 0x1400271c8
lea rdx, [rsp + 0x30]
mov rax, r14
inc rax
cmp word [rdx + rax*2], bx
jne 0x1400271d9
lea rsi, [rax + 0x41]
mov rax, r15
add rsi, rcx
mul rsi
cmovo rax, r14
mov rcx, rax
call fcn.14000130c
mov qword [rdi + 0x30], rax
test rax, rax
je 0x140027281
mov ecx, dword [0x140053834]
mov dword [rdi + 0x7c], 1
lea eax, [rcx + 1]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rdi + 0x30]
lea r9, [rsp + 0x30]
lea r8, str._sWMC_4.4lu.tmp
mov dword [0x140053834], eax
mov rdx, rsi
call fcn.1400104f4
mov rcx, qword [rdi + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140027268
call fcn.140015998
cmp eax, 0xb7
jne 0x140027263
mov ecx, dword [0x140053834]
cmp ecx, 0xffffffff
jb 0x140027211
mov ebx, 0x80004005
mov rcx, qword [rdi + 0x30]
call fcn.14001937c
mov r8, qword [rdi + 0x18]
mov rdx, rsi
mov rcx, qword [rdi + 0x30]
call fcn.140010470
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140001660
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret