Function at 0x140029b10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x30
xor r15d, r15d
mov rsi, r9
mov r12d, r15d
mov r13d, r15d
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
nop dword [rax + rax]
test rdi, rdi
je 0x140029b70
mov edx, 0x27
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
jne 0x140029b67
lea edx, [rax + 0x22]
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140029b70
lea rdi, [0x14332db98]
jmp 0x140029b40
test rbx, rbx
je 0x140029ba0
mov edx, 0x27
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
test rax, rax
jne 0x140029b97
lea edx, [rax + 0x22]
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140029ba0
lea rbx, [0x14332dbb8]
jmp 0x140029b40
cmp dword [0x14333b258], r12d
je 0x140029bbd
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
jne 0x140029be0
call fcn.140028f10
test eax, eax
jne 0x140029be0
lea rcx, [0x14332dbd8]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14002a07e
call fcn.140029040
test eax, eax
jne 0x14002a07e
call fcn.140028f10
test eax, eax
je 0x140029c50
test rdi, rdi
je 0x140029c2f
lea rdx, [0x14332dbe8]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140029c2f
mov eax, dword [0x14332dbf8]
mov dword [0x14333e620], eax
movzx eax, word [0x14332dbfc]
mov word [0x14333e624], ax
movzx eax, byte [0x14332dbfe]
mov byte [0x14333e626], al
xor eax, eax
jmp 0x140029fe1
mov eax, dword [rsp + 0x80]
mov r9, rsi
mov r8, rbp
mov dword [rsp + 0x20], eax
mov rdx, rbx
mov rcx, rdi
call fcn.140029070
jmp 0x140029fe1
cmp dword [section..data], r12d
jne 0x140029c87
call qword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
call qword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test rdi, rdi
je 0x140029cd1
lea rdx, [0x14332dbe8]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140029cd1
movzx eax, word [0x14332dc08]
movsd xmm0, qword [0x14332dc00]
mov word [0x14333e628], ax
movzx eax, byte [0x14332dc0a]
mov byte [0x14333e62a], al
xor eax, eax
movsd qword [0x14333e620], xmm0
jmp 0x140029fe1
cmp dword [0x14333b260], r15d
mov esi, 1
mov qword [rsp + 0x60], r14
jne 0x140029d19
cmp dword [0x14333b258], r15d
jne 0x140029d19
lea rdx, str.missing_software___we_will_try_basic_console_input_
mov dword [0x14333b260], esi
lea rcx, [0x14332dc0c]
call fcn.1400299f0
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__nor_a_console_for_basic_input
lea rcx, [0x14332dc14]
call fcn.1400299f0
mov r14, 0xffffffffffffffff
test rdi, rdi
je 0x140029d78
mov rax, r14
nop dword [rax + rax]
inc rax
cmp byte [rdi + rax], r15b
jne 0x140029d30
test rax, rax
je 0x140029d78
lea rcx, [0x14332db4c]
call fcn.1400299f0
cmp dword [section..data], r15d
je 0x140029d5d
mov rcx, rdi
call fcn.14002a4c0
jmp 0x140029d6c
mov rdx, rdi
lea rcx, [0x14332dc1c]
call fcn.1400299f0
lea rcx, [0x14332dc20]
call fcn.1400299f0
test rbp, rbp
je 0x140029ff8
mov rcx, r15
lea rdx, [0x14332daa4]
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [rcx + rbp - 1]
jne 0x140029e4b
cmp rcx, 6
jne 0x140029d90
test rbx, rbx
je 0x140029dec
mov rax, r14
nop
inc rax
cmp byte [rbx + rax], r15b
jne 0x140029db0
test rax, rax
je 0x140029dec
cmp dword [section..data], r15d
je 0x140029dd1
mov rcx, rbx
call fcn.14002a4c0
jmp 0x140029de0
mov rdx, rbx
lea rcx, [0x14332dc1c]
call fcn.1400299f0
lea rcx, [0x14332db4c]
call fcn.1400299f0
lea rcx, [0x14332dc24]
call fcn.1400299f0
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, [0x14332dc20]
mov edi, eax
call fcn.1400299f0
cmp dil, 0x79
je 0x140029e20
cmp dil, 0x6e
jne 0x140029da7
cmp dword [section..data], r15d
jne 0x140029e3b
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
cmp dil, 0x79
sete r15b
mov eax, r15d
jmp 0x140029fdc
mov rdx, rbp
lea rcx, [0x14332da98]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140029f0b
test rbx, rbx
je 0x140029eac
mov rax, r14
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], r15b
jne 0x140029e70
test rax, rax
je 0x140029eac
cmp dword [section..data], r15d
je 0x140029e91
mov rcx, rbx
call fcn.14002a4c0
jmp 0x140029ea0
mov rdx, rbx
lea rcx, [0x14332dc1c]
call fcn.1400299f0
lea rcx, [0x14332db4c]
call fcn.1400299f0
lea rcx, [0x14332dc30]
call fcn.1400299f0
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, [0x14332dc20]
mov edi, eax
call fcn.1400299f0
cmp dil, 0x6f
je 0x140029ee0
cmp dil, 0x63
jne 0x140029e62
cmp dword [section..data], r15d
jne 0x140029efb
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
cmp dil, 0x6f
sete r15b
mov eax, r15d
jmp 0x140029fdc
mov rdx, rbp
lea rcx, [0x14332dab0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140029ff8
test rbx, rbx
je 0x140029f6c
mov rax, r14
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], r15b
jne 0x140029f30
test rax, rax
je 0x140029f6c
cmp dword [section..data], r15d
je 0x140029f51
mov rcx, rbx
call fcn.14002a4c0
jmp 0x140029f60
mov rdx, rbx
lea rcx, [0x14332dc1c]
call fcn.1400299f0
lea rcx, [0x14332db4c]
call fcn.1400299f0
lea rcx, [0x14332dc48]
call fcn.1400299f0
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, [0x14332dc20]
mov edi, eax
call fcn.1400299f0
cmp dil, 0x79
je 0x140029faa
cmp dil, 0x6e
je 0x140029faa
cmp dil, 0x63
jne 0x140029f22
cmp dword [section..data], r15d
jne 0x140029fc5
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
cmp dil, 0x79
je 0x140029fda
cmp dil, 0x6e
mov esi, r15d
mov eax, 2
cmove esi, eax
mov eax, esi
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
test rbx, rbx
je 0x14002a03c
nop dword [rax]
inc r14
cmp byte [rbx + r14], r15b
jne 0x14002a000
test r14, r14
je 0x14002a03c
cmp dword [section..data], r15d
je 0x14002a021
mov rcx, rbx
call fcn.14002a4c0
jmp 0x14002a030
mov rdx, rbx
lea rcx, [0x14332dc1c]
call fcn.1400299f0
lea rcx, [0x14332dc20]
call fcn.1400299f0
lea rcx, [0x14332dc60]
call fcn.1400299f0
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
lea rcx, [0x14332dc20]
call fcn.1400299f0
cmp dword [section..data], r15d
jne 0x140029fda
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
jmp 0x140029fda
test rdi, rdi
je 0x14002a0b1
lea rdx, [0x14332dbe8]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14002a0b1
movabs rax, 0x73776f646e6977
mov qword [0x14333e620], rax
mov eax, 1
jmp 0x140029fe1
mov eax, dword [rsp + 0x80]
mov r9, rsi
mov r8, rbp
mov dword [rsp + 0x20], eax
mov rdx, rbx
mov rcx, rdi
call fcn.1400297f0
jmp 0x140029fe1