Function at 0x14003d480
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 [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, rcx
mov qword [rsp + 0x28], rcx
call fcn.140056384
mov rcx, rax
xor r13d, r13d
mov edx, r13d
test rax, rax
setne dl
test edx, edx
jne 0x14003d4eb
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
call fcn.140056384
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14003d51a
mov ecx, 0x80004005
call fcn.140004550
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.140056384
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14003d55c
mov ecx, 0x80004005
call fcn.140004550
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 0x14003d5b1
movzx edi, cx
mov ecx, edi
call fcn.140056158
test rax, rax
je 0x14003d6b4
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140005730
mov rbx, qword [rsp + 0x20]
jmp 0x14003d6b4
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 0x14003d630
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14003d6b4
cmp dword [rdx + 0x10], eax
jge 0x14003d5fd
cmp dword [rbx - 0xc], eax
jge 0x14003d5f0
mov ecx, 0x80070057
call fcn.140004550
int3
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x14003d6b4
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003d614
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 0x14003d6b4
mov r15d, dword [rbx - 0x10]
lea r14, [rsp + 0x60]
sub r14, rbx
sar r14, 1
test ecx, ecx
jns 0x14003d64e
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14003d670
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140005ae0
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 0x14003d694
lea r8, [rbx + r14*2]
call fcn.140199418
jmp 0x14003d69e
lea r8, [rsp + 0x60]
call fcn.140199918
cmp edi, dword [rbx - 0xc]
jg 0x14003d96c
mov dword [rbx - 0x10], edi
mov word [r15 + rbx], r13w
mov r14, qword [rsp + 0x28]
cmp dword [rbx - 0x10], 0
jge 0x14003d6bf
mov eax, r12d
jmp 0x14003d6de
lea rdx, [0x14021d21c]
mov rcx, rbx
call fcn.1401998b4
test rax, rax
jne 0x14003d6d8
mov eax, r12d
jmp 0x14003d6de
sub rax, rbx
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.1400121e0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x14003d74c
cmp dword [rsi + 0x10], 0
jl 0x14003d73d
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x14003d73d
call fcn.140006db0
mov rdi, rax
mov ecx, r12d
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14003d732
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 0x14003d74c
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400059f0
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003d76c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140056384
mov rcx, rax
test rax, rax
setne r13b
test r13d, r13d
jne 0x14003d78b
mov ecx, 0x80004005
call fcn.140004550
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 0x14003d7cb
movzx edi, dx
mov ecx, edi
call fcn.140056158
test rax, rax
je 0x14003d7d6
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140005730
jmp 0x14003d7d6
lea rcx, [rsp + 0x28]
call fcn.1400341f0
nop
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140012280
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x38]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14003d84a
cmp dword [rdi + 0x10], 0
jl 0x14003d83b
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14003d83b
call fcn.140006db0
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14003d830
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 0x14003d84a
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.1400059f0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003d86b
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 0x14003d88b
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 0x14003d902
cmp dword [rbx + 0x10], 0
jl 0x14003d8ef
mov rax, qword [rbx]
cmp qword [rsi], rax
jne 0x14003d8ef
mov rcx, rsi
call fcn.140006db0
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14003d8e2
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 0x14003d902
mov r8d, dword [rdi - 0x10]
mov rdx, rdi
lea rcx, [r14 + 0x2a0]
call fcn.1400059f0
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 0x14003d92a
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 0x14003d94b
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 0x14003d965
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x14003d977
mov ecx, 0x80070057
call fcn.140004550
nop
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140198b40
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