Function at 0x140011c70
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x560
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x140056b28]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov rsi, rcx
xor edx, edx
add rcx, 8
call fcn.140010870
mov rdi, qword [0x140058ae0]
mov ecx, 0xc
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov ecx, 0xb
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r9d, eax
xor r12d, r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebx
mov edx, 0x80
lea r8d, [r12 + 1]
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadImageW]
mov r9, rax
mov edx, 0x80
lea r8d, [r12 + 1]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, qword [0x140058ae0]
lea ecx, [r12 + 0x32]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
lea ecx, [r12 + 0x31]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r9d, eax
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebx
mov edx, 0x80
lea r8d, [r12 + 1]
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadImageW]
mov r9, rax
xor r8d, r8d
mov edx, 0x80
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9d, [r12 + 2]
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, 0x3ff
lea r8d, [r12 + 1]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_CheckDlgButton]
mov edx, 0x3ff
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 0x3ec
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbx, rax
mov rax, qword [0x140056018]
mov qword [rsp + 0x30], rax
mov edx, 0x27de
lea rcx, [rsp + 0x30]
call fcn.140011ad0
xor r11d, r11d
mov dword [rsp + 0x3c], r11d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x44], r11d
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x4c], r11d
mov dword [rsp + 0x50], r11d
mov dword [rsp + 0x54], r11d
mov dword [rsp + 0x58], r11d
mov dword [rsp + 0x5c], r11d
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 2
mov dword [rsp + 0x38], 7
mov dword [rsp + 0x40], 0x78
lea r9, [rsp + 0x38]
xor r8d, r8d
mov edx, 0x1061
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0x27df
lea rcx, [rsp + 0x30]
call fcn.140011ad0
xor r11d, r11d
mov dword [rsp + 0x64], r11d
mov dword [rsp + 0x68], r11d
mov dword [rsp + 0x6c], r11d
mov dword [rsp + 0x70], r11d
mov dword [rsp + 0x74], r11d
mov dword [rsp + 0x78], r11d
mov dword [rsp + 0x7c], r11d
mov dword [rsp + 0x80], r11d
mov dword [rsp + 0x84], r11d
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x64], 2
mov dword [rsp + 0x60], 7
mov dword [rsp + 0x68], 0x78
lea r9, [rsp + 0x60]
mov edx, 0x1061
lea r8d, [r12 + 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0x87
lea rcx, [rsp + 0x30]
call fcn.140011ad0
xor r11d, r11d
mov dword [rsp + 0x8c], r11d
mov dword [rsp + 0x90], r11d
mov dword [rsp + 0x94], r11d
mov dword [rsp + 0x98], r11d
mov dword [rsp + 0x9c], r11d
mov dword [rsp + 0xa0], r11d
mov dword [rsp + 0xa4], r11d
mov dword [rsp + 0xa8], r11d
mov dword [rsp + 0xac], r11d
mov dword [rsp + 0x88], 5
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x98], rdi
mov dword [rsp + 0x8c], 2
lea r9, [rsp + 0x88]
mov edx, 0x1061
lea r8d, [r12 + 2]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0x101e
mov r9d, 0xfffe
lea r8d, [r12 + 2]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsp + 0xb8], 1
mov dword [rsp + 0xbc], 2
lea r9, [rsp + 0xb8]
xor r8d, r8d
mov edx, 0x1060
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
lea edx, [r12 - 0x10]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r8d, eax
or r8d, 8
cmp eax, r8d
je 0x140011fc6
lea edx, [r12 - 0x10]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov r9d, 0x20
xor r8d, r8d
mov edx, 0x1036
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11, qword [rsi]
mov r8d, dword [rsi + 0x50]
mov rdx, qword [rsi + 0x48]
mov rcx, rsi
call qword [r11 + 0x20]
mov edx, 0x3ff
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1400120cd
mov word [rsp + 0x340], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x342]
call fcn.140024c30
mov r8d, 0x104
lea rdx, [rsp + 0x340]
lea rcx, str._APPDATA_KZMount
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov word [rsp + 0x130], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x132]
call fcn.140024c30
lea r8, [rsp + 0x340]
mov edx, 0x104
lea rcx, [rsp + 0x130]
call fcn.140025a10
lea r8, str.KZMount.ini
mov edx, 0x104
lea rcx, [rsp + 0x130]
call fcn.140024d1c
lea r9, [rsp + 0x130]
mov r8d, 1
lea rdx, str.DiskReadOnly
lea rcx, str.KZMount
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r8d, eax
mov edx, 0x3ff
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_CheckDlgButton]
mov dword [rsp + 0xe0], r12d
xor edx, edx
lea r8d, [rdx + 0x44]
lea rcx, [rsp + 0xe4]
call fcn.140024c30
mov dword [rsp + 0xec], 3
mov dword [rsp + 0xf0], 3
lea r9, [rsp + 0xe0]
xor r8d, r8d
mov edx, 0x102b
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x101f
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetFocus]
nop
lea rcx, [rdi - 0xc]
cmp rcx, qword [0x140056010]
je 0x140012167
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140012163
call fcn.140025104
xor eax, eax
jmp 0x140012169
xor eax, eax
jmp 0x140012169
xor eax, eax
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.140025960
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret