Function at 0x418520
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r14, rcx
xorps xmm0, xmm0
movups xmmword [rbp + 0xc8], xmm0
movups xmmword [rbp + 0xd8], xmm0
lea rdx, [0x004be820]
lea rcx, [rbp + 0xc8]
call fcn.00426300
xor r15d, r15d
mov qword [rbp + 0x88], r15
mov qword [rbp + 0x98], r15
mov qword [rbp + 0xa0], SafeArrayGetDim
mov byte [rbp + 0x88], r15b
lea r8d, [r15 + 0x2e]
lea rdx, str.D0aE4fD9irzT5axpKKonTo2SMWiEndFhMz5_6zrD68qaQ
lea rcx, [rbp + 0x88]
call sym.AsusSoftwareManager.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f0], xmm0
movups xmmword [rbp + 0x200], xmm0
movups xmmword [rbp + 0x210], xmm0
movups xmmword [rbp + 0x220], xmm0
movups xmmword [rbp + 0x190], xmm0
movups xmmword [rbp + 0x1a0], xmm0
xorps xmm1, xmm1
movups xmmword [rbp + 0x170], xmm1
movups xmmword [rbp + 0x180], xmm1
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x78], r15
mov qword [rbp + 0x80], SafeArrayGetDim
mov byte [rbp + 0x68], r15b
lea r8d, [r15 + 2]
lea rdx, [0x004bbf28]
lea rcx, [rbp + 0x68]
call sym.AsusSoftwareManager.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
nop
mov qword [rbp + 0x28], r15
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r15w
lea r8d, [r15 + 0x49]
lea rdx, str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSoftwareManagerAbi
lea rcx, [rbp + 0x28]
call sym.AsusSoftwareManager.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x10], 1
lea rcx, [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
nop
lea ecx, [r15 + 0x10]
call fcn.0047970c
mov rbx, rax
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax], r15
mov qword [rax + 8], r15
lfence
lea ecx, [r15 + 0x50]
call fcn.0047970c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x48], r15
mov qword [rbp + 0x58], r15
mov qword [rbp + 0x60], SafeArrayGetDim
mov byte [rbp + 0x48], r15b
lea r8d, [r15 + 2]
lea rdx, [0x004bbfc4]
lea rcx, [rbp + 0x48]
call sym.AsusSoftwareManager.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
nop
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x00503a68], eax
jle 0x418738
lea rcx, [0x00503a68]
call fcn.0047981c
cmp dword [0x00503a68], 0xffffffff
jne 0x418738
mov qword [0x00503a60], r15
lea rcx, [0x00503a60]
call qword [sym.imp.AsusBusinessIntelligenceCPPLib.dll_public:_void___cdecl_BusinessIntelligenceCollection::BusinessIntelligenceLoggerDispatcher::constructor_void____ptr64]
lea rcx, [0x004af010]
call fcn.00479570
nop
lea rcx, [0x00503a68]
call fcn.004797b0
mov edx, 0x32
lea rcx, [0x00503a60]
call qword [sym.imp.AsusBusinessIntelligenceCPPLib.dll_public:_class_BusinessIntelligenceCollection::BITrackingManager____ptr64___cdecl_BusinessIntelligenceCollection::BusinessIntelligenceLoggerDispatcher::GetInstance_int____ptr64]
mov qword [r14], rax
lea rcx, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rcx, qword [rbp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41877b
lea rcx, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rcx, qword [rbp + 0x28]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
lea rcx, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rcx, qword [rbp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rbx, [rbp + 0x28]
mov edx, 0x73
test eax, eax
jne 0x4187a8
lea edi, [rdx - 0x46]
lea rsi, str.Cant_find_folder:__S
jmp 0x4187b4
mov edi, 0x2f
lea rsi, str.Abi_folder:__S
cmp qword [rbp + 0x40], 8
cmovae rbx, qword [rbp + 0x28]
call fcn.0041e9d0
add rax, rax
lea r12, [0x004bc000]
lea rdx, [rax + r12]
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov r8d, edi
mov ecx, 4
call fcn.0044a600
mov r8d, 0x40
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x20]
call qword [sym.imp.AsusBusinessIntelligenceCPPLib.dll_public:_void___cdecl_BusinessIntelligenceCollection::BIUtitlityHelper::GetWinVersion_C_char____ptr64__int____ptr64]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], 7
mov r8d, SafeArrayGetDim
lea rdx, [0x004bc188]
lea rcx, [rbp - 0x78]
call sym.AsusSoftwareManager.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
nop
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov r8d, 0x18
lea rdx, str.SELECT__from_Win32_BIOS
lea rcx, [rbp - 0x58]
call sym.AsusSoftwareManager.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
nop
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 7
mov r8d, 0xa
lea rdx, str.ROOTCIMV2
lea rcx, [rbp - 0x38]
call sym.AsusSoftwareManager.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
nop
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x18]
call fcn.00478060
mov edx, 0x73
call fcn.0041e9d0
lea rdx, [r12 + rax*2]
mov rax, qword [rbp + 0x18]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x20], rcx
lea r9, str.WMI_query_result_size_d
mov ecx, 4
lea r8d, [rcx + 0x31]
call fcn.0044a600
mov rax, qword [rbp + 0x18]
cmp qword [rax + 8], 0
jbe 0x4189be
mov rax, qword [rax]
mov rbx, qword [rax]
mov edx, 0x73
call fcn.0041e9d0
lea rdx, [r12 + rax*2]
mov rax, qword [rbx + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x20], rax
lea r9, str.CIMV2:_s__s
mov ecx, 4
lea r8d, [rcx + 0x37]
call fcn.0044a600
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
mov rax, qword [rdx]
mov rdi, qword [rax + 0x40]
test rdi, rdi
je 0x4189be
mov ecx, 0x18
call fcn.0047970c
mov rbx, rax
mov qword [rbp - 0x80], rax
test rax, rax
je 0x41896e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], 1
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x418e17
jmp 0x418971
mov rbx, r15
mov qword [rsp + 0x70], rbx
test rbx, rbx
je 0x418e0c
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x418997
mov rcx, qword [rbx]
call fcn.004a0ff0
mov qword [rbx + 8], rax
mov rdx, rax
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x4189a0
lea rcx, [rbp + 0x48]
call sym.AsusSoftwareManager.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
nop
lea rcx, [rsp + 0x70]
call fcn.00417fb0
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x60], 0x10
cmovae rax, qword [rbp + 0x48]
cmp qword [rbp + 0x58], 2
jne 0x418a0d
cmp byte [rax], 0x4e
jne 0x4189e3
cmp byte [rax + 1], 0x41
jne 0x4189e3
mov eax, r15d
jmp 0x4189e8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x418a0d
lea edx, [rax + 0x73]
call fcn.0041e9d0
lea rdx, [r12 + rax*2]
lea r9, str.Cant_get_SystemSerialNumber_
mov ecx, 4
lea r8d, [rcx + 0x3e]
call fcn.0044a600
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0xc8]
call fcn.00426020
xorps xmm0, xmm0
movups xmmword [rbp + 0x1b0], xmm0
movups xmmword [rbp + 0x1c0], xmm0
movups xmmword [rbp + 0x1d0], xmm0
movups xmmword [rbp + 0x1e0], xmm0
mov r9d, 0x20
lea r8, [rbp + 0x1b0]
lea rdx, str.ACPIVEN_ASUSDEV_2018
call fcn.00425b10
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
mov qword [rbp + 0x160], rax
lea rcx, [rbp + 0xf0]
call fcn.00419660
nop
lea r9, [rbp + 0x1b0]
cmp word [rbp + 0x1b0], 0
je 0x418abe
add r9, 2
cmp word [r9], 0
jne 0x418ab3
lea r8, [rbp + 0x1b0]
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0xf0]
call fcn.0041e5e0
nop
lea r8, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 0x10
cmovae r8, qword [rbp + 0xa8]
mov edx, 0x20
lea rcx, [rbp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rcx, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x68]
cmp qword [rbp + 0x80], 0x10
cmovae rax, qword [rbp + 0x68]
lea r8, [rbp + 0x48]
cmp qword [rbp + 0x60], 0x10
cmovae r8, qword [rbp + 0x48]
lea rdx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 0x10
cmovae rdx, qword [rbp + 0x88]
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 1
mov dword [rsp + 0x50], 1
lea r9, str.Unknown
mov qword [rsp + 0x48], r9
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x170]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x190]
mov rcx, qword [r14]
call qword [sym.imp.AsusBusinessIntelligenceCPPLib.dll_public:_bool___cdecl_BusinessIntelligenceCollection::BITrackingManager::Init_C_char_const____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64__wchar_t_const____ptr64__int__char_const____ptr64__int__bool__bool____ptr64]
test al, al
jne 0x418bc3
mov edx, 0x73
call fcn.0041e9d0
lea rdx, [r12 + rax*2]
lea r9, str.TrackingManager_cant_work_
mov ecx, 4
lea r8d, [rcx + 0x54]
call fcn.0044a600
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0x10
jb 0x418c07
inc rdx
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x418c02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x418c02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.00479330
mov qword [rbp + 0xb8], r15
mov qword [rbp + 0xc0], SafeArrayGetDim
mov byte [rbp + 0xa8], 0
lea rcx, [rbp + 0xf0]
call fcn.00419570
nop
mov rdx, qword [rbp + 0x60]
cmp rdx, 0x10
jb 0x418c6b
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x418c66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x418c66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.00479330
mov qword [rbp + 0x58], r15
mov qword [rbp + 0x60], SafeArrayGetDim
mov byte [rbp + 0x48], 0
mov rdi, qword [rbp + 0x18]
test rdi, rdi
je 0x418cde
mov rbx, qword [rdi]
mov r8, qword [rbx + 8]
mov rdx, rdi
mov rcx, rdi
call fcn.00478640
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rdi + 8], r15
mov rbx, qword [rbp + 0x18]
test rbx, rbx
je 0x418cda
mov r8, qword [rbx]
mov r8, qword [r8 + 8]
mov rdx, rbx
mov rcx, rbx
call fcn.00478640
mov edx, 0x50
mov rcx, qword [rbx]
call fcn.00479330
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbx
call fcn.00479330
mov qword [rbp + 0x18], r15
cmp dword [rbp + 0x10], 0
je 0x418cee
lea rcx, [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_DeleteCriticalSection]
mov dword [rbp + 0x10], r15d
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x418d35
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x418d30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x418d30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.00479330
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r15w
mov rdx, qword [rbp + 0x80]
cmp rdx, 0x10
jb 0x418d87
inc rdx
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x418d82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x418d82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.00479330
mov qword [rbp + 0x78], r15
mov qword [rbp + 0x80], SafeArrayGetDim
mov byte [rbp + 0x68], 0
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0x10
jb 0x418dde
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x418dd9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x418dd9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.00479330
mov rax, r14
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.00479310
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.004a0fe0
nop
mov ecx, 0x8007000e
call fcn.004a0fe0
int3