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

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x140351248]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rcx, str.C:ProgramData_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140162d48
shr eax, 4
and al, 1
jne 0x140162df6
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 [0x140272e00]
mov dword [rsp + 0x60], eax
movzx eax, word [0x140272e04]
mov word [rsp + 0x64], ax
movzx eax, byte [0x140272e06]
mov byte [rsp + 0x66], al
mov byte [rsp + 0x67], 0
lea r8, [rsp + 0x58]
lea rdx, str.CreateDebugLogFolder:
lea rcx, [rsp + 0x38]
call fcn.1400b8710
mov rcx, rax
call fcn.140162100
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140162df6
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140162df1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401631e3
call fcn.1401bfb10
lea rcx, str.C:ProgramDataASUS_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140162e16
shr eax, 4
and al, 1
je 0x140162e16
xor ebx, ebx
jmp 0x140162ecc
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.1400b88d0
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 [0x140272e18]
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.1400b8710
mov rcx, rax
call fcn.140162100
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140162ecc
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140162ec7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401631e9
call fcn.1401bfb10
lea rcx, str.C:ProgramDataASUSASUS_System_Control_Interface_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140162ee9
shr eax, 4
and al, 1
jne 0x140162fb9
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.1400b88d0
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 [0x140272e30]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x140272e40]
movups xmmword [rax + 0x20], xmm0
movzx ecx, word [0x140272e50]
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.1400b8710
mov rcx, rax
call fcn.140162100
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140162fb9
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140162fb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401631ef
call fcn.1401bfb10
lea rcx, str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysis_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140162fd6
shr eax, 4
and al, 1
jne 0x1401630bc
lea rcx, str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysis_
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.1400b88d0
mov rcx, rax
mov qword [rsp + 0x68], 0x45
mov qword [rsp + 0x70], 0x4f
movaps xmm0, xmmword [str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysis_]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14026ed30]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14026ed40]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14026ed50]
movups xmmword [rax + 0x30], xmm1
mov eax, dword [0x14026ed60]
mov dword [rcx + 0x40], eax
movzx eax, byte [0x14026ed64]
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.1400b8710
mov rcx, rax
call fcn.140162100
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1401630bc
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401630b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401631f5
call fcn.1401bfb10
lea rcx, str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysisDebugLog_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401630d9
shr eax, 4
and al, 1
jne 0x1401631ca
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.1400b88d0
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 [0x14027af80]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14027af90]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14027afa0]
movups xmmword [rax + 0x30], xmm1
movsd xmm0, qword [0x14027afb0]
movsd qword [rax + 0x40], xmm0
mov eax, dword [0x14027afb8]
mov dword [rcx + 0x48], eax
movzx eax, word [0x14027afbc]
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.1400b8710
mov rcx, rax
call fcn.140162100
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1401631ca
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401631c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401631fb
call fcn.1401bfb10
nop
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401c0070
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