Function at 0x180027498
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea rax, [r11 - 0x38]
mov r12, rcx
mov qword [r11 - 0x30], rax
lea rax, [r11 - 0x38]
mov qword [r11 - 0x38], rax
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov r8, qword [0x180035c60]
lea r13, [0x180000000]
mov ebp, 0x12
xor edi, edi
lea rdx, [r8 + r13 + 0x397a0]
lea rcx, [r8 + r13 + 0x39710]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x28], ebp
mov ebx, eax
mov dword [rsp + 0x20], edi
call fcn.180026d20
mov rcx, qword [0x180035c60]
lea rdx, [rcx + r13 + 0x397c8]
lea r8, [rsp + 0x30]
lea rcx, [rcx + r13 + 0x39710]
xor r9d, r9d
mov dword [rsp + 0x28], ebp
mov esi, eax
mov dword [rsp + 0x20], edi
call fcn.180026d20
mov rcx, qword [0x180035a68]
lea r8, [rbx + rbx + 0x36]
xor edx, edx
add esi, eax
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbp, rax
cmp rax, rdi
je 0x1800275be
add rbx, rbx
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.ntdll.dll_memcpy
mov rcx, qword [0x180035c60]
lea rdx, [rcx + r13 + 0x39760]
lea rcx, [rbx + rbp]
call qword [sym.imp.kERNEL32.dll_lstrcpyW]
mov rax, qword [0x180035c60]
lea r8, [rsp + 0x30]
lea rdx, [rax + r13 + 0x39800]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], edi
call fcn.180026d20
mov rcx, qword [0x180035a68]
mov r8, rbp
xor edx, edx
add esi, eax
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [0x180035a68]
xor edx, edx
mov r8d, 0x20c
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, rdi
je 0x180027663
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x21]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
jne 0x180027651
mov rax, qword [0x180035c60]
mov ebp, 0x11
lea r8, [rsp + 0x30]
lea rdx, [rax + r13 + 0x39820]
xor r9d, r9d
mov rcx, rbx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], edi
call fcn.180026d20
add esi, eax
mov rax, qword [0x180035c60]
lea r8, [rsp + 0x30]
lea rdx, [rax + r13 + 0x39840]
xor r9d, r9d
mov rcx, rbx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], edi
call fcn.180026d20
add esi, eax
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rax, qword [0x180035c60]
lea rcx, [rax + r13 + 0x39920]
call fcn.180022734
mov rbx, rax
cmp rax, rdi
je 0x180027762
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rcx, qword [0x180035a68]
xor edx, edx
inc eax
lea r8, [rax + rax + 0x42]
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbp, rax
cmp rax, rdi
je 0x180027750
mov rcx, qword [0x180035c60]
mov rdx, rbx
lea r8, [rcx + r13 + 0x39a20]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rcx, qword [0x180035c60]
lea r8, [rsp + 0x30]
lea rdx, [rcx + r13 + 0x39a60]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 0x13
mov dword [rsp + 0x20], edi
call fcn.180026d20
add esi, eax
mov rax, qword [0x180035c60]
mov rdx, rbx
lea r8, [rax + r13 + 0x399c0]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rax, qword [0x180035c60]
lea r8, [rsp + 0x30]
lea rdx, [rax + r13 + 0x39a60]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 0x14
mov dword [rsp + 0x20], edi
call fcn.180026d20
mov rcx, qword [0x180035a68]
mov r8, rbp
xor edx, edx
add esi, eax
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
cmp esi, edi
je 0x18002789d
mov rcx, qword [0x180035af8]
mov r12, qword [rsp + 0x30]
call fcn.180011ae0
mov rbx, rax
cmp rax, rdi
je 0x18002778e
xor edx, edx
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_CreateDirectoryW]
lea r14, [0x1800398d0]
lea r15, [0x1800398a8]
lea rdx, [0x180039860]
lea r8, [0x180039888]
mov rsi, r12
mov r12, qword [r12]
mov rbp, rdi
mov rax, qword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov eax, dword [rsi + 0x18]
sub eax, 0x10
je 0x180027820
sub eax, 1
je 0x18002780b
sub eax, 1
je 0x1800277fc
sub eax, 1
je 0x1800277ed
cmp eax, 1
jne 0x18002782f
mov rbp, qword [0x180035c60]
mov rcx, r14
add rbp, r14
jmp 0x180027818
mov rbp, qword [0x180035c60]
mov rcx, r15
add rbp, r15
jmp 0x180027818
mov rbp, qword [0x180035c60]
mov rcx, rdx
add rbp, rdx
jmp 0x180027818
mov rbp, qword [0x180035c60]
mov rcx, r8
add rbp, r8
call qword [sym.imp.kERNEL32.dll_lstrlenW]
jmp 0x18002782f
mov rax, qword [0x180035c60]
lea rbp, [rax + r13 + 0x39908]
cmp rbx, rdi
je 0x18002784c
mov r8d, dword [rsi + 0x24]
lea rdx, [rsi + 0x28]
mov r9, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call fcn.18000ef20
lea rcx, [rsi + 0x28]
call qword [sym.imp.kERNEL32.dll_DeleteFileW]
mov rcx, qword [0x180035a68]
mov r8, rsi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
lea r11, [rsp + 0x30]
lea rdx, [0x180039860]
lea r8, [0x180039888]
cmp r12, r11
jne 0x1800277aa
cmp rbx, rdi
je 0x1800278a2
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
jmp 0x1800278a2
mov edi, 2
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret