Function at 0x14001ee40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x200
mov qword [rsp + 0x1a0], 0xfffffffffffffffe
mov rax, qword [0x1402aa808]
xor rax, rsp
mov qword [rsp + 0x1f8], rax
lea rdx, str.CDeviceInf::Init________________________IN_n
mov ecx, 5
call fcn.14001c160
mov rax, qword [rsp + 0x220]
cmp dword [rax + 8], 0
je 0x14001eeab
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001f5ab
cmp qword [rsp + 0x228], 0
jne 0x14001eec8
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14001f70e
mov rcx, qword [rsp + 0x228]
call fcn.1401abfb8
test rax, rax
jne 0x14001eeec
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14001f70e
mov rcx, qword [rsp + 0x228]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001ef0f
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001f5ab
mov rax, qword [rsp + 0x220]
add rax, 0x10
mov rdx, qword [rsp + 0x228]
mov rcx, rax
call fcn.140010520
mov rax, qword [rsp + 0x220]
add rax, 0x10
mov rcx, rax
call fcn.140003530
mov rcx, qword [rsp + 0x220]
add rcx, 0x48
mov rdx, rax
call fcn.1400630d0
mov r8d, 0x40
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.1401ac6a0
mov rax, qword [rsp + 0x220]
add rax, 0xa8
mov qword [rsp + 0x1a8], rax
mov rcx, qword [rsp + 0x220]
add rcx, 0x10
call fcn.140003530
mov qword [rsp + 0x20], 0
mov r9d, 0x20
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x1a8]
mov rdx, rcx
mov rcx, rax
call qword [0x1402ac748]
test eax, eax
jne 0x14001efdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CDeviceInf::Init_SetupDiGetINFClass_failed.__0x_1_lX___n
mov ecx, 2
call fcn.14001c160
xor eax, eax
jmp 0x14001f70e
lea r8, [rsp + 0x80]
lea rdx, str.CDeviceInf::Init_ClassName____1_s___n
mov ecx, 5
call fcn.14001c160
mov rax, qword [rsp + 0x220]
add rax, 0xb8
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140010520
mov rax, qword [rsp + 0x220]
movzx eax, byte [rax + 0xb7]
mov rcx, qword [rsp + 0x220]
movzx ecx, byte [rcx + 0xb6]
mov rdx, qword [rsp + 0x220]
movzx edx, byte [rdx + 0xb5]
mov r8, qword [rsp + 0x220]
movzx r8d, byte [r8 + 0xb4]
mov r9, qword [rsp + 0x220]
movzx r9d, byte [r9 + 0xb3]
mov r10, qword [rsp + 0x220]
movzx r10d, byte [r10 + 0xb2]
mov r11, qword [rsp + 0x220]
movzx r11d, byte [r11 + 0xb1]
mov rbx, qword [rsp + 0x220]
movzx ebx, byte [rbx + 0xb0]
mov rdi, qword [rsp + 0x220]
movzx edi, word [rdi + 0xae]
mov rsi, qword [rsp + 0x220]
movzx esi, word [rsi + 0xac]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
mov r9d, esi
mov rax, qword [rsp + 0x220]
mov r8d, dword [rax + 0xa8]
lea rdx, str.GUID___08lX__04lX__04lx__02X_02X__02X_02X_02X_02X_02X_02X_n
lea rcx, [rsp + 0xd0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0xd0]
lea rdx, str.CDeviceInf::Init_GUID___1_s__n
mov ecx, 5
call fcn.14001c160
lea rdx, [0x1402b701c]
mov ecx, 0xc8
call fcn.1401ad8a8
mov qword [rsp + 0x158], rax
cmp qword [rsp + 0x158], 0
je 0x14001f153
mov rcx, qword [rsp + 0x158]
call sym.Setup.exe_public:_void___cdecl_CManufacturers::constructor_void____ptr64
mov qword [rsp + 0x1b0], rax
jmp 0x14001f15f
mov qword [rsp + 0x1b0], 0
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x150]
mov qword [rax + 0x38], rcx
mov rax, qword [rsp + 0x220]
cmp qword [rax + 0x38], 0
jne 0x14001f1a8
lea rdx, str.CDeviceInf::Init_CManufacturers_object_creation_failed._n
mov ecx, 2
call fcn.14001c160
jmp 0x14001f5ab
mov rax, qword [rsp + 0x220]
add rax, 0x48
mov qword [rsp + 0x1b8], rax
mov rcx, qword [rsp + 0x220]
add rcx, 0x10
call fcn.140003530
lea r9, [0x1401ef468]
mov rcx, qword [rsp + 0x1b8]
mov r8, rcx
mov rdx, rax
mov rax, qword [rsp + 0x220]
mov rcx, qword [rax + 0x38]
call sym.Setup.exe_public:_int___cdecl_CManufacturers::Init_wchar_t_const____ptr64__class_CInfStringTable____ptr64__wchar_t_const____ptr64____ptr64
test eax, eax
jne 0x14001f20d
lea rdx, str.CDeviceInf::Init_CManufacturers::Init_failed._n
mov ecx, 2
call fcn.14001c160
jmp 0x14001f5ab
mov edx, dword [rsp + 0x238]
mov rax, qword [rsp + 0x220]
mov rcx, qword [rax + 0x38]
call sym.Setup.exe_public:_int___cdecl_CManufacturers::GetList_int____ptr64
test eax, eax
jne 0x14001f23f
lea rdx, str.CDeviceInf::Init_CManufacturers_cannot_GetList__._n
mov ecx, 2
call fcn.14001c160
jmp 0x14001f5ab
mov rax, qword [rsp + 0x220]
mov rcx, qword [rax + 0x38]
call sym.Setup.exe_public:_unsigned_long_int___cdecl_CDeviceInfSection::Count_void____ptr64
test eax, eax
jne 0x14001f26a
lea rdx, str.CDeviceInf::Init_no_Manufacturer_entries_found._n
mov ecx, 2
call fcn.14001c160
jmp 0x14001f5ab
mov rax, qword [rsp + 0x220]
mov rcx, qword [rax + 0x38]
call sym.Setup.exe_public:_unsigned_long_int___cdecl_CDeviceInfSection::Count_void____ptr64
mov eax, eax
mov qword [rsp + 0x160], rax
mov eax, 0xe8
mul qword [rsp + 0x160]
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
add rax, 8
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
lea rdx, [0x1402b701c]
mov rcx, rax
call fcn.1401ad8a0
mov qword [rsp + 0x170], rax
cmp qword [rsp + 0x170], 0
je 0x14001f329
mov rax, qword [rsp + 0x170]
mov ecx, dword [rsp + 0x160]
mov dword [rax], ecx
mov rax, qword [rsp + 0x170]
add rax, 8
lea rcx, [fcn.1400239b0]
mov qword [rsp + 0x20], rcx
lea r9, [0x140023900]
mov r8d, dword [rsp + 0x160]
mov edx, 0xe8
mov rcx, rax
call fcn.1401ad184
mov rax, qword [rsp + 0x170]
add rax, 8
mov qword [rsp + 0x1c0], rax
jmp 0x14001f335
mov qword [rsp + 0x1c0], 0
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x168]
mov qword [rax + 0x40], rcx
mov rax, qword [rsp + 0x220]
cmp qword [rax + 0x40], 0
jne 0x14001f37e
lea rdx, str.CDeviceInf::Init_CModels_object_create_failed._n
mov ecx, 2
call fcn.14001c160
jmp 0x14001f5ab
mov dword [rsp + 0xc0], 0
jmp 0x14001f39b
mov eax, dword [rsp + 0xc0]
inc eax
mov dword [rsp + 0xc0], eax
mov rax, qword [rsp + 0x220]
mov rcx, qword [rax + 0x38]
call sym.Setup.exe_public:_unsigned_long_int___cdecl_CDeviceInfSection::Count_void____ptr64
cmp dword [rsp + 0xc0], eax
jae 0x14001f55f
mov edx, dword [rsp + 0xc0]
mov rax, qword [rsp + 0x220]
mov rcx, qword [rax + 0x38]
call sym.Setup.exe_public:_wchar_t_const____ptr64___cdecl_CDeviceInfSection::GetKey_unsigned_long_int____ptr64
mov r8, rax
lea rdx, str.CDeviceInf::Init_CModels_object_for__1_s__creation._n
mov ecx, 5
call fcn.14001c160
mov edx, dword [rsp + 0xc0]
mov rax, qword [rsp + 0x220]
mov rcx, qword [rax + 0x38]
call sym.Setup.exe_public:_wchar_t_const____ptr64___cdecl_CManufacturers::GetModelsSeed_unsigned_long_int____ptr64
mov r9, rax
mov r8d, dword [rsp + 0xc0]
lea rdx, str.CDeviceInf::Init_m_pManufactures__GetModelsSeed__1_lu______2_s__._n
mov ecx, 5
call fcn.14001c160
mov edx, dword [rsp + 0xc0]
mov rax, qword [rsp + 0x220]
mov rcx, qword [rax + 0x38]
call sym.Setup.exe_public:_wchar_t_const____ptr64___cdecl_CDeviceInfSection::GetKey_unsigned_long_int____ptr64
mov r9, rax
mov r8d, dword [rsp + 0xc0]
lea rdx, str.CDeviceInf::Init_m_pManufactures__GetKey__1_lu______2_s__._n
mov ecx, 5
call fcn.14001c160
mov edx, dword [rsp + 0xc0]
mov rax, qword [rsp + 0x220]
mov rcx, qword [rax + 0x38]
call sym.Setup.exe_public:_wchar_t_const____ptr64___cdecl_CDeviceInfSection::GetKey_unsigned_long_int____ptr64
mov qword [rsp + 0x1c8], rax
mov edx, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x220]
mov rcx, qword [rcx + 0x38]
call sym.Setup.exe_public:_wchar_t_const____ptr64___cdecl_CManufacturers::GetModelsSeed_unsigned_long_int____ptr64
mov qword [rsp + 0x1d0], rax
mov rcx, qword [rsp + 0x220]
add rcx, 0x48
mov qword [rsp + 0x1d8], rcx
mov rdx, qword [rsp + 0x220]
add rdx, 0x10
mov rcx, rdx
call fcn.140003530
mov ecx, dword [rsp + 0xc0]
imul rcx, rcx, 0xe8
mov rdx, qword [rsp + 0x220]
add rcx, qword [rdx + 0x40]
mov edx, dword [rsp + 0x230]
mov dword [rsp + 0x28], edx
mov rdx, qword [rsp + 0x1c8]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rsp + 0x1d0]
mov r9, rdx
mov rdx, qword [rsp + 0x1d8]
mov r8, rdx
mov rdx, rax
call fcn.140023a00
test eax, eax
jne 0x14001f51f
lea rdx, str.CDeviceInf::Init_CModels::Init_failed._n
mov ecx, 2
call fcn.14001c160
jmp 0x14001f5ab
mov eax, dword [rsp + 0xc0]
imul rax, rax, 0xe8
mov rcx, qword [rsp + 0x220]
add rax, qword [rcx + 0x40]
xor edx, edx
mov rcx, rax
call fcn.140023ab0
test eax, eax
jne 0x14001f55a
lea rdx, str.CDeviceInf::Init_CModels::GetList_failed._n
mov ecx, 2
call fcn.14001c160
jmp 0x14001f5ab
jmp 0x14001f38b
mov rcx, qword [rsp + 0x220]
call sym.Setup.exe_protected:_int___cdecl_CDeviceInf::GetDeviceIdList_void____ptr64
mov rax, qword [rsp + 0x220]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x220]
mov ecx, dword [rsp + 0x238]
mov dword [rax + 0x148], ecx
lea rdx, [0x1401ef940]
mov ecx, 5
call fcn.14001c160
mov eax, 1
jmp 0x14001f70e
lea rdx, str.CDeviceInf::Init________________________OUT_n
mov ecx, 5
call fcn.14001c160
mov rax, qword [rsp + 0x220]
cmp qword [rax + 0x38], 0
je 0x14001f63a
mov rax, qword [rsp + 0x220]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x178], rax
cmp qword [rsp + 0x178], 0
je 0x14001f61e
mov rax, qword [rsp + 0x178]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x178]
call qword [rax]
mov qword [rsp + 0x1e0], rax
jmp 0x14001f62a
mov qword [rsp + 0x1e0], 0
mov rax, qword [rsp + 0x220]
mov qword [rax + 0x38], 0
mov rax, qword [rsp + 0x220]
cmp qword [rax + 0x40], 0
je 0x14001f70c
mov rax, qword [rsp + 0x220]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x188], rax
cmp qword [rsp + 0x188], 0
je 0x14001f6f0
mov rax, qword [rsp + 0x188]
cmp dword [rax - 8], 0
je 0x14001f6be
mov rax, qword [rsp + 0x190]
mov rax, qword [rax]
mov edx, 3
mov rcx, qword [rsp + 0x190]
call qword [rax]
mov qword [rsp + 0x1e8], rax
jmp 0x14001f6de
mov rax, qword [rsp + 0x188]
sub rax, 8
mov rcx, rax
call fcn.1400687c0
mov qword [rsp + 0x1e8], 0
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0x1f0], rax
jmp 0x14001f6fc
mov qword [rsp + 0x1f0], 0
mov rax, qword [rsp + 0x220]
mov qword [rax + 0x40], 0
xor eax, eax
mov rcx, qword [rsp + 0x1f8]
xor rcx, rsp
call fcn.1401ab2d0
add rsp, 0x200
pop rdi
pop rsi
pop rbx
ret