Function at 0x140052720
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11f0]
mov eax, 0x12f0
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x11e0], rax
mov rsi, rdx
mov r14, rcx
lea rdx, str.CheckRunEnvironment::GetDriverFolderInMedia
lea rcx, [rsp + 0x30]
call fcn.14001abe0
nop
lea r15, [0x1402a8360]
lea rdi, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x1400527f5
test byte [rcx + 0x1c], 1
je 0x1400527bd
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x23
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x1400527f5
test byte [rcx + 0x1c], 1
je 0x1400527f5
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x24
mov qword [rsp + 0x20], rsi
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x9e0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x1e0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.1401e7e40
lea rcx, str.PDriverw32
mov qword [rbp - 0x80], rcx
lea rax, str.PDriverx64
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rax
lea rax, str.PDriverARM64
mov qword [rbp - 0x60], rax
lea r12, str.DRIVERFILE_2KXP
mov qword [rbp - 0x58], r12
lea r13, str.DRIVERFILE_X64
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r13
lea rax, str.DRIVERFILE_ARM64
mov qword [rbp - 0x38], rax
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x9e0]
lea rdx, str.SOURCEDIR
mov rcx, r9
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x1e0]
lea rdx, str.TEMPPATH
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x1de], 0x5c
je 0x140052919
lea rdx, [0x140251df8]
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.InsDrv.ini
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor ebx, ebx
nop
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x30]
lea r8, [0x140251dfc]
mov rdx, qword [rbp + rbx*8 - 0x80]
lea rcx, str.DriverSetPath
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14005299a
mov rax, qword [r14]
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x9e0]
mov rcx, r14
mov rax, qword [rax + 0x28]
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
lea r8, [rbp - 0x30]
jmp 0x1400529b5
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
lea r8, [0x140251dfc]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rdx, qword [rbp + rbx*8 - 0x58]
mov rcx, r9
call qword [case.0x1400136d6.0]
inc rbx
cmp rbx, 5
jl 0x140052930
mov ebx, 4
mov rax, qword gs:[0x58]
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x1402bc1f0], eax
jg 0x140052c74
mov rax, qword [0x1402bc200]
lea rcx, [0x1402bc200]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
test eax, eax
je 0x140052a47
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov r8, rsi
mov rdx, r12
mov rcx, r9
call qword [case.0x1400136d6.0]
jmp 0x140052b0d
mov eax, dword [rbx]
cmp dword [0x1402bc1f0], eax
jg 0x140052c38
mov rax, qword [0x1402bc200]
lea rcx, [0x1402bc200]
mov rax, qword [rax + 0x10]
call qword [case.0x1400136d6.0]
test eax, eax
je 0x140052aa0
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov r8, rsi
mov rdx, r13
mov rcx, r9
call qword [case.0x1400136d6.0]
jmp 0x140052b0d
call fcn.14018d2c0
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov rcx, rdx
call qword [case.0x1400136d6.0]
test eax, eax
je 0x140052aef
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov r8, rsi
lea rdx, str.DRIVERFILE_ARM64
mov rcx, r9
call qword [case.0x1400136d6.0]
jmp 0x140052b0d
lea r9, [0x140255568]
lea r8, [rbp + 0x9e0]
lea rdx, [0x1402528f8]
mov rcx, rsi
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x140052b53
test byte [rcx + 0x1c], 4
je 0x140052b53
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x25
mov qword [rsp + 0x20], rsi
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, qword [0x1402a8360]
mov al, 1
mov byte [rsp + 0x38], al
cmp rcx, r15
je 0x140052b9f
test byte [rcx + 0x1c], al
je 0x140052b9f
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x26
mov dword [rsp + 0x20], 0
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
movzx eax, byte [rsp + 0x38]
mov rcx, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x30], rdx
test al, al
jne 0x140052bf8
cmp rcx, r15
je 0x140052bf8
test byte [rcx + 0x1c], 1
je 0x140052bf8
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rax, qword [rsp + 0x40]
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x60]
call fcn.1400048a0
lea rcx, [rsp + 0x40]
call fcn.1400048a0
xor eax, eax
mov rcx, qword [rbp + 0x11e0]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0x1340]
add rsp, 0x12f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1402bc1f0]
call fcn.1401e2aa8
cmp dword [0x1402bc1f0], 0xffffffff
jne 0x140052a55
call fcn.14018ce80
lea rcx, [0x140228190]
call fcn.1401e2df0
nop
lea rcx, [0x1402bc1f0]
call fcn.1401e2a48
jmp 0x140052a55
lea rcx, [0x1402bc1f0]
call fcn.1401e2aa8
cmp dword [0x1402bc1f0], 0xffffffff
jne 0x1400529f9
call fcn.14018ce80
lea rcx, [0x140228190]
call fcn.1401e2df0
nop
lea rcx, [0x1402bc1f0]
call fcn.1401e2a48
jmp 0x1400529f9