Function at 0x14011b3e0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1060]
mov eax, 0x1160
call fcn.1401e8f10
sub rsp, rax
mov rax, qword [0x140277430]
xor rax, rsp
mov qword [rbp + 0x1050], rax
mov rdi, rcx
xor r15d, r15d
mov ecx, 0xfffffff6
mov dword [rsp + 0x40], r15d
mov r12, r8
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rdi, rdi
jne 0x14011b5ad
test rsi, rsi
jne 0x14011b644
test r12, r12
je 0x14011bb6e
test r12, r12
je 0x14011b4e9
mov edx, 0x27
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
jne 0x14011b6d2
lea edx, [rax + 0x22]
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
jne 0x14011b6d2
lea edx, [rax + 0x60]
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
jne 0x14011b6d2
lea edx, [rax + 0x24]
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rbx, rax
test rax, rax
je 0x14011b4e9
nop word [rax + rax]
movsx eax, byte [rbx + 1]
cmp al, 0x28
je 0x14011b6d2
cmp al, 0x5f
je 0x14011b6d2
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
test eax, eax
jne 0x14011b6d2
lea edx, [rax + 0x24]
lea rcx, [rbx + 1]
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rbx, rax
test rax, rax
jne 0x14011b4b0
mov ecx, 0xfffffff6
mov dword [rsp + 0x40], r15d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp dword [0x14027c1d4], r15d
mov rbx, rax
je 0x14011b519
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
jne 0x14011b552
call fcn.14011a700
test eax, eax
jne 0x14011b552
lea rcx, str.SSH_CLIENT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14011b9ea
cmp dword [0x14027c1d0], r15d
jne 0x14011b9ea
lea rcx, [0x140221a20]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14011b9ea
call fcn.14011a700
test eax, eax
je 0x14011b708
test rdi, rdi
je 0x14011b6e4
lea rdx, str.tinyfd_query
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14011b6e4
mov eax, dword [str.dialog]
mov dword [0x14027ebc0], eax
movzx eax, word [0x1402231e0]
mov word [0x14027ebc4], ax
movzx eax, byte [0x1402231e2]
mov byte [0x14027ebc6], al
xor eax, eax
jmp 0x14011bb89
mov edx, 0x27
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
jne 0x14011bb77
lea edx, [rax + 0x22]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
jne 0x14011bb77
lea edx, [rax + 0x60]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
jne 0x14011bb77
lea edx, [rax + 0x24]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rbx, rax
test rax, rax
je 0x14011b63b
movsx eax, byte [rbx + 1]
cmp al, 0x28
je 0x14011bb77
cmp al, 0x5f
je 0x14011bb77
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
test eax, eax
jne 0x14011bb77
lea edx, [rax + 0x24]
lea rcx, [rbx + 1]
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rbx, rax
test rax, rax
jne 0x14011b602
test rsi, rsi
je 0x14011b448
mov edx, 0x27
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
jne 0x14011b6c3
lea edx, [rax + 0x22]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
jne 0x14011b6c3
lea edx, [rax + 0x60]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
jne 0x14011b6c3
lea edx, [rax + 0x24]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rbx, rax
test rax, rax
je 0x14011b448
movsx eax, byte [rbx + 1]
cmp al, 0x28
je 0x14011b6c3
cmp al, 0x5f
je 0x14011b6c3
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
test eax, eax
jne 0x14011b6c3
lea edx, [rax + 0x24]
lea rcx, [rbx + 1]
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rbx, rax
test rax, rax
jne 0x14011b691
jmp 0x14011b448
lea rdx, str.INVALID_MESSAGE_WITH_QUOTES
mov rcx, rdi
jmp 0x14011bb81
lea r8, str.INVALID_DEFAULT_INPUT_WITH_QUOTES:_use_the_GRAVE_ACCENT_x60_instead.
mov rdx, rsi
mov rcx, rdi
jmp 0x14011bb84
mov r9, r12
mov byte [0x14027e460], r15b
mov r8, rsi
mov rdx, rdi
call fcn.14011a830
test eax, eax
jne 0x14011bb6e
xor eax, eax
jmp 0x14011bb89
test rdi, rdi
je 0x14011b752
lea rdx, str.tinyfd_query
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14011b752
movzx eax, word [0x1402231f0]
movsd xmm0, qword [str.basicinput]
mov word [0x14027ebc8], ax
movzx eax, byte [0x1402231f2]
mov byte [0x14027ebca], al
xor eax, eax
movsd qword [0x14027ebc0], xmm0
jmp 0x14011bb89
cmp dword [0x14027c308], r15d
mov byte [0x14027e460], r15b
jne 0x14011b79b
cmp dword [0x14027c1d4], r15d
jne 0x14011b79b
lea rdx, str.missing_software___we_will_try_basic_console_input_
mov dword [0x14027c308], 1
lea rcx, str._n_n_s_n
call fcn.14006dc60
lea rdx, str._____________n______________n_tiny_file__n__dialogs___n_____________n_______ntiny_file_dialogs_on_Windows_needs:_n___a_graphic_display_nor_dialog.exe__curses_console_mode___Disabled_by_default___nor_a_console_for_basic_input
lea rcx, str._s_n_n
call fcn.14006dc60
mov r14, 0xffffffffffffffff
test rdi, rdi
je 0x14011b7de
mov rax, r14
nop word [rax + rax]
inc rax
cmp byte [rdi + rax], r15b
jne 0x14011b7b0
test rax, rax
je 0x14011b7de
lea rcx, [0x140218a08]
call fcn.14006dc60
mov rcx, rdi
call fcn.14011b360
lea rcx, [0x140223208]
call fcn.14006dc60
test rsi, rsi
je 0x14011b808
mov rax, r14
inc rax
cmp byte [rsi + rax], r15b
jne 0x14011b7e6
test rax, rax
je 0x14011b808
mov rcx, rsi
call fcn.14011b360
lea rcx, [0x140218a08]
call fcn.14006dc60
lea rcx, str._ctrl_Z__enter_to_cancel_:
call fcn.14006dc60
test r12, r12
jne 0x14011b87a
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rsp + 0x40]
mov rcx, rbx
and edx, 0xfffffffb
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r15
mov rcx, rax
lea rdx, [rbp + 0x50]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov edx, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea rcx, [0x140218a08]
call fcn.14006dc60
jmp 0x14011b8a2
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r15
mov rcx, rax
lea rdx, [rbp + 0x50]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov eax, dword [rsp + 0x44]
add rax, rax
cmp rax, 0x800
jae 0x14011bbaa
mov word [rbp + rax + 0x50], r15w
lea rcx, [rbp + 0x50]
mov rax, r14
cmp word [rcx + rax*2 + 2], r15w
lea rax, [rax + 1]
jne 0x14011b8c2
cmp word [rbp + rax*2 + 0x4e], 0xa
jne 0x14011b8f0
lea rax, [rax*2 - 2]
cmp rax, 0x800
jae 0x14011bbaa
mov word [rbp + rax + 0x50], r15w
lea rcx, [rbp + 0x50]
mov rax, r14
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], r15w
lea rax, [rax + 1]
jne 0x14011b900
cmp word [rbp + rax*2 + 0x4e], 0xd
jne 0x14011b92e
lea rax, [rax*2 - 2]
cmp rax, 0x800
jae 0x14011bbaa
mov word [rbp + rax + 0x50], r15w
mov rcx, qword [0x14027e038]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x38], r15
lea r8, [rbp + 0x50]
mov qword [rsp + 0x30], r15
mov r9d, r14d
mov dword [rsp + 0x28], r15d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
test eax, eax
je 0x14011b9aa
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x38], r15
lea r8, [rbp + 0x50]
mov qword [rsp + 0x30], r15
mov r9d, r14d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov qword [0x14027e038], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [0x14027e038]
jmp 0x14011b9b4
mov rcx, qword [0x14027e038]
mov byte [rcx], r15b
test rcx, rcx
je 0x14011bb3e
lea rdx, [0x14027e460]
sub rdx, rcx
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14011b9d0
lea rax, [0x14027e460]
jmp 0x14011bb89
test rdi, rdi
je 0x14011ba1d
lea rdx, str.tinyfd_query
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14011ba1d
movabs rax, 0x73776f646e6977
mov qword [0x14027ebc0], rax
mov eax, 1
jmp 0x14011bb89
xor edx, edx
mov byte [0x14027e460], r15b
mov r8d, 0xfe
mov word [rsp + 0x50], r15w
lea rcx, [rsp + 0x52]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov word [rbp + 0x850], r15w
mov r8d, 0x7fe
lea rcx, [rbp + 0x852]
mov r14, r15
call sub.VCRUNTIME140.dll_memset
test rdi, rdi
je 0x14011ba80
mov rcx, rdi
call fcn.140118c20
lea rdx, [rsp + 0x50]
sub rdx, rax
movzx ecx, word [rax]
mov word [rax + rdx], cx
lea rax, [rax + 2]
test cx, cx
jne 0x14011ba70
test rsi, rsi
je 0x14011bae0
mov rcx, rsi
call fcn.140118c20
mov r14, 0xffffffffffffffff
mov rbx, rax
mov rcx, r14
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x14011baa0
inc rcx
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x14011bae0
mov rdx, rax
sub rdx, rbx
movzx ecx, word [rbx]
mov word [rbx + rdx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x14011bad0
test r12, r12
je 0x14011bb17
mov rcx, r12
call fcn.140118c20
lea rdx, [rbp + 0x850]
sub rdx, rax
nop word [rax + rax]
movzx ecx, word [rax]
mov word [rax + rdx], cx
lea rax, [rax + 2]
test cx, cx
jne 0x14011bb00
lea r15, [rbp + 0x850]
mov r8, r15
lea rcx, [rsp + 0x50]
mov rdx, r14
call fcn.1401190a0
mov rcx, r14
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x14011bb42
mov byte [0x14027e460], bl
xor eax, eax
jmp 0x14011bb89
mov rcx, rbx
call fcn.140118d00
lea rdx, [0x14027e460]
sub rdx, rax
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rax + rdx], cl
lea rax, [rax + 1]
test cl, cl
jne 0x14011bb60
lea rax, [0x14027e460]
jmp 0x14011bb89
mov rdx, rsi
lea rcx, str.INVALID_TITLE_WITH_QUOTES
mov r8, r12
call fcn.14011b3e0
mov rcx, qword [rbp + 0x1050]
xor rcx, rsp
call fcn.1401e8350
add rsp, 0x1160
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1401e8740
int3