Function at 0x140195c20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x1403debe8]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rcx, str.C:ProgramData_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140195c58
shr eax, 4
and al, 1
jne 0x140195d06
lea rcx, str.C:ProgramData_
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
mov qword [rsp + 0x70], SafeArrayLock
mov qword [rsp + 0x68], SafeArrayLock
movsd xmm0, qword [str.C:ProgramData_]
movsd qword [rsp + 0x58], xmm0
mov eax, dword [0x1402d5380]
mov dword [rsp + 0x60], eax
movzx eax, word [0x1402d5384]
mov word [rsp + 0x64], ax
movzx eax, byte [0x1402d5386]
mov byte [rsp + 0x66], al
mov byte [rsp + 0x67], 0
lea r8, [rsp + 0x58]
lea rdx, str.CreateDebugLogFolder:
lea rcx, [rsp + 0x38]
call fcn.1400e1940
mov rcx, rax
call fcn.140195010
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140195d06
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140195d01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401960f3
call fcn.14020be84
lea rcx, str.C:ProgramDataASUS_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140195d26
shr eax, 4
and al, 1
je 0x140195d26
xor ebx, ebx
jmp 0x140195ddc
lea rcx, str.C:ProgramDataASUS_
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], SafeArrayLock
mov byte [rsp + 0x58], bl
lea ecx, [rbx + 0x20]
call fcn.1400e1b00
mov qword [rsp + 0x68], reloc.OLEAUT32.dll_SafeArrayLock
mov qword [rsp + 0x70], 0x1f
movups xmm0, xmmword [str.C:ProgramDataASUS_]
movups xmmword [rax], xmm0
mov ecx, dword [0x1402d5398]
mov dword [rax + 0x10], ecx
mov byte [rax + 0x14], bl
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
lea rdx, str.CreateDebugLogFolder:
lea rcx, [rsp + 0x38]
call fcn.1400e1940
mov rcx, rax
call fcn.140195010
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140195ddc
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140195dd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401960f9
call fcn.14020be84
lea rcx, str.C:ProgramDataASUSASUS_System_Control_Interface_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140195df9
shr eax, 4
and al, 1
jne 0x140195ec9
lea rcx, str.C:ProgramDataASUSASUS_System_Control_Interface_
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], SafeArrayLock
mov byte [rsp + 0x58], 0
mov ecx, 0x40
call fcn.1400e1b00
mov qword [rsp + 0x68], 0x32
mov qword [rsp + 0x70], 0x3f
movups xmm0, xmmword [str.C:ProgramDataASUSASUS_System_Control_Interface_]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402d53b0]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1402d53c0]
movups xmmword [rax + 0x20], xmm0
movzx ecx, word [0x1402d53d0]
mov word [rax + 0x30], cx
mov byte [rax + 0x32], 0
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
lea rdx, str.CreateDebugLogFolder:
lea rcx, [rsp + 0x38]
call fcn.1400e1940
mov rcx, rax
call fcn.140195010
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140195ec9
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140195ec4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401960ff
call fcn.14020be84
lea rcx, [0x1402d0f90]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140195ee6
shr eax, 4
and al, 1
jne 0x140195fcc
lea rcx, [0x1402d0f90]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], SafeArrayLock
mov byte [rsp + 0x58], 0
mov ecx, 0x50
call fcn.1400e1b00
mov rcx, rax
mov qword [rsp + 0x68], 0x45
mov qword [rsp + 0x70], 0x4f
movaps xmm0, xmmword [0x1402d0f90]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x1402d0fa0]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x1402d0fb0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x1402d0fc0]
movups xmmword [rax + 0x30], xmm1
mov eax, dword [0x1402d0fd0]
mov dword [rcx + 0x40], eax
movzx eax, byte [0x1402d0fd4]
mov byte [rcx + 0x44], al
mov byte [rcx + 0x45], 0
mov qword [rsp + 0x58], rcx
lea r8, [rsp + 0x58]
lea rdx, str.CreateDebugLogFolder:
lea rcx, [rsp + 0x38]
call fcn.1400e1940
mov rcx, rax
call fcn.140195010
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140195fcc
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140195fc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140196105
call fcn.14020be84
lea rcx, str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysisDebugLog_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140195fe9
shr eax, 4
and al, 1
jne 0x1401960da
lea rcx, str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysisDebugLog_
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], SafeArrayLock
mov byte [rsp + 0x58], 0
mov ecx, 0x50
call fcn.1400e1b00
mov rcx, rax
mov qword [rsp + 0x68], 0x4e
mov qword [rsp + 0x70], 0x4f
movaps xmm0, xmmword [str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysisDebugLog_]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x1402dddf0]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x1402dde00]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x1402dde10]
movups xmmword [rax + 0x30], xmm1
movsd xmm0, qword [0x1402dde20]
movsd qword [rax + 0x40], xmm0
mov eax, dword [0x1402dde28]
mov dword [rcx + 0x48], eax
movzx eax, word [0x1402dde2c]
mov word [rcx + 0x4c], ax
mov byte [rcx + 0x4e], 0
mov qword [rsp + 0x58], rcx
lea r8, [rsp + 0x58]
lea rdx, str.CreateDebugLogFolder:
lea rcx, [rsp + 0x38]
call fcn.1400e1940
mov rcx, rax
call fcn.140195010
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1401960da
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401960d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14019610b
call fcn.14020be84
nop
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14020c3e0
add rsp, 0xa0
pop rbx
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3