Function at 0x14006cce0
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
call fcn.140093250
test rax, rax
jle 0x14006ccb8
mov rdx, qword [0x1400ad790]
lea rax, [0x1400aee26]
mov rcx, rbp
test rdx, rdx
cmove rdx, rax
call fcn.1400550b0
mov rsi, rax
test rax, rax
je 0x14006ccb0
mov edx, dword [0x1400acdf0]
test edx, edx
je 0x14006ca59
or dword [rax + 0x40], 0x8000
mov edx, 2
mov rcx, rsi
call fcn.14003b630
test al, al
je 0x14006cb38
mov rax, qword [0x1400accf0]
mov rcx, qword [rsi]
call qword [rax + 8]
mov eax, dword [0x1400ad4f0]
test eax, eax
jne 0x14006cc10
xor edi, edi
lea r12, [rsp + 0x28]
jmp 0x14006caea
mov rcx, rbx
call fcn.1400a2ba0
mov rax, qword [0x1400accf0]
mov rdx, qword [rbx]
mov rcx, qword [rsi]
call qword [rax + 0x10]
mov rdx, rsi
mov rcx, rbx
call fcn.14006d000
test rdi, rdi
je 0x14006cae7
mov rcx, rdi
call fcn.14003c560
mov qword [0x1400ace00], 0
mov qword [0x1400ace10], 0
cmp rdi, rbx
je 0x14006cbfe
mov rdi, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1400551e0
mov rbx, rax
test rax, rax
je 0x14006cba8
mov r8, r12
mov edx, 1
mov rcx, rax
call fcn.14003b640
test al, al
jne 0x14006ca98
mov rcx, qword [rbx]
call fcn.140054d10
call fcn.1400525a0
cmp eax, 0xd
jne 0x14006cabb
mov rcx, qword [rsp + 0x28]
call fcn.14009a140
jmp 0x14006cabb
lea r8, [rsp + 0x28]
mov edx, 1
mov rcx, rsi
call fcn.14003b640
mov ebx, eax
test al, al
jne 0x14006cbe0
mov rcx, rbp
call fcn.140054d10
call fcn.1400525a0
cmp eax, 0xd
je 0x14006ccbf
mov rcx, rsi
call fcn.14003c560
test al, al
je 0x14006ccce
mov qword [0x1400ace00], 0
mov qword [0x1400ace10], 0
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call fcn.1400525a0
cmp eax, 9
jne 0x14006ccd6
test rdi, rdi
je 0x14006cbfe
mov rcx, rdi
call fcn.14003c560
mov qword [0x1400ace00], 0
mov qword [0x1400ace10], 0
jmp 0x14006cbfe
mov rcx, rsi
call fcn.1400a2ba0
mov rax, qword [0x1400accf0]
mov rcx, rbp
call qword [rax]
xor edx, edx
mov rcx, rsi
call fcn.14006d000
mov ebx, 1
jmp 0x14006cb6a
lea r12, [rsp + 0x28]
mov edx, 0xffffffff
mov rcx, rsi
mov r8, r12
call fcn.140052aa0
mov ebx, eax
cmp eax, 0xffffffff
je 0x14006ca89
lea rcx, str._nArchive_index:_n
lea r14, [0x1400ae0d4]
call fcn.14009f810
lea r13, str._in__s_n
jmp 0x14006cc8d
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
test r8, r8
je 0x14006cc75
xor edx, edx
mov rcx, r14
mov r9, rsi
call fcn.14009ef20
mov rdx, qword [rdi]
mov rcx, r13
call fcn.14009f810
mov edx, ebx
mov r8, r12
mov rcx, rsi
call fcn.140052aa0
mov ebx, eax
cmp eax, 0xffffffff
je 0x14006ca89
mov rax, qword [rsi + 8]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x1e0]
mov rdi, rax
test rax, rax
jne 0x14006cc50
lea rcx, str.bfd_get_elt_at_index
call fcn.140050bc0
mov rcx, rbp
call fcn.140054d10
xor ebx, ebx
jmp 0x14006cb90
mov rcx, qword [rsp + 0x28]
call fcn.14009a140
jmp 0x14006cb6a
mov rcx, rbp
call fcn.140050bc0
mov rcx, qword [rsi]
call fcn.140050bc0
nop
nop
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rdx, [0x1400af7d8]
lea rcx, str.BFD_header_file_version__s_n
call fcn.14009f860
xor ecx, ecx
call fcn.14009ae50
lea rdx, [rsp + 0x40]
lea rcx, [0x140070b90]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
call fcn.1400543e0
mov rcx, qword [rsp + 0x40]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__unlink
mov rcx, qword [rsp + 0x40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov edi, dword [rsp + 0x48]
test edi, edi
je 0x14006cd6a
mov eax, edi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
mov ebx, 2
nop word [rax + rax]
xor edx, edx
mov ecx, ebx
call fcn.1400561b0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp r14d, eax
cmovl r14d, eax
add ebx, 1
cmp ebx, 0x57
jne 0x14006cd78
lea rcx, str.COLUMNS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rcx, rax
test rax, rax
je 0x14006cdb5
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
test eax, eax
jne 0x14006cdba
mov eax, 0x50
mov ebx, dword [rsp + 0x4c]
test ebx, ebx
jle 0x14006cfe9
sub eax, r14d
mov esi, ebx
mov dword [rsp + 0x3c], r14d
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub eax, 1
mov dword [rsp + 0x38], eax
lea eax, [r14 + 1]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x58]
cmp edi, esi
jge 0x14006cfab
movsxd r12, edi
mov ebp, dword [rsp + 0x38]
mov r13d, edi
lea r14, [r12 + r12*2]
shl r14, 5
lea rbx, [rax + r14]
jmp 0x14006ce1c
add r13d, 1
add rbx, 0x60
cmp r13d, esi
je 0x14006cfcd
mov rcx, qword [rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
sub ebp, eax
sub ebp, 1
jns 0x14006ce0b
mov edx, dword [rsp + 0x34]
lea r8, [0x1400af830]
lea rcx, str._n_s
call fcn.14009f860
cmp edi, r13d
je 0x14006ce75
mov eax, r13d
sub eax, edi
add rax, r12
lea rbx, [rax + rax*2]
shl rbx, 5
mov rax, qword [rsp + 0x58]
lea rcx, [0x1400af837]
mov rdx, qword [rax + r14]
add r14, 0x60
call fcn.14009f860
cmp r14, rbx
jne 0x14006ce57
mov ecx, 0xa
mov ebx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putchar
lea rax, [r12 + r12*2]
shl rax, 5
mov rbp, rax
mov eax, r13d
sub eax, edi
add rax, r12
lea r14, [rax + rax*2]
shl r14, 5
mov qword [rsp + 0x28], r14
mov r14d, dword [rsp + 0x3c]
jmp 0x14006cec0
add ebx, 1
cmp ebx, 0x57
je 0x14006cf92
nop word [rax + rax]
xor edx, edx
mov ecx, ebx
call fcn.1400561b0
lea rdx, [0x1400af83b]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14006ceab
xor edx, edx
mov ecx, ebx
call fcn.1400561b0
mov edx, r14d
lea rcx, str._s
mov r8, rax
call fcn.14009f860
cmp r13d, edi
je 0x14006cf7c
mov rsi, rbp
lea r12d, [rbx - 2]
jmp 0x14006cf3e
mov ecx, 1
call r15
mov rdx, rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + rsi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
add rsi, 0x60
cmp qword [rsp + 0x28], rsi
je 0x14006cf7c
mov ecx, 0x20
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putchar
mov rax, qword [rsp + 0x58]
add rax, rsi
cmp byte [rax + r12 + 8], 0
jne 0x14006cf10
mov rcx, qword [rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov dword [rsp + 0x30], eax
test eax, eax
je 0x14006cf29
nop
mov ecx, 0x2d
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putchar
sub dword [rsp + 0x30], 1
jne 0x14006cf60
add rsi, 0x60
cmp qword [rsp + 0x28], rsi
jne 0x14006cf34
mov ecx, 0xa
add ebx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putchar
cmp ebx, 0x57
jne 0x14006cec0
mov esi, dword [rsp + 0x4c]
cmp esi, r13d
jle 0x14006cfe9
mov edi, r13d
mov rax, qword [rsp + 0x58]
cmp edi, esi
jl 0x14006cdf3
mov edx, dword [rsp + 0x34]
lea r8, [0x1400af830]
mov r13d, edi
movsxd r12, edi
lea rcx, str._n_s
call fcn.14009f860
jmp 0x14006ce75
mov edx, dword [rsp + 0x34]
lea r8, [0x1400af830]
lea rcx, str._n_s
call fcn.14009f860
jmp 0x14006ce47
mov edi, dword [rsp + 0x48]
jmp 0x14006cd57