Function at 0x14003e820
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.1400f67a0
sub rsp, rax
mov rax, qword [0x1401740a0]
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.14003e3b0
mov rax, qword [rsi + 0x48]
mov ebx, dword [rax + 0x10]
lea r8d, [r13 + 4]
lea rdx, [0x1401483f0]
mov rcx, rdi
call fcn.140043ce0
test ebx, ebx
jne 0x14003e9ac
mov rax, qword [rsi + 0x48]
mov rdx, qword [rax + 0x28]
cmp word [rdx], bx
je 0x14003e8dd
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003e8c5
mov rcx, rdi
call fcn.140043330
jmp 0x14003eb1a
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.1400f8720
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.1400f7cfc
test rax, rax
je 0x14003e93b
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 0x14003e950
mov rcx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x14003e99d
lea r14, [rcx + rdx]
mov qword [rdi + 0x10], r14
mov rsi, rdi
cmp r8, 8
jb 0x14003e981
mov rsi, qword [rdi]
lea rcx, [rsi + rcx*2]
lea r8, [rdx + rdx]
lea rdx, [rsp + 0x70]
call fcn.1400f8070
mov word [rsi + r14*2], r13w
jmp 0x14003eb1a
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x70]
jmp 0x14003eb0c
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 0x14003e9d3
mov rcx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x14003ea1d
lea r14, [rcx + rdx]
mov qword [rdi + 0x10], r14
mov rsi, rdi
cmp r8, 8
jb 0x14003ea04
mov rsi, qword [rdi]
lea rcx, [rsi + rcx*2]
lea r8, [rdx + rdx]
lea rdx, [rsp + 0x60]
call fcn.1400f8070
mov word [rsi + r14*2], r13w
jmp 0x14003ea35
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x60]
movzx r8d, byte [rsp + 0x30]
mov rcx, rdi
call fcn.1400431e0
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x14003ea7a
lea r14, [rcx + 0xb]
mov qword [rdi + 0x10], r14
mov rsi, rdi
cmp rdx, 8
jb 0x14003ea5d
mov rsi, qword [rdi]
lea rcx, [rsi + rcx*2]
mov r8d, 0x16
lea rdx, str.ProgramData
call fcn.1400f8070
mov word [rsi + r14*2], r13w
jmp 0x14003ea9d
mov qword [rsp + 0x20], 0xb
lea r9, str.ProgramData
movzx r8d, byte [rsp + 0x30]
mov edx, 0xb
mov rcx, rdi
call fcn.1400431e0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003eaaa
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 0x14003eaf7
lea r14, [rcx + 0xa]
mov qword [rdi + 0x10], r14
mov rsi, rdi
cmp rdx, 8
jb 0x14003eada
mov rsi, qword [rdi]
lea rcx, [rsi + rcx*2]
mov r8d, 0x14
lea rdx, str.BDLogging
call fcn.1400f8070
mov word [rsi + r14*2], r13w
jmp 0x14003eb1a
mov qword [rsp + 0x20], 0xa
lea r9, str.BDLogging
mov edx, 0xa
movzx r8d, byte [rsp + 0x30]
mov rcx, rdi
call fcn.1400431e0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003eb27
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003eb3c
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 0x14003eb57
mov rax, qword [rdi]
mov r15, qword [rdi + 0x10]
movabs rsi, 0x7ffffffffffffffe
cmp word [rax + r15*2 - 2], 0x5c
je 0x14003ec62
cmp r15, r12
jae 0x14003eb98
lea rax, [r15 + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp r12, 8
jb 0x14003eb8b
mov rax, qword [rdi]
mov dword [rax + r15*2], 0x5c
jmp 0x14003ec62
mov rax, rsi
sub rax, r15
cmp rax, 1
jb 0x14003ef30
lea r14, [r15 + 1]
or r14, 7
cmp r14, rsi
jbe 0x14003ebba
mov r14, rsi
jmp 0x14003ebdb
mov rcx, r12
shr rcx, 1
mov rax, rsi
sub rax, rcx
cmp r12, rax
jbe 0x14003ebd0
mov r14, rsi
jmp 0x14003ebdb
lea rax, [r12 + rcx]
cmp r14, rax
cmovb r14, rax
lea rdx, [r14 + 1]
mov rcx, rdi
call fcn.140043b70
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 0x14003ec4f
mov r14, qword [rdi]
mov rdx, r14
call fcn.1400f8070
mov dword [r15 + r13], 0x5c
lea rdx, [r12*2 + 2]
cmp rdx, 0x1000
jb 0x14003ec45
add rdx, 0x27
mov rcx, qword [r14 - 8]
sub r14, rcx
lea rax, [r14 - 8]
cmp rax, 0x1f
ja 0x14003ef36
mov r14, rcx
mov rcx, r14
call fcn.1400f5c2c
jmp 0x14003ec5f
mov rdx, rdi
call fcn.1400f8070
mov dword [r15 + r13], 0x5c
mov qword [rdi], r13
mov r8d, 7
lea rdx, str.CstLogs
mov rcx, rdi
call fcn.140043330
mov rax, rdi
mov r15, qword [rdi + 0x18]
cmp r15, 8
jb 0x14003ec87
mov rax, qword [rdi]
mov r14, qword [rdi + 0x10]
cmp word [rax + r14*2 - 2], 0x5c
je 0x14003ed74
cmp r14, r15
jae 0x14003ecc0
lea rax, [r14 + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp r15, 8
jb 0x14003ecb1
mov rax, qword [rdi]
mov r15d, 0x5c
mov dword [rax + r14*2], r15d
jmp 0x14003ed7a
mov rax, rsi
sub rax, r14
cmp rax, 1
jb 0x14003ef30
lea r13, [r14 + 1]
mov rcx, r13
or rcx, 7
cmp rcx, rsi
ja 0x14003ecff
mov rdx, r15
shr rdx, 1
mov rax, rsi
sub rax, rdx
cmp r15, rax
ja 0x14003ecff
lea rax, [r15 + rdx]
mov rsi, rcx
cmp rcx, rax
cmovb rsi, rax
lea rdx, [rsi + 1]
mov rcx, rdi
call fcn.140043b70
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 0x14003ede6
mov rsi, qword [rdi]
mov rdx, rsi
call fcn.1400f8070
mov dword [r12 + r14], 0x5c
lea rdx, [r15*2 + 2]
cmp rdx, 0x1000
jb 0x14003ed69
add rdx, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x14003ef36
mov rsi, rcx
mov rcx, rsi
call fcn.1400f5c2c
mov qword [rdi], r12
mov r15d, 0x5c
xor esi, esi
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003ed89
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003ed9e
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.1400f8720
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.1400f7c4c
test rax, rax
je 0x14003ee00
add rax, 2
jmp 0x14003ee05
mov rdx, rdi
call fcn.1400f8070
mov r15d, 0x5c
mov dword [r12 + r14], r15d
mov qword [rdi], r12
jmp 0x14003ed7a
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 0x14003ee20
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140043ce0
mov dword [rsp + 0x34], 3
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
mov rdx, rdi
call fcn.14003e4d0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14003ee9e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003ee99
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003ef36
call fcn.1400f5c2c
lea rdx, [rsp + 0x40]
call fcn.14003e600
nop
cmp qword [rax + 0x18], 8
jb 0x14003eeb3
mov rax, qword [rax]
mov r8, rax
mov rdx, rdi
call fcn.14003e4d0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14003eefd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003eef8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003ef2a
call fcn.1400f5c2c
mov rax, rdi
mov rcx, qword [rbp + 0xf70]
xor rcx, rsp
call fcn.1400f5be0
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.1400fcb20
int3
call fcn.1400439a0
int3
call fcn.1400fcb20
int3