Function at 0x14008a980
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xc30
mov rax, qword [0x140330030]
xor rax, rsp
mov qword [rsp + 0xc20], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, rbx
call fcn.140084c80
test eax, eax
je 0x14008a9b8
lea rbx, str.INVALID_TITLE_WITH_QUOTES
jmp 0x14008a9a3
mov rcx, rdi
call fcn.140084c80
test eax, eax
je 0x14008a9cd
lea rdi, str.INVALID_DEFAULT_PATH_WITH_QUOTES:_use_the_GRAVE_ACCENT_x60_instead.
jmp 0x14008a9a3
xor ebp, ebp
cmp dword [0x140337068], ebp
je 0x14008a9eb
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
jne 0x14008aa0e
call fcn.140087820
test eax, eax
jne 0x14008aa0e
lea rcx, str.SSH_CLIENT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14008abdb
call fcn.140084c50
test eax, eax
jne 0x14008abdb
call fcn.140087820
test eax, eax
je 0x14008aa92
test rbx, rbx
je 0x14008aa73
lea rdx, str.tinyfd_query
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14008aa73
mov eax, dword [str.dialog]
mov dword [0x14035c480], eax
movzx eax, word [0x140306dd0]
mov word [0x14035c484], ax
movzx eax, byte [0x140306dd2]
mov byte [0x14035c486], al
xor eax, eax
mov rcx, qword [rsp + 0xc20]
xor rcx, rsp
call fcn.14014ce80
add rsp, 0xc30
pop rdi
pop rbp
pop rbx
ret
mov r8, rdi
lea rcx, [0x140339d10]
mov rdx, rbx
call fcn.140089100
mov rdi, rax
test rax, rax
je 0x14008aa56
jmp 0x14008acde
test rbx, rbx
je 0x14008aada
lea rdx, str.tinyfd_query
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14008aada
movzx eax, word [0x140306dc8]
movsd xmm0, qword [str.basicinput]
mov word [0x14035c488], ax
movzx eax, byte [0x140306dca]
mov byte [0x14035c48a], al
movsd qword [0x14035c480], xmm0
jmp 0x14008aa56
movups xmm0, xmmword [str.Select_folder_from]
mov eax, dword [0x140306fa8]
lea rcx, [0x1403370f0]
mov edx, 0x400
mov qword [rsp + 0xc60], rsi
movaps xmmword [0x140339d10], xmm0
mov dword [0x140339d20], eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__getcwd]
lea rdi, [0x140339d10]
mov r8, rax
lea rcx, [rdi - 1]
nop dword [rax]
cmp byte [rcx + 1], bpl
lea rcx, [rcx + 1]
jne 0x14008ab20
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14008ab30
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140089bd0
mov rsi, rax
test rax, rax
je 0x14008ab6e
mov rdx, rax
lea rax, [rsp + 0x20]
sub rax, rdx
nop
movzx ecx, byte [rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x14008ab60
lea r8, [0x140173b7a]
mov rdx, rdi
mov rcx, rbx
call fcn.140089bd0
test rax, rax
je 0x14008aba0
mov rdx, rdi
sub rdx, rax
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x14008ab90
jmp 0x14008aba7
mov byte [0x140339d10], bpl
test rsi, rsi
je 0x14008abce
lea rax, [rsp + 0x20]
sub rsi, rax
lea rcx, [rsp + 0x20]
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rsi + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14008abc0
mov rsi, qword [rsp + 0xc60]
jmp 0x14008acde
test rbx, rbx
je 0x14008ac0e
lea rdx, str.tinyfd_query
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14008ac0e
movabs rax, 0x73776f646e6977
mov qword [0x14035c480], rax
mov eax, 1
jmp 0x14008aa58
xor edx, edx
mov word [rsp + 0x20], bp
mov r8d, 0xfe
lea rcx, [rsp + 0x22]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov word [rsp + 0x420], bp
mov r8d, 0x7fe
lea rcx, [rsp + 0x422]
call sub.VCRUNTIME140.dll_memset
test rbx, rbx
je 0x14008ac70
mov rcx, rbx
call fcn.140084de0
lea rdx, [rsp + 0x20]
sub rdx, rax
nop word [rax + rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x14008ac60
test rdi, rdi
je 0x14008aca0
mov rcx, rdi
call fcn.140084de0
lea rdx, [rsp + 0x420]
sub rdx, rax
nop dword [rax + rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x14008ac90
lea rdx, [rsp + 0x420]
lea rcx, [rsp + 0x20]
call fcn.140087160
test rax, rax
je 0x14008aa56
mov rcx, rax
call fcn.140084eb0
lea rdi, [0x140339d10]
mov rdx, rdi
sub rdx, rax
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x14008acd0
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdi + rcx], bpl
jne 0x14008ace5
test rcx, rcx
je 0x14008aa56
mov rcx, rdi
call fcn.140085040
test eax, eax
cmovne rbp, rdi
mov rax, rbp
jmp 0x14008aa58