Function at 0x140001d6c
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 [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x560], rax
mov rsi, rcx
mov qword [rsp + 0x38], r8
mov r8, rsi
lea rax, [rbp + 0x50]
sub r8, 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 0x140001de0
mov al, byte [r8 + rcx]
test al, al
je 0x140001de0
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140001dc1
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r12b
cmp byte [rbp + 0x50], 0x22
jne 0x140001e01
lea rdx, [0x14000b790]
lea rax, [rbp + 0x51]
jmp 0x140001e0c
lea rdx, [0x14000b794]
lea rax, [rbp + 0x50]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.140002ca4
mov rdi, qword [rsp + 0x30]
or rbx, 0xffffffffffffffff
mov r14, rax
test rdi, rdi
je 0x140001e96
mov rax, rbx
inc rax
cmp byte [rdi + rax], r12b
jne 0x140001e2f
cmp rax, 3
jb 0x140001e96
mov al, byte [rdi + 1]
mov cl, 0x5c
cmp al, 0x3a
jne 0x140001e4c
cmp byte [rdi + 2], cl
je 0x140001e54
cmp byte [rdi], cl
jne 0x140001e96
cmp al, cl
jne 0x140001e96
lea rax, [rsp + 0x40]
mov r8, rdi
sub r8, rax
lea rcx, [rsp + 0x40]
mov rdx, r15
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140001e86
mov al, byte [rcx + r8]
test al, al
je 0x140001e86
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140001e67
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r12b
jmp 0x140001eea
lea r8, [0x14000f690]
mov rdx, r15
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140001ecc
mov al, byte [rcx + r8]
test al, al
je 0x140001ecc
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140001ead
test rdx, rdx
lea rax, [rcx - 1]
mov r8, rdi
mov edx, r15d
cmovne rax, rcx
lea rcx, [rsp + 0x40]
mov byte [rax], r12b
call fcn.14000896c
mov edx, 0x2e
mov rcx, rdi
call fcn.140008b1c
test rax, rax
je 0x140002146
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]
nop dword [rax + rax]
cmp eax, 2
jne 0x140002146
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000211e
test al, 0x10
jne 0x14000211e
lea rdx, [0x14000b7a0]
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x30]
call fcn.140002ca4
mov rcx, rax
test rax, rax
je 0x140001f95
cmp byte [rcx], r12b
lea rdx, [0x14000b7a4]
mov rax, qword [rsp + 0x30]
cmovne rax, rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.140002ca4
mov r14d, 0x200
mov ecx, 0x40
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400021cd
mov r12, qword [rsp + 0x30]
lea rdi, str.DefaultInstall
mov rcx, rdi
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]
nop dword [rax + rax]
mov r9, rbx
mov dword [r13], 1
mov dword [0x14000f5c0], eax
lea r8, [0x14000b760]
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]
nop dword [rax + rax]
xor r13d, r13d
test eax, eax
je 0x1400020b3
or dword [0x14000fee4], 4
cmp byte [r12], r13b
cmovne rdi, r12
sub rdi, rsi
lea rax, [r15 + 0x7ffffefa]
test rax, rax
je 0x140002069
mov al, byte [rsi + rdi]
test al, al
je 0x140002069
mov byte [rsi], al
inc rsi
sub r15, 1
jne 0x14000204b
test r15, r15
lea rax, [rsi - 1]
lea rdx, [rsp + 0x40]
mov rcx, rbx
cmovne rax, rsi
sub rdx, rbx
mov byte [rax], r13b
lea rax, [r14 + 0x7ffffdfe]
test rax, rax
je 0x1400020a0
mov al, byte [rdx + rcx]
test al, al
je 0x1400020a0
mov byte [rcx], al
inc rcx
sub r14, 1
jne 0x140002082
test r14, r14
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r13b
jmp 0x1400022f5
and dword [0x14000fee4], 0xfffffffb
cmp word [0x14000fef8], r13w
jne 0x1400020e6
mov r8d, r15d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
lea rsi, str.setupx.dll
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
nop dword [rax + rax]
jmp 0x1400020ed
lea rsi, 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 rdi, r12
mov r9, rsi
mov rdx, r14
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.140003688
jmp 0x1400022f5
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x525
mov dword [rsp + 0x28], r12d
xor ecx, ecx
mov dword [rsp + 0x20], FDICopy
call fcn.1400061d8
xor eax, eax
jmp 0x140002302
mov edx, 0x2e
mov rcx, rdi
call fcn.140008b1c
test rax, rax
je 0x1400021f6
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]
nop dword [rax + rax]
cmp eax, 2
jne 0x1400021f6
lea rsi, str.Command.com__c__s
mov rax, rbx
inc rax
cmp byte [rsi + rax], r12b
jne 0x140002195
lea rcx, [rsp + 0x40]
inc rbx
cmp byte [rcx + rbx], r12b
jne 0x1400021a3
lea rdi, [rax + rbx]
mov ecx, 0x40
lea rdx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400021dd
xor r9d, r9d
mov edx, 0x4b5
xor r8d, r8d
jmp 0x14000212b
lea r9, [rsp + 0x40]
mov r8, rsi
lea rdx, [rdi + 8]
mov rcx, rax
call fcn.140003688
jmp 0x1400022f5
mov edi, 0x400
mov ecx, 0x40
mov edx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400021cd
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400022a9
test al, 0x10
jne 0x1400022a9
lea r8, [rsp + 0x40]
mov edx, edi
lea rax, [rbp + 0x160]
sub r8, rax
lea rcx, [rbp + 0x160]
lea rax, [rdx + 0x7ffffbfe]
test rax, rax
je 0x140002267
mov al, byte [r8 + rcx]
test al, al
je 0x140002267
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140002248
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r12b
test r14, r14
je 0x1400022e6
cmp byte [r14], r12b
je 0x1400022e6
lea r8, [0x14000b794]
mov rdx, rdi
lea rcx, [rbp + 0x160]
call fcn.1400035c4
mov r8, r14
lea rcx, [rbp + 0x160]
mov rdx, rdi
call fcn.1400035c4
jmp 0x1400022e6
lea rax, [rbp + 0x160]
sub rsi, rax
lea rdx, [rbp + 0x160]
lea rax, [rdi + 0x7ffffbfe]
test rax, rax
je 0x1400022d8
mov al, byte [rsi + rdx]
test al, al
je 0x1400022d8
mov byte [rdx], al
inc rdx
sub rdi, 1
jne 0x1400022ba
test rdi, rdi
lea rcx, [rdx - 1]
cmovne rcx, rdx
mov byte [rcx], r12b
mov rdx, rbx
lea rcx, [rbp + 0x160]
call fcn.140002a1c
mov rcx, qword [rsp + 0x38]
mov eax, 1
mov qword [rcx], rbx
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.140008f40
mov rbx, qword [rsp + 0x6b8]
add rsp, 0x670
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret