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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, rcx
mov qword [rsp + 0x28], rcx
call fcn.140051e58
mov rcx, rax
xor r13d, r13d
mov edx, r13d
test rax, rax
setne dl
test edx, edx
jne 0x14003264b
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
call fcn.140051e58
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14003267a
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x30], rsi
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call fcn.140051e58
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400326bc
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x60]
lea rax, [rsp + 0x60]
or r12, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x140032711
movzx edi, cx
mov ecx, edi
call fcn.140051c2c
test rax, rax
je 0x140032814
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140001b00
mov rbx, qword [rsp + 0x20]
jmp 0x140032814
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140032790
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140032814
cmp dword [rdx + 0x10], eax
jge 0x14003275d
cmp dword [rbx - 0xc], eax
jge 0x140032750
mov ecx, 0x80070057
call fcn.140001010
int3
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x140032814
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140032774
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
mov rsi, qword [rsp + 0x30]
jmp 0x140032814
mov r15d, dword [rbx - 0x10]
lea r14, [rsp + 0x60]
sub r14, rbx
sar r14, 1
test ecx, ecx
jns 0x1400327ae
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400327d0
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.1400018f0
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x1400327f4
lea r8, [rbx + r14*2]
call fcn.140192c44
jmp 0x1400327fe
lea r8, [rsp + 0x60]
call fcn.140192bbc
cmp edi, dword [rbx - 0xc]
jg 0x140032acc
mov dword [rbx - 0x10], edi
mov word [r15 + rbx], r13w
mov r14, qword [rsp + 0x28]
cmp dword [rbx - 0x10], 0
jge 0x14003281f
mov eax, r12d
jmp 0x14003283e
lea rdx, [0x1401c7444]
mov rcx, rbx
call fcn.140195de8
test rax, rax
jne 0x140032838
mov eax, r12d
jmp 0x14003283e
sub rax, rbx
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.140017f20
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x1400328ac
cmp dword [rsi + 0x10], 0
jl 0x14003289d
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x14003289d
call fcn.140001950
mov rdi, rax
mov ecx, r12d
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140032892
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x30], rax
jmp 0x1400328ac
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140001c20
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400328cc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140051e58
mov rcx, rax
test rax, rax
setne r13b
test r13d, r13d
jne 0x1400328eb
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rdx, str.CNTemp
test rdx, 0xffffffffffff0000
jne 0x14003292b
movzx edi, dx
mov ecx, edi
call fcn.140051c2c
test rax, rax
je 0x140032936
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140001b00
jmp 0x140032936
lea rcx, [rsp + 0x28]
call fcn.14002ffd0
nop
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400182c0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x38]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x1400329aa
cmp dword [rdi + 0x10], 0
jl 0x14003299b
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14003299b
call fcn.140001950
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140032990
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x1400329aa
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140001c20
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400329cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400329eb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rsi, [rdi - 0x18]
mov rbx, qword [r14 + 0x2a0]
sub rbx, 0x18
cmp rsi, rbx
je 0x140032a62
cmp dword [rbx + 0x10], 0
jl 0x140032a4f
mov rax, qword [rbx]
cmp qword [rsi], rax
jne 0x140032a4f
mov rcx, rsi
call fcn.140001950
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140032a42
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rdi + 0x18]
mov qword [r14 + 0x2a0], rax
jmp 0x140032a62
mov r8d, dword [rdi - 0x10]
mov rdx, rdi
lea rcx, [r14 + 0x2a0]
call fcn.140001c20
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140032a8a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140032aab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock xadd dword [rsi + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x140032ac5
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x140032ad7
mov ecx, 0x80070057
call fcn.140001010
nop
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1401945b0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret