Function at 0x140089bd0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1050]
mov eax, 0x1150
call fcn.14014e250
sub rsp, rax
mov rax, qword [0x140330030]
xor rax, rsp
mov qword [rbp + 0x1040], rax
mov rdi, rcx
mov r15, r8
mov ecx, 0xfffffff6
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rdi, rdi
jne 0x140089c28
test rsi, rsi
jne 0x140089c28
test r15, r15
je 0x14008a12e
mov rcx, rdi
call fcn.140084c80
test eax, eax
je 0x140089c4b
mov r8, r15
lea rcx, str.INVALID_TITLE_WITH_QUOTES
mov rdx, rsi
call fcn.140089bd0
jmp 0x14008a135
mov rcx, rsi
call fcn.140084c80
test eax, eax
je 0x140089c6e
mov r8, r15
lea rdx, str.INVALID_MESSAGE_WITH_QUOTES
mov rcx, rdi
call fcn.140089bd0
jmp 0x14008a135
mov rcx, r15
call fcn.140084c80
test eax, eax
je 0x140089c91
lea r8, str.INVALID_DEFAULT_INPUT_WITH_QUOTES:_use_the_GRAVE_ACCENT_x60_instead.
mov rdx, rsi
mov rcx, rdi
call fcn.140089bd0
jmp 0x14008a135
xor r14d, r14d
mov ecx, 0xfffffff6
mov dword [rsp + 0x30], r14d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp dword [0x140337068], r14d
mov r12, rax
je 0x140089cc4
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
jne 0x140089ce7
call fcn.140087820
test eax, eax
jne 0x140089ce7
lea rcx, str.SSH_CLIENT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140089fa3
call fcn.140084c50
test eax, eax
jne 0x140089fa3
call fcn.140087820
test eax, eax
je 0x140089d5a
test rdi, rdi
je 0x140089d36
lea rdx, str.tinyfd_query
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140089d36
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
jmp 0x14008a135
mov r9, r15
mov byte [0x140339910], r14b
mov r8, rsi
mov rdx, rdi
call fcn.1400880d0
test eax, eax
jne 0x14008a12e
xor eax, eax
jmp 0x14008a135
test rdi, rdi
je 0x140089da4
lea rdx, str.tinyfd_query
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140089da4
movzx eax, word [0x140306dc8]
movsd xmm0, qword [str.basicinput]
mov word [0x14035c488], ax
movzx eax, byte [0x140306dca]
mov byte [0x14035c48a], al
xor eax, eax
movsd qword [0x14035c480], xmm0
jmp 0x14008a135
cmp dword [0x140337088], r14d
mov byte [0x140339910], r14b
jne 0x140089ded
cmp dword [0x140337068], r14d
jne 0x140089ded
lea rdx, str.missing_software___we_will_try_basic_console_input_
mov dword [0x140337088], 1
lea rcx, str._n_n_s_n
call fcn.140076990
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.140076990
mov rbx, 0xffffffffffffffff
test rdi, rdi
je 0x140089e2e
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rdi + rax], r14b
jne 0x140089e00
test rax, rax
je 0x140089e2e
lea rcx, [0x140301334]
call fcn.140076990
mov rcx, rdi
call fcn.140089590
lea rcx, [0x140306df4]
call fcn.140076990
test rsi, rsi
je 0x140089e58
mov rax, rbx
inc rax
cmp byte [rsi + rax], r14b
jne 0x140089e36
test rax, rax
je 0x140089e58
mov rcx, rsi
call fcn.140089590
lea rcx, [0x140301334]
call fcn.140076990
lea rcx, str._ctrl_Z__enter_to_cancel_:
call fcn.140076990
test r15, r15
jne 0x140089eca
lea rdx, [rsp + 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rsp + 0x30]
mov rcx, r12
and edx, 0xfffffffb
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], r14
mov rcx, rax
lea rdx, [rbp + 0x40]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov edx, dword [rsp + 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea rcx, [0x140301334]
call fcn.140076990
jmp 0x140089ef2
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], r14
mov rcx, rax
lea rdx, [rbp + 0x40]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov eax, dword [rsp + 0x34]
add rax, rax
cmp rax, 0x800
jae 0x14008a156
mov word [rbp + rax + 0x40], r14w
lea rcx, [rbp + 0x40]
mov rax, rbx
cmp word [rcx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x140089f12
cmp word [rbp + rax*2 + 0x3e], 0xa
jne 0x140089f40
lea rax, [rax*2 - 2]
cmp rax, 0x800
jae 0x14008a156
mov word [rbp + rax + 0x40], r14w
lea rax, [rbp + 0x40]
cmp word [rax + rbx*2 + 2], r14w
lea rbx, [rbx + 1]
jne 0x140089f44
cmp word [rbp + rbx*2 + 0x3e], 0xd
jne 0x140089f73
lea rbx, [rbx*2 - 2]
cmp rbx, 0x800
jae 0x14008a156
mov word [rbp + rbx + 0x40], r14w
lea rcx, [rbp + 0x40]
call fcn.140084eb0
test rax, rax
je 0x14008a0ff
lea rdx, [0x140339910]
sub rdx, rax
nop
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140089f90
jmp 0x14008a12e
test rdi, rdi
je 0x140089fd6
lea rdx, str.tinyfd_query
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140089fd6
movabs rax, 0x73776f646e6977
mov qword [0x14035c480], rax
mov eax, 1
jmp 0x14008a135
xor edx, edx
mov byte [0x140339910], r14b
mov r8d, 0xfe
mov word [rsp + 0x40], r14w
lea rcx, [rsp + 0x42]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov word [rbp + 0x840], r14w
mov r8d, 0x7fe
lea rcx, [rbp + 0x842]
mov rbx, r14
call sub.VCRUNTIME140.dll_memset
test rdi, rdi
je 0x14008a040
mov rcx, rdi
call fcn.140084de0
lea rdx, [rsp + 0x40]
sub rdx, rax
nop dword [rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x14008a030
test rsi, rsi
je 0x14008a0a0
mov rcx, rsi
call fcn.140084de0
mov rdi, rax
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], r14w
lea rbx, [rbx + 1]
jne 0x14008a060
lea rcx, [rbx*2 + 2]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14008a0a0
mov rdx, rax
sub rdx, rdi
nop dword [rax + rax]
movzx ecx, word [rdi]
mov word [rdx + rdi], cx
lea rdi, [rdi + 2]
test cx, cx
jne 0x14008a090
test r15, r15
je 0x14008a0d7
mov rcx, r15
call fcn.140084de0
lea rdx, [rbp + 0x840]
sub rdx, rax
nop word [rax + rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x14008a0c0
lea r14, [rbp + 0x840]
mov r8, r14
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400856a0
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rdi, rdi
jne 0x14008a103
mov byte [0x140339910], dil
xor eax, eax
jmp 0x14008a135
mov rcx, rdi
call fcn.140084eb0
lea rdx, [0x140339910]
sub rdx, rax
nop word [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x14008a120
lea rax, [0x140339910]
mov rcx, qword [rbp + 0x1040]
xor rcx, rsp
call fcn.14014ce80
add rsp, 0x1150
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14014d89c
int3