Function at 0x140001578
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x570]
sub rsp, 0x670
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x560], rax
mov rdi, rcx
mov qword [rsp + 0x38], r8
mov r10, rdi
lea rax, [rbp + 0x50]
sub r10, rax
lea rcx, [rbp + 0x50]
mov r15d, 0x104
xor r12d, r12d
mov r13, r9
mov edx, r15d
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400015ec
mov al, byte [r10 + rcx]
test al, al
je 0x1400015ec
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1400015cd
test rdx, rdx
jne 0x1400015f4
dec rcx
mov byte [rcx], r12b
lea rcx, [rsp + 0x30]
cmp byte [rbp + 0x50], 0x22
jne 0x14000160f
lea rax, [rbp + 0x51]
lea rdx, [0x1400096f0]
jmp 0x14000161a
lea rax, [rbp + 0x50]
lea rdx, [0x1400096f4]
mov qword [rsp + 0x30], rax
call fcn.1400014dc
mov rsi, qword [rsp + 0x30]
or rbx, 0xffffffffffffffff
mov r14, rax
test rsi, rsi
je 0x14000169c
mov rax, rbx
inc rax
cmp byte [rsi + rax], r12b
jne 0x140001638
cmp rax, 3
jb 0x14000169c
mov al, byte [rsi + 1]
mov cl, 0x5c
cmp al, 0x3a
jne 0x140001655
cmp byte [rsi + 2], cl
je 0x14000165d
cmp byte [rsi], cl
jne 0x14000169c
cmp al, cl
jne 0x14000169c
lea rax, [rsp + 0x40]
mov r8, rsi
sub r8, rax
lea rcx, [rsp + 0x40]
mov rdx, r15
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14000168f
mov al, byte [rcx + r8]
test al, al
je 0x14000168f
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140001670
test rdx, rdx
jne 0x140001697
dec rcx
mov byte [rcx], r12b
jmp 0x1400016ed
lea r8, [0x14000d610]
mov rdx, r15
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400016d2
mov al, byte [r8 + rcx]
test al, al
je 0x1400016d2
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1400016b3
test rdx, rdx
jne 0x1400016da
dec rcx
mov byte [rcx], r12b
mov r8, rsi
lea rcx, [rsp + 0x40]
mov edx, r15d
call fcn.140007528
mov edx, 0x2e
mov rcx, rsi
call fcn.1400076b8
test rax, rax
je 0x140001930
lea rcx, str..INF
mov dword [rsp + 0x28], ebx
mov edx, 1
mov qword [rsp + 0x20], rcx
mov r9d, ebx
mov r8, rax
lea ecx, [rdx + 0x7e]
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x140001930
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140001908
shr eax, 4
not eax
and eax, 1
je 0x140001908
lea rdx, [0x140009700]
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x30]
call fcn.1400014dc
mov rcx, rax
test rax, rax
je 0x140001792
cmp byte [rcx], r12b
lea rdx, [0x140009704]
mov rax, qword [rsp + 0x30]
cmovne rax, rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.1400014dc
mov esi, 0x200
mov ecx, 0x40
mov edx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x1400017bc
xor r9d, r9d
mov edx, 0x4b5
xor r8d, r8d
jmp 0x140001915
mov r12, qword [rsp + 0x30]
lea r14, str.DefaultInstall
mov rcx, r14
lea r9, [rsp + 0x40]
lea rdx, str.Reboot
cmp byte [r12], 0
cmovne rcx, r12
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov r9, rbx
mov dword [r13], 1
mov dword [0x14000d540], eax
lea r8, [0x1400096c0]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.AdvancedINF
lea rcx, str.Version
mov dword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor r13d, r13d
test eax, eax
je 0x1400018a3
or dword [0x14000de64], 4
cmp byte [r12], r13b
cmovne r14, r12
sub r14, rdi
lea rax, [r15 + 0x7ffffefa]
test rax, rax
je 0x14000185f
mov al, byte [rdi + r14]
test al, al
je 0x14000185f
mov byte [rdi], al
inc rdi
sub r15, 1
jne 0x140001840
test r15, r15
jne 0x140001867
dec rdi
lea rdx, [rsp + 0x40]
mov byte [rdi], r13b
sub rdx, rbx
mov rcx, rbx
lea rax, [rsi + 0x7ffffdfe]
test rax, rax
je 0x140001893
mov al, byte [rcx + rdx]
test al, al
je 0x140001893
mov byte [rcx], al
inc rcx
sub rsi, 1
jne 0x140001875
test rsi, rsi
jne 0x14000189b
dec rcx
mov byte [rcx], r13b
jmp 0x140001abf
and dword [0x14000de64], 0xfffffffb
cmp word [0x14000de78], r13w
jne 0x1400018d0
mov r8d, r15d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
lea rdi, str.setupx.dll
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x1400018d7
lea rdi, str.setupapi.dll
cmp byte [r12], r13b
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, str.rundll32.exe__s_InstallHinfSection__s_128__s
cmovne r14, r12
mov r9, rdi
mov rdx, rsi
mov qword [rsp + 0x20], r14
mov rcx, rbx
call fcn.1400010c4
jmp 0x140001abf
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x525
mov dword [rsp + 0x28], r12d
xor ecx, ecx
mov dword [rsp + 0x20], FDIDestroy
call fcn.140004ab0
xor eax, eax
jmp 0x140001acc
mov edx, 0x2e
mov rcx, rsi
call fcn.1400076b8
test rax, rax
je 0x1400019c8
lea rcx, str..BAT
mov dword [rsp + 0x28], ebx
mov edx, 1
mov qword [rsp + 0x20], rcx
mov r9d, ebx
mov r8, rax
lea ecx, [rdx + 0x7e]
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x1400019c8
lea rsi, str.Command.com__c__s
mov rax, rbx
inc rax
cmp byte [rsi + rax], r12b
jne 0x140001979
lea rcx, [rsp + 0x40]
inc rbx
cmp byte [rcx + rbx], r12b
jne 0x140001987
lea rdi, [rax + rbx]
mov ecx, 0x40
lea rdx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400017ac
lea r9, [rsp + 0x40]
mov r8, rsi
lea rdx, [rdi + 8]
mov rcx, rax
call fcn.1400010c4
jmp 0x140001abf
mov esi, 0x400
mov ecx, 0x40
mov edx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400017ac
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140001a70
test al, 0x10
jne 0x140001a70
lea r8, [rsp + 0x40]
mov edx, esi
lea rax, [rbp + 0x160]
sub r8, rax
lea rcx, [rbp + 0x160]
lea rax, [rdx + 0x7ffffbfe]
test rax, rax
je 0x140001a31
mov al, byte [rcx + r8]
test al, al
je 0x140001a31
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140001a12
test rdx, rdx
jne 0x140001a39
dec rcx
mov byte [rcx], r12b
test r14, r14
je 0x140001aaa
cmp byte [r14], r12b
je 0x140001aaa
lea r8, [0x1400096f4]
mov rdx, rsi
lea rcx, [rbp + 0x160]
call fcn.140001008
mov r8, r14
lea rcx, [rbp + 0x160]
mov rdx, rsi
call fcn.140001008
jmp 0x140001aaa
lea rax, [rbp + 0x160]
sub rdi, rax
lea rcx, [rbp + 0x160]
lea rax, [rsi + 0x7ffffbfe]
test rax, rax
je 0x140001a9f
mov al, byte [rcx + rdi]
test al, al
je 0x140001a9f
mov byte [rcx], al
inc rcx
sub rsi, 1
jne 0x140001a81
test rsi, rsi
jne 0x140001aa7
dec rcx
mov byte [rcx], r12b
mov r8, rbx
mov byte [rbx], r12b
mov rdx, rbx
lea rcx, [rbp + 0x160]
call fcn.14000280c
mov rcx, qword [rsp + 0x38]
mov eax, 1
mov qword [rcx], rbx
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.140007d80
mov rbx, qword [rsp + 0x6b8]
add rsp, 0x670
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret