Function at 0x140018220
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 [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x548], rax
mov rcx, qword [rsp + 0x570]
add rcx, 8
xor edx, edx
call fcn.1400010d0
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, [0x1400445c0]
call fcn.140002da0
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.140002f00
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, [0x1400445c0]
call fcn.140002da0
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.140002f00
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.14001ad70
nop
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.14000a6a0
mov qword [rsp + 0x4f0], rax
lea rcx, [rsp + 0x490]
call fcn.14000a0e0
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.14000a6a0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov rdx, rax
call fcn.14001a7d0
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.14000a6a0
mov qword [rsp + 0x4f8], rax
lea rcx, [rsp + 0x490]
call fcn.14000a0e0
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.14000a6a0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3f7
call fcn.14001a860
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.14000a6a0
mov qword [rsp + 0x500], rax
lea rcx, [rsp + 0x490]
call fcn.14000a0e0
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.14000a6a0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3f8
call fcn.14001a860
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.14000a6a0
mov qword [rsp + 0x508], rax
lea rcx, [rsp + 0x490]
call fcn.14000a0e0
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.14000a6a0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3fb
call fcn.14001a860
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.14000a6a0
mov qword [rsp + 0x510], rax
lea rcx, [rsp + 0x490]
call fcn.14000a0e0
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.14000a6a0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3ef
call fcn.14001a860
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.14000a6a0
mov qword [rsp + 0x518], rax
lea rcx, [rsp + 0x490]
call fcn.14000a0e0
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.14000a6a0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3f1
call fcn.14001a860
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.14000a6a0
mov qword [rsp + 0x520], rax
lea rcx, [rsp + 0x490]
call fcn.14000a0e0
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.14000a6a0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3ee
call fcn.14001a860
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.14000a6a0
mov qword [rsp + 0x528], rax
lea rcx, [rsp + 0x490]
call fcn.14000a0e0
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.14000a6a0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3f2
call fcn.14001a860
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.14000a6a0
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x490]
call fcn.14000a0e0
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.14000a6a0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 1
call fcn.14001a860
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.14000a6a0
mov qword [rsp + 0x538], rax
lea rcx, [rsp + 0x490]
call fcn.14000a0e0
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.14000a6a0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 2
call fcn.14001a860
mov rcx, qword [rsp + 0x570]
add rcx, 0x48
call fcn.14000a6a0
mov qword [rsp + 0x540], rax
lea rcx, [rsp + 0x490]
call fcn.14000a0e0
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.14000a6a0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x401
call fcn.14001a860
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8d, 0x3f0
lea rdx, [rsp + 0x4a0]
call fcn.140002e80
mov rcx, rax
call fcn.14000a6a0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14001a5f0
mov rax, qword [0x140036a08]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x498], 0x41
jmp 0x140018861
mov eax, dword [rsp + 0x498]
add eax, 1
mov dword [rsp + 0x498], eax
cmp dword [rsp + 0x498], 0x5a
jg 0x1400188ba
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 0x1400188b8
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.14001a620
jmp 0x140018850
mov rcx, qword [rsp + 0x570]
add rcx, 0x60
call fcn.14000a0c0
test eax, eax
je 0x14001890e
mov rcx, qword [rsp + 0x570]
add rcx, 0x60
call fcn.14000a6a0
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.14001a620
lea rcx, [rsp + 0x40]
call fcn.14001a500
mov edx, eax
sub edx, 1
lea rcx, [rsp + 0x40]
call fcn.14001a560
mov rcx, qword [rsp + 0x570]
add rcx, 0x58
call fcn.14000a0c0
test eax, eax
je 0x140018a3d
mov rcx, qword [rsp + 0x570]
add rcx, 0x58
call fcn.14000a6a0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3ed
call fcn.14001a860
mov rcx, qword [rsp + 0x570]
add rcx, 0x58
call fcn.14000a6a0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1400189f7
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8d, 0x3f8
lea rdx, [rsp + 0x4b0]
call fcn.140002e80
mov rcx, rax
call fcn.14000a6a0
mov rdx, rax
lea rcx, [rsp + 0x4a8]
call fcn.14001a720
mov edx, 1
mov rcx, rax
call fcn.14001a6f0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8d, 0x401
lea rdx, [rsp + 0x4b8]
call fcn.140002e80
xor edx, edx
mov rcx, rax
call fcn.14000be60
jmp 0x140018a3b
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8d, 0x3f7
lea rdx, [rsp + 0x4c8]
call fcn.140002e80
mov rcx, rax
call fcn.14000a6a0
mov rdx, rax
lea rcx, [rsp + 0x4c0]
call fcn.14001a720
mov edx, 1
mov rcx, rax
call fcn.14001a6f0
jmp 0x140018a81
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8d, 0x3f7
lea rdx, [rsp + 0x4d8]
call fcn.140002e80
mov rcx, rax
call fcn.14000a6a0
mov rdx, rax
lea rcx, [rsp + 0x4d0]
call fcn.14001a720
mov edx, 1
mov rcx, rax
call fcn.14001a6f0
mov rcx, qword [rsp + 0x570]
add rcx, 0x60
call fcn.14000a0c0
test eax, eax
je 0x140018ac0
mov rcx, qword [rsp + 0x570]
add rcx, 0x60
call fcn.14000a6a0
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8, rax
mov edx, 0x3f0
call fcn.14001a860
lea rcx, [rsp + 0x40]
call fcn.140002e00
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, [0x140036a10]
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.140022658
lea rdx, [0x140036a38]
lea rcx, [rsp + 0x280]
call fcn.140002ac0
lea r9, [rsp + 0x280]
xor r8d, r8d
lea rdx, [0x140036a58]
lea rcx, [0x140036a70]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rcx, qword [rsp + 0x570]
add rcx, 8
mov r8d, eax
mov edx, 0x3fb
call fcn.140002e20
mov qword [rsp + 0x4e0], 0
lea rcx, [rsp + 0x490]
call fcn.140002d80
mov rax, qword [rsp + 0x4e0]
mov rcx, qword [rsp + 0x548]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x558
pop rdi
pop rbx
ret