Function at 0x1400e5540
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbp, r8
mov edi, edx
mov rbx, rcx
call fcn.14000cdd0
mov rsi, rax
xor r14d, r14d
mov r15d, 0x1911
sub edi, 0x110
je 0x1400e55a5
cmp edi, 1
je 0x1400e56a4
jmp case.0x1400e574f.6417
mov ecx, dword [rax + 0x3dc]
sub ecx, 1
je 0x1400e55c8
cmp ecx, 1
je 0x1400e55bc
mov edx, 0x190e
jmp 0x1400e55cd
mov edx, 0x1910
mov edi, 1
jmp 0x1400e55d0
mov edx, 0x190f
mov edi, r14d
mov qword [rsp + 0x20], r14
mov r9d, 1
mov r8d, 0xf1
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea rax, [rsi + 0x3e0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 0xc]
mov edx, r15d
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edx, r15d
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, edi
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 0x1912
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, edi
call qword [sym.imp.USER32.dll_EnableWindow]
mov rax, qword [rsi + 0x32e40]
test rax, rax
je 0x1400e5654
mov edx, 6
mov rcx, qword [rbx + 0x18]
call rax
mov r9, r14
cmp byte [rsi + 0x841], r9b
setne r9b
mov qword [rsp + 0x20], r14
mov edx, 0x191e
mov r8d, 0xf1
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov r9, r14
cmp byte [rsi + 0x868], r9b
setne r9b
mov qword [rsp + 0x20], r14
mov edx, 0x191f
mov r8d, 0xf1
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rax, rbp
shr rax, 0x10
mov ecx, 0x300
cmp ax, cx
jne 0x1400e572d
cmp bp, r15w
jne 0x1400e572d
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
mov r8d, InitCommonControls
mov edx, r15d
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea r8, [rsp + 0x80]
mov edx, 0x104
lea rcx, [rsi + 0x3e0]
call fcn.14018fc10
mov r8d, 0x104
lea rdx, [rsi + 0x5e8]
lea rcx, [rsi + 0x3e0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rsi + 0x5e8]
mov rcx, rsi
call fcn.1400d8450
mov eax, 1
jmp 0x1400e58ff
add rbp, 0xffffffffffffe6f2
cmp rbp, 0x11
ja case.0x1400e574f.6417
lea rcx, [0x140000000]
mov eax, dword [rcx + rbp*4 + 0xe592c]
add rax, rcx
jmp rax
mov dword [rsi + 0x3dc], r14d
mov edx, r15d
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 0x1912
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
mov eax, 1
jmp 0x1400e58ff
mov dword [rsi + 0x3dc], 1
jmp 0x1400e5758
mov dword [rsi + 0x3dc], 2
mov edx, r15d
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 0x1912
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 1
jmp 0x1400e5781
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r14
mov word [rsp + 0x38], r14w
mov r8d, 0x24
lea rdx, str.Select_a_folder_as_default_directory
lea rcx, [rsp + 0x38]
call fcn.140006f10
nop
mov qword [rsp + 0x20], r14
mov r9d, r15d
lea r8, [rsp + 0x38]
mov rdx, qword [rbx + 0x18]
lea rcx, [rsp + 0x58]
call fcn.140029c60
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e5849
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140007680
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x1400e587a
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.140007680
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r14
mov word [rsp + 0x38], r14w
jmp 0x1400e578a
mov edx, 0x191e
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 1
sete al
mov byte [rsi + 0x841], al
jmp 0x1400e578a
mov edx, 0x191f
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 1
sete al
mov byte [rsi + 0x868], al
jmp 0x1400e578a
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140168660
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret