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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140033060]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, rcx
mov r12d, 0x104
lea rdx, [rsp + 0x60]
lea rcx, [0x140019000]
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, eax
cdqe
cmp byte [rsp + rbx + 0x60], 0x2e
je 0x14001b8bf
lea rax, [rsp + rax + 0x60]
dec rax
dec ebx
cmp byte [rax], 0x2e
jne 0x14001b8b5
mov edx, 0x103
lea rcx, [rsp + rbx + 0x61]
lea r8, [0x14003058c]
sub edx, ebx
mov qword [rsp + 0x2c8], rsi
mov qword [rsp + 0x2d0], rdi
call fcn.14001d97c
xor r15d, r15d
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], r15
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14001ba2b
lea rdx, [rsp + 0x170]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x14001bb04
or rcx, rbp
xor eax, eax
lea rdi, [rsp + 0x170]
repne scasb al, byte [rdi]
not rcx
cmp byte [rsp + rcx + 0x16e], 0x5c
lea rbp, [rcx - 1]
je 0x14001b966
mov byte [rsp + rcx + 0x16e], 0x5c
inc rbp
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
cmp byte [rsp + rdi + 0x60], 0x5c
je 0x14001b984
dec rdi
jmp 0x14001b978
lea rsi, [rdi - 1]
nop dword [rax + rax]
movzx eax, byte [rsp + rsi + 0x60]
cmp al, 0x5c
je 0x14001b9a2
cmp al, 0x3a
je 0x14001b9a2
dec rsi
jmp 0x14001b990
lea rax, [rsi + 1]
lea rcx, [rsp + rbp + 0x170]
cmp rax, rdi
cmove rsi, rax
sub r12, rbp
lea r8, [rsp + rsi + 0x61]
mov rdx, r12
call fcn.14001d97c
cmp rdi, rsi
je 0x14001b9f0
sub rdi, rsi
lea rcx, [rsp + 0x170]
xor edx, edx
add rdi, rbp
mov byte [rsp + rdi + 0x16f], r15b
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [rsp + rdi + 0x16f], 0x5c
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x170]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14001bb04
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp byte [rsp + rbx + 0x60], 0x5c
mov qword [rsp + 0x44], r14
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x4c], r15d
movsxd rax, ebx
je 0x14001ba5a
lea rax, [rsp + rax + 0x60]
nop
dec rax
dec ebx
cmp byte [rax], 0x5c
jne 0x14001ba50
cmp dword [0x1400355d4], r15d
lea eax, [rbx + 1]
lea rcx, str.DbgHelp.dll
mov byte [rsp + rax + 0x60], r15b
lea rax, [0x14001b7d0]
cmovne rax, r15
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14001bafb
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x14001baf2
mov ebx, r15d
cmp dword [0x1400355d4], ebx
setne bl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9d, [rbx + 1]
mov rcx, rax
lea rax, [rsp + 0x50]
mov r8, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov edx, edi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14001d3f0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rbp
ret