Function at 0x1400895f0
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rdi
push r15
sub rsp, 0x198
mov rax, qword [0x140330030]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r15, r9
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
nop dword [rax + rax]
mov rcx, rdi
call fcn.140084c80
test eax, eax
je 0x140089635
lea rdi, str.INVALID_TITLE_WITH_QUOTES
jmp 0x140089620
mov rcx, rbx
call fcn.140084c80
test eax, eax
je 0x14008964a
lea rbx, str.INVALID_MESSAGE_WITH_QUOTES
jmp 0x140089620
cmp dword [0x140337068], 0
mov qword [rsp + 0x190], rsi
mov qword [rsp + 0x188], r14
je 0x140089677
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
jne 0x14008969a
call fcn.140087820
test eax, eax
jne 0x14008969a
lea rcx, str.SSH_CLIENT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400899fe
call fcn.140084c50
test eax, eax
jne 0x1400899fe
call fcn.140087820
test eax, eax
je 0x140089707
test rdi, rdi
je 0x1400896e9
lea rdx, str.tinyfd_query
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400896e9
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 0x140089b9f
mov eax, dword [rsp + 0x1e0]
mov r8, rbp
mov rdx, rbx
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.140087950
jmp 0x140089b9f
test rdi, rdi
je 0x140089751
lea rdx, str.tinyfd_query
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140089751
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 0x140089b9f
cmp dword [0x140337088], 0
jne 0x140089793
cmp dword [0x140337068], 0
jne 0x140089793
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 rsi, 0xffffffffffffffff
test rdi, rdi
je 0x1400897d0
mov rax, rsi
inc rax
cmp byte [rdi + rax], 0
jne 0x1400897a2
test rax, rax
je 0x1400897d0
lea rcx, [0x140301334]
call fcn.140076990
mov rcx, rdi
call fcn.140089590
lea rcx, [0x140306df4]
call fcn.140076990
test rbp, rbp
je 0x1400899af
xor r14d, r14d
lea rdx, str.yesno
mov ecx, r14d
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [rcx + rbp - 1]
jne 0x140089876
cmp rcx, 6
jne 0x1400897f0
test rbx, rbx
je 0x140089832
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], r14b
jne 0x140089810
test rax, rax
je 0x140089832
mov rcx, rbx
call fcn.140089590
lea rcx, [0x140301334]
call fcn.140076990
lea rcx, str.y_n:
call fcn.140076990
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
lea rcx, [0x140306df4]
mov edi, eax
call fcn.140076990
cmp dil, 0x79
je 0x14008986a
cmp dil, 0x6e
jne 0x140089803
cmp dil, 0x79
sete r14b
mov eax, r14d
jmp 0x140089b9f
mov rdx, rbp
lea rcx, str.okcancel
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140089906
nop dword [rax]
test rbx, rbx
je 0x1400898c2
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], r14b
jne 0x1400898a0
test rax, rax
je 0x1400898c2
mov rcx, rbx
call fcn.140089590
lea rcx, [0x140301334]
call fcn.140076990
lea rcx, str._O_kay__C_ancel:
call fcn.140076990
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
lea rcx, [0x140306df4]
mov edi, eax
call fcn.140076990
cmp dil, 0x6f
je 0x1400898fa
cmp dil, 0x63
jne 0x140089890
cmp dil, 0x6f
sete r14b
mov eax, r14d
jmp 0x140089b9f
mov rdx, rbp
lea rcx, [0x140301758]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400899af
nop dword [rax]
test rbx, rbx
je 0x140089952
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], r14b
jne 0x140089930
test rax, rax
je 0x140089952
mov rcx, rbx
call fcn.140089590
lea rcx, [0x140301334]
call fcn.140076990
lea rcx, str._Y_es__N_o__C_ancel:
call fcn.140076990
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
lea rcx, [0x140306df4]
mov edi, eax
call fcn.140076990
cmp dil, 0x79
je 0x1400899a1
cmp dil, 0x6e
je 0x14008998c
cmp dil, 0x63
jne 0x140089920
mov eax, 2
cmp dil, 0x6e
cmove r14d, eax
mov eax, r14d
jmp 0x140089b9f
mov r14d, 1
mov eax, r14d
jmp 0x140089b9f
test rbx, rbx
je 0x1400899d6
inc rsi
cmp byte [rbx + rsi], 0
jne 0x1400899b4
test rsi, rsi
je 0x1400899d6
mov rcx, rbx
call fcn.140089590
lea rcx, [0x140306df4]
call fcn.140076990
lea rcx, str.press_enter_to_continue
call fcn.140076990
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
lea rcx, [0x140306df4]
call fcn.140076990
mov eax, 1
jmp 0x140089b9f
test rdi, rdi
je 0x140089a31
lea rdx, str.tinyfd_query
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140089a31
movabs rax, 0x73776f646e6977
mov qword [0x14035c480], rax
mov eax, 1
jmp 0x140089b9f
xor r14d, r14d
lea rcx, [rsp + 0x72]
xor edx, edx
mov word [rsp + 0x70], r14w
mov r8d, 0xfe
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov word [rsp + 0x50], r14w
mov qword [rsp + 0x62], rax
xorps xmm0, xmm0
mov dword [rsp + 0x6a], eax
mov word [rsp + 0x6e], ax
mov word [rsp + 0x30], r14w
mov qword [rsp + 0x42], rax
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
movups xmmword [rsp + 0x52], xmm0
movups xmmword [rsp + 0x32], xmm0
test rdi, rdi
je 0x140089ab0
mov rcx, rdi
call fcn.140084de0
lea rdx, [rsp + 0x70]
sub rdx, rax
nop dword [rax + rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140089aa0
test rbx, rbx
je 0x140089b10
mov rcx, rbx
call fcn.140084de0
mov rbx, rax
mov rsi, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rax + rsi*2 + 2], r14w
lea rsi, [rsi + 1]
jne 0x140089ad0
lea rcx, [rsi*2 + 2]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x140089b10
mov rdx, rax
sub rdx, rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
mov word [rdx + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x140089b00
test rbp, rbp
je 0x140089b41
mov rcx, rbp
call fcn.140084de0
lea r8, [rsp + 0x50]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
mov word [r8 + rax], dx
lea rax, [rax + 2]
test dx, dx
jne 0x140089b30
test r15, r15
je 0x140089b70
mov rcx, r15
call fcn.140084de0
lea rdx, [rsp + 0x30]
sub rdx, rax
nop word [rax + rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140089b60
mov eax, dword [rsp + 0x1e0]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140085390
mov rcx, r14
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov r14, qword [rsp + 0x188]
mov rsi, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14014ce80
add rsp, 0x198
pop r15
pop rdi
pop rbp
pop rbx
ret