Function at 0x1400186b0
Capabilities:
Get disk information
Query environment variable
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x558
mov qword [rsp + 0x4e8], 0xfffffffffffffffe
mov rax, qword [0x140042d30]
xor rax, rsp
mov qword [rsp + 0x548], rax
mov rcx, qword [rsp + 0x570]
add rcx, 8
xor edx, edx
call fcn.140002da0
mov ecx, 0xc
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov ecx, 0xb
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
lea rcx, [0x140044590]
call fcn.140004a20
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
mov r9d, edi
mov r8d, 1
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8d, 1
mov rdx, qword [rsp + 0x58]
call fcn.140004b80
mov ecx, 0x32
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov ecx, 0x31
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
lea rcx, [0x140044590]
call fcn.140004a20
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
mov r9d, edi
mov r8d, 1
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rsp + 0x270], rax
mov rcx, qword [rsp + 0x570]
add rcx, 8
xor r8d, r8d
mov rdx, qword [rsp + 0x270]
call fcn.140004b80
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov rcx, qword [rsp + 0x570]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
lea rcx, [rsp + 0x490]
call fcn.1400181d0
nop
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.140002d50
mov qword [rsp + 0x4f0], rax
lea rcx, [rsp + 0x490]
call fcn.140017780
mov r8, rax
mov rax, qword [rsp + 0x4f0]
mov rax, qword [rax]
mov edx, 0xab
mov rcx, qword [rsp + 0x4f0]
call qword [rax + 0x28]
lea rcx, [rsp + 0x490]
call fcn.140002d50
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov rdx, rax
call fcn.14001ac50
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.140002d50
mov qword [rsp + 0x4f8], rax
lea rcx, [rsp + 0x490]
call fcn.140017780
mov r8, rax
mov rax, qword [rsp + 0x4f8]
mov rax, qword [rax]
mov edx, 0xac
mov rcx, qword [rsp + 0x4f8]
call qword [rax + 0x28]
lea rcx, [rsp + 0x490]
call fcn.140002d50
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3f7
call fcn.14001ace0
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.140002d50
mov qword [rsp + 0x500], rax
lea rcx, [rsp + 0x490]
call fcn.140017780
mov r8, rax
mov rax, qword [rsp + 0x500]
mov rax, qword [rax]
mov edx, 0xad
mov rcx, qword [rsp + 0x500]
call qword [rax + 0x28]
lea rcx, [rsp + 0x490]
call fcn.140002d50
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3f8
call fcn.14001ace0
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.140002d50
mov qword [rsp + 0x508], rax
lea rcx, [rsp + 0x490]
call fcn.140017780
mov r8, rax
mov rax, qword [rsp + 0x508]
mov rax, qword [rax]
mov edx, 0xae
mov rcx, qword [rsp + 0x508]
call qword [rax + 0x28]
lea rcx, [rsp + 0x490]
call fcn.140002d50
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3fb
call fcn.14001ace0
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.140002d50
mov qword [rsp + 0x510], rax
lea rcx, [rsp + 0x490]
call fcn.140017780
mov r8, rax
mov rax, qword [rsp + 0x510]
mov rax, qword [rax]
mov edx, 0xaf
mov rcx, qword [rsp + 0x510]
call qword [rax + 0x28]
lea rcx, [rsp + 0x490]
call fcn.140002d50
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3ef
call fcn.14001ace0
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.140002d50
mov qword [rsp + 0x518], rax
lea rcx, [rsp + 0x490]
call fcn.140017780
mov r8, rax
mov rax, qword [rsp + 0x518]
mov rax, qword [rax]
mov edx, 0xb0
mov rcx, qword [rsp + 0x518]
call qword [rax + 0x28]
lea rcx, [rsp + 0x490]
call fcn.140002d50
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3f1
call fcn.14001ace0
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.140002d50
mov qword [rsp + 0x520], rax
lea rcx, [rsp + 0x490]
call fcn.140017780
mov r8, rax
mov rax, qword [rsp + 0x520]
mov rax, qword [rax]
mov edx, 0xb1
mov rcx, qword [rsp + 0x520]
call qword [rax + 0x28]
lea rcx, [rsp + 0x490]
call fcn.140002d50
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3ee
call fcn.14001ace0
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.140002d50
mov qword [rsp + 0x528], rax
lea rcx, [rsp + 0x490]
call fcn.140017780
mov r8, rax
mov rax, qword [rsp + 0x528]
mov rax, qword [rax]
mov edx, 0xb2
mov rcx, qword [rsp + 0x528]
call qword [rax + 0x28]
lea rcx, [rsp + 0x490]
call fcn.140002d50
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3f2
call fcn.14001ace0
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.140002d50
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x490]
call fcn.140017780
mov r8, rax
mov rax, qword [rsp + 0x530]
mov rax, qword [rax]
mov edx, 0xb3
mov rcx, qword [rsp + 0x530]
call qword [rax + 0x28]
lea rcx, [rsp + 0x490]
call fcn.140002d50
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 1
call fcn.14001ace0
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.140002d50
mov qword [rsp + 0x538], rax
lea rcx, [rsp + 0x490]
call fcn.140017780
mov r8, rax
mov rax, qword [rsp + 0x538]
mov rax, qword [rax]
mov edx, 0xb4
mov rcx, qword [rsp + 0x538]
call qword [rax + 0x28]
lea rcx, [rsp + 0x490]
call fcn.140002d50
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 2
call fcn.14001ace0
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.140002d50
mov qword [rsp + 0x540], rax
lea rcx, [rsp + 0x490]
call fcn.140017780
mov r8, rax
mov rax, qword [rsp + 0x540]
mov rax, qword [rax]
mov edx, 0xc6
mov rcx, qword [rsp + 0x540]
call qword [rax + 0x28]
lea rcx, [rsp + 0x490]
call fcn.140002d50
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x401
call fcn.14001ace0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8d, 0x3f0
lea rdx, [rsp + 0x4a0]
call fcn.140004b00
mov rcx, rax
call fcn.140002d50
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14001aaa0
mov rax, qword [0x1400368d8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x498], 0x41
jmp 0x140018cf1
mov eax, dword [rsp + 0x498]
add eax, 1
mov dword [rsp + 0x498], eax
cmp dword [rsp + 0x498], 0x5a
jg 0x140018d4a
movzx eax, word [rsp + 0x498]
mov word [rsp + 0x50], ax
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x140018d48
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x50]
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.14001aad0
jmp 0x140018ce0
mov rcx, qword [rsp + 0x570]
add rcx, 0x60
call fcn.14000bd30
test eax, eax
je 0x140018d9e
mov rcx, qword [rsp + 0x570]
add rcx, 0x60
call fcn.140002d50
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.14001aad0
lea rcx, [rsp + 0x40]
call fcn.14001a9d0
mov edx, eax
sub edx, 1
lea rcx, [rsp + 0x40]
call fcn.14001aa30
mov rcx, qword [rsp + 0x570]
add rcx, 0x58
call fcn.14000bd30
test eax, eax
je 0x140018ecd
mov rcx, qword [rsp + 0x570]
add rcx, 0x58
call fcn.140002d50
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3ed
call fcn.14001ace0
mov rcx, qword [rsp + 0x570]
add rcx, 0x58
call fcn.140002d50
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140018e87
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8d, 0x3f8
lea rdx, [rsp + 0x4b0]
call fcn.140004b00
mov rcx, rax
call fcn.140002d50
mov rdx, rax
lea rcx, [rsp + 0x4a8]
call fcn.14001cdb0
mov edx, 1
mov rcx, rax
call fcn.14001aba0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8d, 0x401
lea rdx, [rsp + 0x4b8]
call fcn.140004b00
xor edx, edx
mov rcx, rax
call fcn.14000da00
jmp 0x140018ecb
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8d, 0x3f7
lea rdx, [rsp + 0x4c8]
call fcn.140004b00
mov rcx, rax
call fcn.140002d50
mov rdx, rax
lea rcx, [rsp + 0x4c0]
call fcn.14001cdb0
mov edx, 1
mov rcx, rax
call fcn.14001aba0
jmp 0x140018f11
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8d, 0x3f7
lea rdx, [rsp + 0x4d8]
call fcn.140004b00
mov rcx, rax
call fcn.140002d50
mov rdx, rax
lea rcx, [rsp + 0x4d0]
call fcn.14001cdb0
mov edx, 1
mov rcx, rax
call fcn.14001aba0
mov rcx, qword [rsp + 0x570]
add rcx, 0x60
call fcn.14000bd30
test eax, eax
je 0x140018f50
mov rcx, qword [rsp + 0x570]
add rcx, 0x60
call fcn.140002d50
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3f0
call fcn.14001ace0
lea rcx, [rsp + 0x40]
call fcn.140004a80
xor edx, edx
mov word [rsp + 0x60], dx
lea rdi, [rsp + 0x62]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x60]
lea rcx, [0x1400368e0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
mov word [rsp + 0x280], dx
lea rdi, [rsp + 0x282]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea r8, [rsp + 0x60]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.140022aa8
lea rdx, [0x140036908]
lea rcx, [rsp + 0x280]
call fcn.140004740
lea r9, [rsp + 0x280]
xor r8d, r8d
lea rdx, [0x140036928]
lea rcx, [0x140036940]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8d, eax
mov edx, 0x3fb
call fcn.140004aa0
mov qword [rsp + 0x4e0], 0
lea rcx, [rsp + 0x490]
call fcn.140004a00
mov rax, qword [rsp + 0x4e0]
mov rcx, qword [rsp + 0x548]
xor rcx, rsp
call fcn.140022b40
add rsp, 0x558
pop rdi
pop rbx
ret