Function at 0x1400ae260
Capabilities:
Check if file exists
Read .ini file
Set file attributes

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11240]
mov eax, 0x11340
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x11378], rbx
mov qword [rsp + 0x11380], rsi
mov qword [rsp + 0x11388], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x11230], rax
mov rbx, rcx
xor r8d, r8d
lea rdx, str.CBaseInfoCtrl::Load
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp + 0x190]
call fcn.14024b970
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rbp + 0x1230]
call fcn.14024b970
cmp word [rbx + 8], 0
je 0x1400ae319
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
jmp 0x1400aee75
cmp qword [rbx + 0x320], 0
jle 0x1400ae344
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
jmp 0x1400aee75
cmp qword [rbx + 0x348], 0
jle 0x1400ae36f
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
jmp 0x1400aee75
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdi, qword [rax]
lea r8, str.Driver
lea rdx, [rbp + 0x190]
mov rcx, rax
call qword [rdi + 0x50]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rdi, qword [rax]
mov r8d, 0x104
lea rdx, [rbx + 8]
mov rcx, rax
call qword [rdi + pe_nt_image_headers64]
lea r8, str.InsDrv.ini
mov edx, 0x104
lea rdi, [rbx + 8]
mov rcx, rdi
call fcn.140246470
mov r9, rdi
lea r8, str._t_t_tFile___s.
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140007780
mov edx, 0x20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r13d, r13d
mov r12d, r13d
mov esi, 2
mov r15d, esi
lea r14d, [r13 + 1]
movups xmm0, xmmword [str.FOLDER_A1]
movaps xmmword [rbp + 0x210], xmm0
mov eax, dword [0x140300660]
mov dword [rbp + 0x220], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x224]
call fcn.14024b970
mov rax, qword [str.FOLDER_A2]
mov qword [rbp + 0x418], rax
mov rax, qword [0x140300670]
mov qword [rbp + 0x420], rax
mov eax, dword [0x140300678]
mov dword [rbp + 0x428], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x42c]
call fcn.14024b970
movups xmm0, xmmword [str.FOLDER_B1]
movaps xmmword [rbp + 0x620], xmm0
mov eax, dword [0x140300690]
mov dword [rbp + 0x630], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x634]
call fcn.14024b970
mov rax, qword [str.FOLDER_B2]
mov qword [rbp + 0x828], rax
mov rax, qword [0x1403006a0]
mov qword [rbp + 0x830], rax
mov eax, dword [0x1403006a8]
mov dword [rbp + 0x838], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x83c]
call fcn.14024b970
lea rcx, [0x1402ddbb8]
call fcn.140023e50
test eax, eax
je 0x1400ae581
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdi, qword [rax]
lea r8, [rbp + 0xa30]
lea rdx, str.SupportPDL
mov rcx, rax
call qword [rdi + 0x18]
lea rdx, [0x1402e0304]
lea rcx, [rbp + 0xa30]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400ae539
mov r12d, esi
mov r15d, 4
mov r14d, r15d
jmp 0x1400ae57d
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdi, qword [rax]
lea r8, [rbp + 0xa30]
lea rdx, str.SupportPDL
mov rcx, rax
call qword [rdi + 0x18]
lea rdx, [0x1402e0308]
lea rcx, [rbp + 0xa30]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov r15d, 4
test eax, eax
cmove r15d, esi
lea rdi, [rbx + 8]
mov eax, r12d
imul rax, rax, 0x208
lea rsi, [rax + rbx + 0x4d8]
lea rax, [rbp + 0x210]
sub rax, rbx
mov qword [rsp + 0x40], rax
lea rdx, [rax + rsi - 0x4d8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x64
mov r9, rsi
lea r8, [0x1402dc4e0]
lea rcx, str.DriverFolderName
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [0x1402dc4e0]
mov rcx, rsi
call fcn.140247088
test eax, eax
je 0x1400ae657
mov edx, 0x5c
mov rcx, rsi
call fcn.140247344
test rax, rax
jne 0x1400ae607
lea edx, [rax + 0x2f]
mov rcx, rsi
call fcn.140247344
test rax, rax
je 0x1400ae61b
lea r8, [0x1403006d4]
mov edx, 0x104
mov rcx, rsi
call fcn.140246470
mov edi, r13d
test r12d, r12d
je 0x1400ae647
mov eax, edi
imul rax, rax, 0x208
lea rcx, [rax + rbx + 0x4d8]
mov rdx, rsi
call fcn.140247088
test eax, eax
je 0x1400ae647
inc edi
cmp edi, r12d
jb 0x1400ae623
cmp edi, r12d
lea rdi, [rbx + 8]
jne 0x1400ae657
or dword [rbx + 0x4d4], r14d
add r14d, r14d
inc r12d
add rsi, 0x208
cmp r12d, r15d
mov rax, qword [rsp + 0x40]
jb 0x1400ae5a2
lea r12, [rbx + 8]
mov r9, r12
mov r8d, 0x7fff
lea rdx, [rbp + 0x1230]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov edi, eax
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400ae6e1
mov rcx, qword [0x1403b9770]
mov rax, qword [rcx]
mov r8, r12
mov edx, 0x19
call qword [rax + 0x18]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
xor eax, eax
jmp 0x1400aee84
mov r9d, edi
lea r8, [0x1403006d8]
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140007780
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.14024b970
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x80]
lea r8, [0x1402dc4e0]
lea rdx, str.PDriverw32
lea rcx, str.DriverSetPath
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x80]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 0x400]
lea rdx, [rbp - 0x80]
call fcn.140001f40
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x80]
lea r8, [0x1402dc4e0]
lea rdx, str.PDriverx64
lea rcx, str.DriverSetPath
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x80]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 0x450]
lea rdx, [rbp - 0x80]
call fcn.140001f40
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov r14d, r13d
cmp word [rbp + 0x1230], r13w
je 0x1400ae971
mov rdi, r13
lea rsi, [rbp + 0x1230]
mov ecx, 0x3d
mov r12d, r14d
cmp word [rsi], r13w
je 0x1400ae815
mov rax, rsi
nop dword [rax]
movzx ecx, word [rax]
call fcn.140246bb4
test eax, eax
je 0x1400ae810
inc r12d
inc rdi
lea rax, [rbp + rdi*2 + 0x1230]
cmp word [rax], r13w
jne 0x1400ae7f0
mov ecx, 0x3d
movsxd rax, r12d
cmp word [rbp + rax*2 + 0x1230], 0x3b
je 0x1400ae944
mov edx, ecx
mov rcx, rsi
call fcn.140247344
mov r12, rax
test rax, rax
je 0x1400ae87d
mov word [rax], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [r12 + 2]
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x1400ae87d
movzx ecx, word [r12 + 2]
call fcn.14024a718
mov r8, rsi
cmp eax, 0x50
lea rcx, [rbx + 0x310]
je 0x1400ae874
lea rcx, [rbx + 0x338]
mov rdx, qword [rcx + 0x10]
call fcn.140105f30
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xa0]
mov r15d, eax
mov rcx, qword [0x1403b9758]
cmp dword [rbx + 0x4d4], r13d
jbe 0x1400ae8c9
mov rdx, qword [rcx]
call qword [rdx + 0x20]
mov rdi, qword [rax]
mov r9d, 1
mov r8d, r15d
mov rdx, rsi
mov rcx, rax
call qword [rdi + 0x350]
jmp 0x1400ae8e7
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdi, qword [rax]
mov r9d, 1
mov r8d, r15d
mov rdx, rsi
mov rcx, rax
call qword [rdi + 0x348]
test eax, eax
je 0x1400ae944
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
test eax, eax
je 0x1400ae922
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rdi, qword [rax]
mov rdx, rsi
mov rcx, rax
call qword [rdi + 0x20]
test eax, eax
je 0x1400ae935
lea rcx, [rbx + 0x360]
mov r8, rsi
mov rdx, qword [rcx + 0x10]
call fcn.140105f30
test r12, r12
je 0x1400ae944
mov eax, 0x3d
mov word [r12], ax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
add r14d, ecx
movsxd rdi, r14d
lea rsi, [rbp + rdi*2 + 0x1230]
cmp word [rsi], ax
lea ecx, [rax + 0x3d]
jne 0x1400ae7e1
lea r12, [rbx + 8]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x80]
lea r8, [0x1402e2d58]
lea rdx, str.RestoreInstall
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [0x1402e2d50]
lea rcx, [rbp - 0x80]
call fcn.140247088
mov ecx, r13d
test eax, eax
sete cl
mov dword [rbx + 0x478], ecx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x80]
lea r8, [0x1402e2d50]
lea rdx, str.CheckPreConfig
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [0x1402e2d58]
lea rcx, [rbp - 0x80]
call fcn.140247088
mov ecx, r13d
test eax, eax
setne cl
mov dword [rbx + 0x47c], ecx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x80]
lea r8, [0x1402e3828]
lea rdx, str.CompareDriverFile
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [0x1402e2d90]
lea rcx, [rbp - 0x80]
call fcn.140247088
mov ecx, r13d
test eax, eax
sete cl
mov dword [rbx + 0x480], ecx
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rbp + 0x1230]
call fcn.14024b970
mov r9, r12
mov r8d, 0x7fff
lea rdx, [rbp + 0x1230]
lea rcx, str.PDL_Registry_Key
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x1230]
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x1400aeb34
lea rsi, [rbp + 0x1230]
cmp word [rbp + 0x1230], ax
je 0x1400aebc8
cmp word [rsi], 0x3b
je 0x1400aeb0f
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140001f40
nop
lea rcx, [rbx + 0x488]
lea rdx, [rsp + 0x50]
call fcn.140040160
nop
cmp qword [rsp + 0x68], 8
jb 0x1400aeb0f
mov rcx, qword [rsp + 0x50]
call fcn.1401026ec
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea rax, [rcx - 1]
mov eax, eax
lea rsi, [rsi + rax*2 + 2]
cmp word [rsi], 0
jne 0x1400aeab0
jmp 0x1400aebc8
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x7fff
lea r9, [rbp + 0x1230]
lea r8, [0x1402dc4e0]
lea rdx, [0x1402e2e08]
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x1230]
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x1400aebc8
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
mov r8, rcx
lea rdx, [rbp + 0x1230]
lea rcx, [rsp + 0x50]
call fcn.140001f40
nop
lea rcx, [rbx + 0x488]
lea rdx, [rsp + 0x50]
call fcn.140040160
nop
cmp qword [rsp + 0x68], 8
jb 0x1400aebc8
mov rcx, qword [rsp + 0x50]
call fcn.1401026ec
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rbp + 0x1230]
call fcn.14024b970
mov r9, r12
mov r8d, 0x7fff
lea rdx, [rbp + 0x1230]
lea rcx, str.UsbDiasInstallDevice
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x1230]
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x1400aecaf
lea rsi, [rbp + 0x1230]
cmp word [rbp + 0x1230], ax
je 0x1400aecaf
nop dword [rax]
cmp word [rsi], 0x3b
je 0x1400aec8f
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140001f40
nop
lea rcx, [rbx + 0x4a8]
lea rdx, [rsp + 0x50]
call fcn.140040160
nop
cmp qword [rsp + 0x68], 8
jb 0x1400aec8f
mov rcx, qword [rsp + 0x50]
call fcn.1401026ec
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea rax, [rcx - 1]
mov eax, eax
lea rsi, [rsi + rax*2 + 2]
cmp word [rsi], 0
jne 0x1400aec30
mov rax, qword [rbx]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x80]
lea r8, [0x1402e2d58]
lea rdx, str.UpdateNoQueueDriver
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [0x1402e2d50]
lea rcx, [rbp - 0x80]
call fcn.140247088
mov ecx, r13d
test eax, eax
sete cl
mov dword [rbx + 0x4c8], ecx
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x130]
cmp eax, 0x258
jb 0x1400aed75
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x80]
lea r8, [0x1402ed1b0]
lea rdx, str.NoRegistDriverStore
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [0x1402e34e0]
lea rcx, [rbp - 0x80]
call fcn.140247088
mov ecx, r13d
test eax, eax
sete cl
mov dword [rbx + 0x4cc], ecx
jmp 0x1400aed7c
mov dword [rbx + 0x4cc], r13d
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x80]
lea r8, [0x1402e2d58]
lea rdx, str.UpdateCustomDriver
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [0x1402e2d50]
lea rcx, [rbp - 0x80]
call fcn.140247088
mov ecx, r13d
test eax, eax
sete cl
mov dword [rbx + 0x4d0], ecx
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + VarBstrFromDisp]
test eax, eax
je 0x1400aee52
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x80]
mov r8, qword [str.P_._]
lea rdx, str.UseWSD
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [0x1402e2d58]
lea rcx, [rbp - 0x80]
call fcn.140247088
test eax, eax
setne r13b
mov dword [rbx + 0xcf8], r13d
mov r9, r12
mov r8d, 0xea60
lea rdx, str.WSDDiscoveryTimeOut
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jle 0x1400aee59
mov dword [rbx + 0xcfc], eax
jmp 0x1400aee59
mov qword [rbx + 0xcf8], r13
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
mov eax, 1
mov rcx, qword [rbp + 0x11230]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x11340]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret