Function at 0x140034810
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 [0x140260d50]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, rcx
mov qword [rsp + 0x28], rcx
call fcn.14004cde4
mov rcx, rax
xor r13d, r13d
mov edx, r13d
test rax, rax
setne dl
test edx, edx
jne 0x14003487b
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
call fcn.14004cde4
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400348aa
mov ecx, 0x80004005
call fcn.140001000
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.14004cde4
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400348ec
mov ecx, 0x80004005
call fcn.140001000
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 0x140034941
movzx edi, cx
mov ecx, edi
call fcn.14004cbb8
test rax, rax
je 0x140034a44
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400012a0
mov rbx, qword [rsp + 0x20]
jmp 0x140034a44
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 0x1400349c0
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140034a44
cmp dword [rdx + 0x10], eax
jge 0x14003498d
cmp dword [rbx - 0xc], eax
jge 0x140034980
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x140034a44
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400349a4
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 0x140034a44
mov r15d, dword [rbx - 0x10]
lea r14, [rsp + 0x60]
sub r14, rbx
sar r14, 1
test ecx, ecx
jns 0x1400349de
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140034a00
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.1400015c0
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 0x140034a24
lea r8, [rbx + r14*2]
call fcn.14018e5f0
jmp 0x140034a2e
lea r8, [rsp + 0x60]
call fcn.14018e7d0
cmp edi, dword [rbx - 0xc]
jg 0x140034cfc
mov dword [rbx - 0x10], edi
mov word [r15 + rbx], r13w
mov r14, qword [rsp + 0x28]
cmp dword [rbx - 0x10], 0
jge 0x140034a4f
mov eax, r12d
jmp 0x140034a6e
lea rdx, [0x14021120c]
mov rcx, rbx
call fcn.140190f4c
test rax, rax
jne 0x140034a68
mov eax, r12d
jmp 0x140034a6e
sub rax, rbx
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.140016750
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x140034adc
cmp dword [rsi + 0x10], 0
jl 0x140034acd
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x140034acd
call fcn.140001620
mov rdi, rax
mov ecx, r12d
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140034ac2
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 0x140034adc
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400014d0
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140034afc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14004cde4
mov rcx, rax
test rax, rax
setne r13b
test r13d, r13d
jne 0x140034b1b
mov ecx, 0x80004005
call fcn.140001000
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 0x140034b5b
movzx edi, dx
mov ecx, edi
call fcn.14004cbb8
test rax, rax
je 0x140034b66
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400012a0
jmp 0x140034b66
lea rcx, [rsp + 0x28]
call fcn.14002cd40
nop
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400167f0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x38]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140034bda
cmp dword [rdi + 0x10], 0
jl 0x140034bcb
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140034bcb
call fcn.140001620
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140034bc0
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 0x140034bda
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.1400014d0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140034bfb
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 0x140034c1b
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 0x140034c92
cmp dword [rbx + 0x10], 0
jl 0x140034c7f
mov rax, qword [rbx]
cmp qword [rsi], rax
jne 0x140034c7f
mov rcx, rsi
call fcn.140001620
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140034c72
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 0x140034c92
mov r8d, dword [rdi - 0x10]
mov rdx, rdi
lea rcx, [r14 + 0x2a0]
call fcn.1400014d0
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 0x140034cba
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 0x140034cdb
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 0x140034cf5
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x140034d07
mov ecx, 0x80070057
call fcn.140001000
nop
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14018e5d0
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