Function at 0x14003e760
Capabilities:
Create directory
Query environment variable
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf80]
mov eax, 0x1080
call fcn.1400f92f0
sub rsp, rax
mov rax, qword [0x1401770a0]
xor rax, rsp
mov qword [rbp + 0xf70], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rdx
xor r13d, r13d
mov dword [rsp + 0x34], r13d
mov qword [rdx], r13
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], 7
mov word [rdx], r13w
mov dword [rsp + 0x34], 1
mov rcx, rdx
call fcn.14003e2f0
mov rax, qword [rsi + 0x48]
mov ebx, dword [rax + 0x10]
lea r8d, [r13 + 4]
lea rdx, str.__
mov rcx, rdi
call fcn.140043c20
test ebx, ebx
jne 0x14003e8ec
mov rax, qword [rsi + 0x48]
mov rdx, qword [rax + 0x28]
cmp word [rdx], bx
je 0x14003e81d
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003e805
mov rcx, rdi
call fcn.140043270
jmp 0x14003ea5a
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.1400fb270
mov r8d, 0x400
lea rdx, [rsp + 0x70]
lea rcx, str._programdata_BDLogging
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, str._programdata_
lea rcx, [rsp + 0x70]
call fcn.1400fa84c
test rax, rax
je 0x14003e87b
mov word [rsp + 0x70], r13w
mov r8d, 0x400
lea rdx, [rsp + 0x70]
lea rcx, str._ALLUSERSPROFILE_Application_DataBDLogging
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
mov rdx, rbx
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x14003e890
mov rcx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x14003e8dd
lea r14, [rcx + rdx]
mov qword [rdi + 0x10], r14
mov rsi, rdi
cmp r8, 8
jb 0x14003e8c1
mov rsi, qword [rdi]
lea rcx, [rsi + rcx*2]
lea r8, [rdx + rdx]
lea rdx, [rsp + 0x70]
call fcn.1400fabc0
mov word [rsi + r14*2], r13w
jmp 0x14003ea5a
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x70]
jmp 0x14003ea4c
mov qword [rsp + 0x60], r13
mov r8d, 4
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rsp + 0x60]
mov rbx, 0xffffffffffffffff
mov rdx, rbx
inc rdx
cmp word [rax + rdx*2], 0
jne 0x14003e913
mov rcx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x14003e95d
lea r14, [rcx + rdx]
mov qword [rdi + 0x10], r14
mov rsi, rdi
cmp r8, 8
jb 0x14003e944
mov rsi, qword [rdi]
lea rcx, [rsi + rcx*2]
lea r8, [rdx + rdx]
lea rdx, [rsp + 0x60]
call fcn.1400fabc0
mov word [rsi + r14*2], r13w
jmp 0x14003e975
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x60]
movzx r8d, byte [rsp + 0x30]
mov rcx, rdi
call fcn.140043120
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x14003e9ba
lea r14, [rcx + 0xb]
mov qword [rdi + 0x10], r14
mov rsi, rdi
cmp rdx, 8
jb 0x14003e99d
mov rsi, qword [rdi]
lea rcx, [rsi + rcx*2]
mov r8d, 0x16
lea rdx, str.ProgramData
call fcn.1400fabc0
mov word [rsi + r14*2], r13w
jmp 0x14003e9dd
mov qword [rsp + 0x20], 0xb
lea r9, str.ProgramData
movzx r8d, byte [rsp + 0x30]
mov edx, 0xb
mov rcx, rdi
call fcn.140043120
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003e9ea
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xa
jb 0x14003ea37
lea r14, [rcx + 0xa]
mov qword [rdi + 0x10], r14
mov rsi, rdi
cmp rdx, 8
jb 0x14003ea1a
mov rsi, qword [rdi]
lea rcx, [rsi + rcx*2]
mov r8d, 0x14
lea rdx, str.BDLogging
call fcn.1400fabc0
mov word [rsi + r14*2], r13w
jmp 0x14003ea5a
mov qword [rsp + 0x20], 0xa
lea r9, str.BDLogging
mov edx, 0xa
movzx r8d, byte [rsp + 0x30]
mov rcx, rdi
call fcn.140043120
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003ea67
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003ea7c
mov rcx, qword [rdi]
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rax, rdi
mov r12, qword [rdi + 0x18]
cmp r12, 8
jb 0x14003ea97
mov rax, qword [rdi]
mov r15, qword [rdi + 0x10]
movabs rsi, 0x7ffffffffffffffe
cmp word [rax + r15*2 - 2], 0x5c
je 0x14003eba2
cmp r15, r12
jae 0x14003ead8
lea rax, [r15 + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp r12, 8
jb 0x14003eacb
mov rax, qword [rdi]
mov dword [rax + r15*2], 0x5c
jmp 0x14003eba2
mov rax, rsi
sub rax, r15
cmp rax, 1
jb 0x14003ee70
lea r14, [r15 + 1]
or r14, 7
cmp r14, rsi
jbe 0x14003eafa
mov r14, rsi
jmp 0x14003eb1b
mov rcx, r12
shr rcx, 1
mov rax, rsi
sub rax, rcx
cmp r12, rax
jbe 0x14003eb10
mov r14, rsi
jmp 0x14003eb1b
lea rax, [r12 + rcx]
cmp r14, rax
cmovb r14, rax
lea rdx, [r14 + 1]
mov rcx, rdi
call fcn.140043ab0
mov r13, rax
lea rax, [r15 + 1]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], r14
add r15, r15
mov r8, r15
mov rcx, r13
cmp r12, 8
jb 0x14003eb8f
mov r14, qword [rdi]
mov rdx, r14
call fcn.1400fabc0
mov dword [r15 + r13], 0x5c
lea rdx, [r12*2 + 2]
cmp rdx, 0x1000
jb 0x14003eb85
add rdx, 0x27
mov rcx, qword [r14 - 8]
sub r14, rcx
lea rax, [r14 - 8]
cmp rax, 0x1f
ja 0x14003ee76
mov r14, rcx
mov rcx, r14
call fcn.1400f877c
jmp 0x14003eb9f
mov rdx, rdi
call fcn.1400fabc0
mov dword [r15 + r13], 0x5c
mov qword [rdi], r13
mov r8d, 7
lea rdx, str.CstLogs
mov rcx, rdi
call fcn.140043270
mov rax, rdi
mov r15, qword [rdi + 0x18]
cmp r15, 8
jb 0x14003ebc7
mov rax, qword [rdi]
mov r14, qword [rdi + 0x10]
cmp word [rax + r14*2 - 2], 0x5c
je 0x14003ecb4
cmp r14, r15
jae 0x14003ec00
lea rax, [r14 + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp r15, 8
jb 0x14003ebf1
mov rax, qword [rdi]
mov r15d, 0x5c
mov dword [rax + r14*2], r15d
jmp 0x14003ecba
mov rax, rsi
sub rax, r14
cmp rax, 1
jb 0x14003ee70
lea r13, [r14 + 1]
mov rcx, r13
or rcx, 7
cmp rcx, rsi
ja 0x14003ec3f
mov rdx, r15
shr rdx, 1
mov rax, rsi
sub rax, rdx
cmp r15, rax
ja 0x14003ec3f
lea rax, [r15 + rdx]
mov rsi, rcx
cmp rcx, rax
cmovb rsi, rax
lea rdx, [rsi + 1]
mov rcx, rdi
call fcn.140043ab0
mov r12, rax
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], rsi
add r14, r14
mov r8, r14
mov rcx, rax
cmp r15, 8
jb 0x14003ed26
mov rsi, qword [rdi]
mov rdx, rsi
call fcn.1400fabc0
mov dword [r12 + r14], 0x5c
lea rdx, [r15*2 + 2]
cmp rdx, 0x1000
jb 0x14003eca9
add rdx, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x14003ee76
mov rsi, rcx
mov rcx, rsi
call fcn.1400f877c
mov qword [rdi], r12
mov r15d, 0x5c
xor esi, esi
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003ecc9
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003ecde
mov rcx, qword [rdi]
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x70]
call fcn.1400fb270
mov r8d, 0x800
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, r15d
lea rcx, [rsp + 0x70]
call fcn.1400fa79c
test rax, rax
je 0x14003ed40
add rax, 2
jmp 0x14003ed45
mov rdx, rdi
call fcn.1400fabc0
mov r15d, 0x5c
mov dword [r12 + r14], r15d
mov qword [rdi], r12
jmp 0x14003ecba
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], si
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14003ed60
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140043c20
mov dword [rsp + 0x34], 3
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
mov rdx, rdi
call fcn.14003e410
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14003edde
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003edd9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003ee76
call fcn.1400f877c
lea rdx, [rsp + 0x40]
call fcn.14003e540
nop
cmp qword [rax + 0x18], 8
jb 0x14003edf3
mov rax, qword [rax]
mov r8, rax
mov rdx, rdi
call fcn.14003e410
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14003ee3d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003ee38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003ee6a
call fcn.1400f877c
mov rax, rdi
mov rcx, qword [rbp + 0xf70]
xor rcx, rsp
call fcn.1400f8730
mov rbx, qword [rsp + 0x10d0]
add rsp, 0x1080
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400ff670
int3
call fcn.1400438e0
int3
call fcn.1400ff670
int3