Function at 0x140001a74
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 [section..data]
xor rax, rsp
mov qword [rbp + 0x560], rax
mov rdi, rcx
lea rax, [rbp + 0x50]
mov r15d, 0x104
mov r10, rdi
mov r13, r9
mov qword [rsp + 0x38], r8
sub r10, rax
mov edx, r15d
lea rcx, [rbp + 0x50]
xor r12d, r12d
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140001ae7
mov al, byte [r10 + rcx]
test al, al
je 0x140001ae7
mov byte [rcx], al
inc rcx
dec rdx
jne 0x140001ac9
test rdx, rdx
jne 0x140001aef
dec rcx
mov byte [rcx], r12b
cmp byte [rbp + 0x50], 0x22
lea rcx, [rsp + 0x30]
jne 0x140001b0a
lea rax, [rbp + 0x51]
lea rdx, [0x140001158]
jmp 0x140001b15
lea rax, [rbp + 0x50]
lea rdx, [0x14000115c]
mov qword [rsp + 0x30], rax
call fcn.1400019d8
mov rsi, qword [rsp + 0x30]
or rbx, 0xffffffffffffffff
mov r14, rax
test rsi, rsi
je 0x140001b96
mov rax, rbx
inc rax
cmp byte [rsi + rax], r12b
jne 0x140001b33
cmp rax, 3
jb 0x140001b96
mov al, byte [rsi + 1]
mov cl, 0x5c
cmp al, 0x3a
jne 0x140001b50
cmp byte [rsi + 2], cl
je 0x140001b58
cmp byte [rsi], cl
jne 0x140001b96
cmp al, cl
jne 0x140001b96
lea rax, [rsp + 0x40]
mov r8, rsi
mov rdx, r15
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140001b89
mov al, byte [rcx + r8]
test al, al
je 0x140001b89
mov byte [rcx], al
inc rcx
dec rdx
jne 0x140001b6b
test rdx, rdx
jne 0x140001b91
dec rcx
mov byte [rcx], r12b
jmp 0x140001be6
lea r8, [0x14000b5f0]
lea rax, [rsp + 0x40]
mov rdx, r15
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140001bcb
mov al, byte [r8 + rcx]
test al, al
je 0x140001bcb
mov byte [rcx], al
inc rcx
dec rdx
jne 0x140001bad
test rdx, rdx
jne 0x140001bd3
dec rcx
mov byte [rcx], r12b
lea rcx, [rsp + 0x40]
mov r8, rsi
mov edx, r15d
call fcn.140007b48
mov edx, 0x2e
mov rcx, rsi
call fcn.140007c68
test rax, rax
je 0x140001e27
lea rcx, [0x140001160]
mov edx, 1
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
lea ecx, [rdx + 0x7e]
mov r9d, ebx
mov r8, rax
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x140001e27
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140001dff
shr eax, 4
not eax
and eax, 1
je 0x140001dff
lea rdx, [0x140001168]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r14
call fcn.1400019d8
mov rcx, rax
test rax, rax
je 0x140001c8b
mov rax, qword [rsp + 0x30]
cmp byte [rcx], r12b
lea rdx, [0x14000116c]
cmovne rax, rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.1400019d8
mov esi, 0x200
mov ecx, 0x40
mov edx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x140001cb5
xor r9d, r9d
mov edx, 0x4b5
xor r8d, r8d
jmp 0x140001e0c
mov r12, qword [rsp + 0x30]
lea r14, str.DefaultInstall
lea r9, [rsp + 0x40]
cmp byte [r12], 0
mov rcx, r14
lea rdx, [0x140001170]
cmovne rcx, r12
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea r8, [0x140001129]
lea rdx, [0x140001178]
mov dword [0x14000be58], eax
lea rax, [rsp + 0x40]
lea rcx, [0x140001188]
mov qword [rsp + 0x28], rax
mov r9, rbx
mov dword [r13], 1
mov dword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor r13d, r13d
test eax, eax
je 0x140001d9a
or dword [0x14000be44], 4
cmp byte [r12], r13b
cmovne r14, r12
sub r14, rdi
lea rax, [r15 + 0x7ffffefa]
test rax, rax
je 0x140001d57
mov al, byte [rdi + r14]
test al, al
je 0x140001d57
mov byte [rdi], al
inc rdi
dec r15
jne 0x140001d39
test r15, r15
jne 0x140001d5f
dec rdi
lea rdx, [rsp + 0x40]
mov byte [rdi], r13b
mov rcx, rbx
sub rdx, rbx
lea rax, [rsi + 0x7ffffdfe]
test rax, rax
je 0x140001d8a
mov al, byte [rcx + rdx]
test al, al
je 0x140001d8a
mov byte [rcx], al
inc rcx
dec rsi
jne 0x140001d6d
test rsi, rsi
jne 0x140001d92
dec rcx
mov byte [rcx], r13b
jmp 0x140001fb4
and dword [0x14000be44], 0xfffffffb
cmp word [0x14000be54], r13w
jne 0x140001dc7
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
mov r8d, r15d
lea rdi, [0x140001190]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x140001dce
lea rdi, [0x1400011a0]
cmp byte [r12], r13b
lea rax, [rsp + 0x40]
lea r8, str.rundll32.exe__s_InstallHinfSection__s_128__s
cmovne r14, r12
mov qword [rsp + 0x28], rax
mov r9, rdi
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r14
call fcn.1400015c0
jmp 0x140001fb4
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x525
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], FDICopy
call fcn.140004fd8
xor eax, eax
jmp 0x140001fc1
mov edx, 0x2e
mov rcx, rsi
call fcn.140007c68
test rax, rax
je 0x140001ebf
lea rcx, [0x1400011b0]
mov edx, 1
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
lea ecx, [rdx + 0x7e]
mov r9d, ebx
mov r8, rax
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x140001ebf
lea rsi, str.Command.com__c__s
mov rax, rbx
inc rax
cmp byte [rsi + rax], r12b
jne 0x140001e70
lea rcx, [rsp + 0x40]
inc rbx
cmp byte [rcx + rbx], r12b
jne 0x140001e7e
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 0x140001ca5
lea r9, [rsp + 0x40]
lea rdx, [rdi + 8]
mov r8, rsi
mov rcx, rax
call fcn.1400015c0
jmp 0x140001fb4
mov esi, 0x400
mov ecx, 0x40
mov edx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140001ca5
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140001f66
test al, 0x10
jne 0x140001f66
lea r8, [rsp + 0x40]
lea rax, [rbp + 0x160]
mov edx, esi
sub r8, rax
lea rcx, [rbp + 0x160]
lea rax, [rdx + 0x7ffffbfe]
test rax, rax
je 0x140001f27
mov al, byte [rcx + r8]
test al, al
je 0x140001f27
mov byte [rcx], al
inc rcx
dec rdx
jne 0x140001f09
test rdx, rdx
jne 0x140001f2f
dec rcx
mov byte [rcx], r12b
test r14, r14
je 0x140001f9f
cmp byte [r14], r12b
je 0x140001f9f
lea r8, [0x14000115c]
lea rcx, [rbp + 0x160]
mov rdx, rsi
call fcn.140001508
lea rcx, [rbp + 0x160]
mov r8, r14
mov rdx, rsi
call fcn.140001508
jmp 0x140001f9f
lea rax, [rbp + 0x160]
lea rcx, [rbp + 0x160]
sub rdi, rax
lea rax, [rsi + 0x7ffffbfe]
test rax, rax
je 0x140001f94
mov al, byte [rcx + rdi]
test al, al
je 0x140001f94
mov byte [rcx], al
inc rcx
dec rsi
jne 0x140001f77
test rsi, rsi
jne 0x140001f9c
dec rcx
mov byte [rcx], r12b
lea rcx, [rbp + 0x160]
mov r8, rbx
mov rdx, rbx
mov byte [rbx], r12b
call fcn.140002d10
mov rcx, qword [rsp + 0x38]
mov eax, 1
mov qword [rcx], rbx
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.140008340
mov rbx, qword [rsp + 0x6b8]
add rsp, 0x670
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret