Function at 0x10005b6c0
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 [0x100086110]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
lea edx, [rbp + 0x5c]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rcx, qword [rbx + 0x18]
test rax, rax
mov rsi, rax
cmove rsi, rdi
test rcx, rcx
je 0x10005b715
call fcn.10007faa2
and qword [rbx + 0x18], rbp
xor eax, eax
or r14, 0xffffffffffffffff
mov rdi, rsi
lea r15d, [rax + 2]
mov rcx, r14
repne scasw ax, word [rdi]
mov rax, r15
not rcx
mov rdi, rcx
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.10007fa96
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x10005b753
mov eax, 0x8007000e
jmp 0x10005b934
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.100039df8
cmp qword [rbx + 0x30], rbp
jne 0x10005b932
mov esi, 0x104
lea rdx, [rsp + 0x30]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x10005b932
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10005b797
call fcn.10007faa2
and qword [rbx + 0x30], rbp
lea rax, [rsp + 0x30]
test rax, rax
je 0x10005b7ac
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, qword [rbx + 0x18]
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.100039ee4
xor eax, eax
lea rdi, [rsp + 0x30]
mov rcx, r14
repne scasw ax, word [rdi]
mov rax, r15
not rcx
mov rdi, rcx
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.10007fa96
mov qword [rbx + 0x30], rax
test rax, rax
je 0x10005b932
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rax
call fcn.100039df8
mov rcx, qword [rbx + 0x30]
call fcn.100053454
test eax, eax
jne 0x10005b932
lea rdx, [rsp + 0x30]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10005b932
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10005b837
call fcn.10007faa2
and qword [rbx + 0x30], rbp
lea rax, [rsp + 0x30]
test rax, rax
je 0x10005b84c
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rdi, qword [rbx + 0x18]
xor eax, eax
mov rcx, r14
repne scasw ax, word [rdi]
lea rdi, [rsp + 0x30]
not rcx
lea rdx, [rcx - 1]
mov rcx, r14
repne scasw ax, word [rdi]
mov rax, r15
not rcx
lea rdi, [rdx + rcx + 0x40]
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.10007fa96
mov r11, rax
mov qword [rbx + 0x30], rax
test rax, rax
je 0x10005b932
mov eax, dword [0x100088904]
mov dword [rbx + 0x7c], 1
mov ecx, eax
inc eax
mov dword [rsp + 0x20], ecx
mov dword [0x100088904], eax
mov rcx, r11
jmp 0x10005b8e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x57
test eax, eax
cmove eax, ecx
cmp eax, 0xb7
jne 0x10005b90e
mov ecx, dword [0x100088904]
cmp ecx, 0xffffffff
jae 0x10005b90e
mov eax, ecx
inc ecx
mov dword [0x100088904], ecx
mov rcx, qword [rbx + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x30]
lea r8, [0x10002b690]
mov rdx, rdi
call fcn.10003a080
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10005b8b4
jmp 0x10005b913
mov ebp, 0x80004005
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10005b922
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x30]
mov rdx, rdi
call fcn.100039ee4
mov eax, ebp
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.10007fa70
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret