Function at 0x140038380
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rax, qword [0x140109010]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, rdx
mov rdi, rcx
lea rcx, [rbp - 0x68]
call fcn.140092d30
nop
mov r8d, 0x22
lea rdx, [0x1400be8f0]
lea rcx, [rbp - 0x68]
call sym.HwSettings.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__::append_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
xor edx, edx
lea r8d, [rdx + 0x50]
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x40]
call qword [sym.imp.HwFileUtil.dll_public:_void___cdecl_DE::Registry::constructor_void____ptr64]
nop
mov rdx, 0xffffffff80000003
lea rcx, [rbp - 0x40]
call qword [sym.imp.HwFileUtil.dll_public:_void___cdecl_DE::Registry::SetRootKey_struct_HKEY______ptr64____ptr64]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x40]
call qword [sym.imp.HwFileUtil.dll_public:_bool___cdecl_DE::Registry::KeyExists_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64]
test al, al
jne 0x140038427
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x40]
call qword [sym.imp.HwFileUtil.dll_public:_bool___cdecl_DE::Registry::CreateKey_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64]
xor bl, bl
jmp 0x14003861d
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
mov dword [rsp + 0x20], 0xf003f
lea r9, [rsp + 0x38]
mov r8, rdi
lea rdx, [rbp - 0x68]
mov rcx, 0xffffffff80000003
call qword [sym.imp.HwFileUtil.dll_public:_static_bool___cdecl_DE::Registry::GetValue_struct_HKEY______ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64__unsigned_long_int_]
test al, al
jne 0x140038468
xor bl, bl
jmp 0x1400385d7
lea rax, [rsp + 0x38]
cmp rbx, rax
je 0x140038490
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
mov rcx, rbx
call sym.HwSettings.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
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.140091680
nop
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14003854e
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], si
mov r9d, 3
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call sym.HwSettings.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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
sete bl
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140038586
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038547
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038547
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
jmp 0x140038586
movzx ecx, si
cmp qword [rsp + 0x48], 0
jbe 0x14003856d
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
movzx ecx, word [rax]
mov bl, 1
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x140038586
sub cx, 0x61
movzx ebx, bl
cmp cx, 0x19
cmova ebx, esi
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x1400385c5
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400385c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400385c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
movdqa xmm0, xmmword [0x1400cbd40]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14003861d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038617
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038617
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.HwFileUtil.dll_public_virtual:_void___cdecl_DE::Registry::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x14003866b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038666
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038666
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
movzx eax, bl
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140093940
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop rdi
pop rsi
pop rbp
ret