Function at 0x10042c2e0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
xor edi, edi
movabs r15, 0xffffffff3ffff9fe
mov eax, dword [rbp + 0x70]
mov rbx, qword [rbp + 0x80]
mov dword [rbp + 0x50], ecx
mov rcx, rdx
mov r14, r8
lea r13, [rbp - 8]
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x68], r9
mov dword [rbp - 0x20], eax
mov byte [rbp - 0x30], al
mov qword [rbp - 8], 0
call fcn.100431340
mov byte [rbp - 0x11], 0
mov r12, rax
mov rax, qword [rbp + 0x58]
lea rsi, [rax + 4]
mov rdx, rsi
mov eax, dword [rsi]
test eax, eax
je 0x10042c3b0
cmp eax, 0x5b
je 0x10042c3f8
lea ecx, [rax - 0x21]
cmp ecx, 0x1f
jbe 0x10042c380
cmp eax, 0x7c
sete cl
test rdi, rdi
sete al
and cl, al
mov r8d, ecx
jne 0x10042c460
add rsi, 4
jmp 0x10042c34b
bt r15, rcx
setb r8b
test r8b, r8b
jne 0x10042c590
mov eax, dword [rsi + 4]
add rsi, 4
cmp eax, 0x28
sete al
movzx eax, al
add rdi, rax
mov eax, dword [rsi]
test eax, eax
jne 0x10042c351
nop word [rax + rax]
mov esi, 0xffffffff
cmp byte [rbp - 0x11], 0
je 0x10042c3de
mov rcx, qword [rbp - 8]
jmp 0x10042c3d9
mov edx, dword [rcx + 8]
mov rbx, qword [rcx]
test edx, edx
jne 0x10042c580
mov rcx, rbx
test rcx, rcx
jne 0x10042c3c8
mov eax, esi
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r8d, dword [0x100453990]
test r8d, r8d
je 0x10042c520
mov eax, dword [rsi + 4]
cmp eax, 0x21
je 0x10042c450
mov ecx, dword [0x100453990]
test ecx, ecx
jns 0x10042c41f
cmp eax, 0x5e
je 0x10042c450
add rsi, 4
lea rcx, [rsi + 4]
cmp eax, 0x5d
cmove rsi, rcx
nop
mov eax, dword [rsi]
add rsi, 4
cmp eax, 0x5d
je 0x10042c34b
test eax, eax
jne 0x10042c430
jmp 0x10042c3b0
mov eax, dword [rsi + 8]
add rsi, 8
jmp 0x10042c423
mov eax, dword [rbp + 0x50]
lea ecx, [rax - 0x3f]
mov rax, r12
cmp ecx, 1
jbe 0x10042c47c
mov rax, rsi
sub rax, rdx
sar rax, 2
add rax, 1
mov rdi, rax
xor r9d, r9d
lea rcx, [rbx + 0x10]
shr rdi, 0x3e
setne r9b
shl rax, 2
js 0x10042ca55
test r9, r9
jne 0x10042ca55
xor edi, edi
add rcx, rax
seto dil
jo 0x10042ca55
cmp rcx, 0xfbf
lea r9, [rax + 0x10]
setg r10b
jg 0x10042c548
add rax, 0x1f
add rbx, r9
and rax, 0xfffffffffffffff0
call fcn.100431810
sub rsp, rax
lea r9, [rsp + 0x40]
movzx r10d, r10b
mov r8, rsi
lea rcx, [r9 + 0xc]
mov qword [rbp - 0x28], r9
mov qword [r9], 0
sub r8, rdx
mov dword [r9 + 8], r10d
sar r8, 2
call fcn.1004312d0
mov r9, qword [rbp - 0x28]
lea rdx, [rsi + 4]
mov dword [rax], 0
mov rsi, rdx
mov qword [r13], r9
mov r13, r9
jmp 0x10042c34b
lea rcx, str.POSIXLY_CORRECT
mov qword [rbp - 0x28], rdx
call sub.msys_2.0.dll_getenv
mov rdx, qword [rbp - 0x28]
cmp rax, 1
sbb eax, eax
or eax, 1
mov dword [0x100453990], eax
jmp 0x10042c408
mov rcx, r9
mov qword [rbp - 0x40], rdx
mov byte [rbp - 0x38], r10b
mov byte [rbp - 0x28], r8b
call sub.msys_2.0.dll_malloc
mov r9, rax
test rax, rax
je 0x10042ca55
movzx r8d, byte [rbp - 0x28]
movzx r10d, byte [rbp - 0x38]
mov rdx, qword [rbp - 0x40]
mov byte [rbp - 0x11], r8b
jmp 0x10042c4dd
call fcn.100410780
mov rcx, rbx
jmp 0x10042c3d9
cmp eax, 0x29
jne 0x10042c379
test rdi, rdi
je 0x10042c5b0
sub rdi, 1
add rsi, 4
jmp 0x10042c34b
mov eax, dword [rbp + 0x50]
sub eax, 0x3f
cmp eax, 1
jbe 0x10042c5c9
mov r12, rsi
sub r12, rdx
sar r12, 2
add r12, 1
mov rdi, r12
xor ecx, ecx
lea rax, [rbx + 0x10]
shr rdi, 0x3e
setne cl
shl r12, 2
js 0x10042ca55
test rcx, rcx
jne 0x10042ca55
add rax, r12
jo 0x10042ca55
cmp rax, 0xfbf
lea rcx, [r12 + 0x10]
setg r15b
jg 0x10042c800
lea rax, [r12 + 0x1f]
add rbx, rcx
and rax, 0xfffffffffffffff0
call fcn.100431810
sub rsp, rax
lea rdi, [rsp + 0x40]
movzx r15d, r15b
mov qword [rdi], 0
mov r8, rsi
lea rcx, [rdi + 0xc]
mov dword [rdi + 8], r15d
sub r8, rdx
sar r8, 2
call fcn.1004312d0
mov dword [rax], 0
mov qword [r13], rdi
mov r10, qword [rbp - 8]
test r10, r10
je 0x10042ca36
cmp dword [rsi], 0x29
jne 0x10042ca17
lea rax, [rsi + 4]
mov qword [rbp - 0x28], rax
mov eax, dword [rbp + 0x50]
sub eax, 0x21
cmp eax, 0x1f
ja case.0x10042c68a.34
lea rdx, [0x10043bcc8]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov qword [rbp - 0x38], r10
mov rdx, r14
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], 0
mov eax, dword [rbp + 0x78]
mov dword [rsp + 0x20], eax
movzx r9d, byte [rbp - 0x20]
mov r8, qword [rbp + 0x68]
mov rcx, qword [rbp - 0x28]
call fcn.10042ca60
mov r10, qword [rbp - 0x38]
test eax, eax
je 0x10042c7f2
mov edi, dword [rbp + 0x78]
movzx eax, byte [rbp - 0x30]
mov rsi, qword [rbp + 0x68]
and edi, 0xfffffffb
test byte [rbp + 0x78], 1
cmovne edi, dword [rbp + 0x78]
mov dword [rbp - 0x20], eax
mov rax, r10
mov rdx, qword [rbp + 0x58]
mov r15, r14
lea r13, [rax + 0xc]
sub rdx, 4
mov qword [rbp - 0x30], rdx
mov edx, dword [rbp + 0x78]
and edx, 5
mov dword [rbp - 0x38], edx
cmp rsi, r14
jb 0x10042c82f
mov qword [rbp - 0x40], rax
jmp 0x10042c795
xor r9d, r9d
cmp dword [r15 - 4], 0x2f
jne 0x10042c725
xor r9d, r9d
cmp dword [rbp - 0x38], 5
sete r9b
mov qword [rsp + 0x30], rbx
mov r8, rsi
mov rdx, r15
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
mov rcx, qword [rbp - 0x28]
call fcn.10042ca60
test eax, eax
je 0x10042c7f2
cmp dword [r15 - 4], 0x2f
jne 0x10042c760
xor r12d, r12d
cmp dword [rbp - 0x38], 5
sete r12b
mov qword [rsp + 0x30], rbx
mov r9d, r12d
mov r8, rsi
mov rdx, r15
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
mov rcx, qword [rbp - 0x30]
call fcn.10042ca60
test eax, eax
je 0x10042c7f2
add r15, 4
cmp rsi, r15
jb 0x10042c82b
mov qword [rsp + 0x30], rbx
mov r8, r15
mov rdx, r14
mov rcx, r13
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
mov r9d, dword [rbp - 0x20]
call fcn.10042ca60
mov r12d, eax
test eax, eax
jne 0x10042c788
cmp r14, r15
jne 0x10042c710
mov qword [rsp + 0x30], rbx
mov r8, rsi
mov rdx, r14
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
mov r9d, dword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
call fcn.10042ca60
test eax, eax
jne 0x10042c788
xor esi, esi
jmp 0x10042c3b5
mov byte [rbp - 0x38], r8b
mov qword [rbp - 0x28], rdx
call sub.msys_2.0.dll_malloc
mov rdx, qword [rbp - 0x28]
movzx r8d, byte [rbp - 0x38]
test rax, rax
mov rdi, rax
je 0x10042ca55
mov byte [rbp - 0x11], r8b
jmp 0x10042c623
mov rax, qword [rbp - 0x40]
mov rax, qword [rax]
mov qword [rbp - 8], rax
test rax, rax
jne 0x10042c6e2
jmp 0x10042c99b
lea r9, str.___Invalid_extended_matching_operator_
lea r8, str.ext_wmatch
mov edx, 0x498
lea rcx, str.fnmatch_loop.c
call sub.msys_2.0.dll___assert_func
nop dword [rax + rax]
movzx edi, byte [rbp - 0x20]
mov esi, dword [rbp + 0x78]
mov r13, qword [rbp - 0x28]
mov r12, r10
mov r15, qword [rbp + 0x68]
and esi, 0xfffffffb
test byte [rbp + 0x78], 1
cmovne esi, dword [rbp + 0x78]
jmp 0x10042c8a1
mov r12, qword [r12]
mov qword [rbp - 8], r12
test r12, r12
je 0x10042c99b
lea rcx, [r12 + 0xc]
mov rdx, r13
call fcn.1004312f0
mov qword [rsp + 0x30], rbx
mov r9d, edi
mov r8, r15
mov qword [rsp + 0x28], 0
mov rcx, rax
mov rdx, r14
mov dword [rsp + 0x20], esi
call fcn.10042ca60
test eax, eax
jne 0x10042c890
xor esi, esi
jmp 0x10042c3b5
mov qword [rbp - 0x30], r10
movzx edi, byte [rbp - 0x20]
mov rdx, r14
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], 0
mov eax, dword [rbp + 0x78]
mov r9d, edi
mov dword [rsp + 0x20], eax
mov r8, qword [rbp + 0x68]
mov rcx, qword [rbp - 0x28]
call fcn.10042ca60
mov r10, qword [rbp - 0x30]
test eax, eax
jne 0x10042c86c
xor esi, esi
jmp 0x10042c3b5
cmp qword [rbp + 0x68], r14
jb 0x10042c99b
mov eax, dword [rbp + 0x78]
mov r15d, dword [rbp + 0x78]
movzx esi, byte [rbp - 0x20]
mov r13, qword [rbp + 0x68]
mov qword [rbp - 0x20], r10
not eax
and r15d, 0xfffffffb
and eax, 1
mov edi, r15d
cmove edi, dword [rbp + 0x78]
mov dword [rbp - 0x38], r15d
mov dword [rbp - 0x30], eax
mov r15, r14
nop dword [rax + rax]
mov r12, qword [rbp - 0x20]
jmp 0x10042c969
mov r12, qword [r12]
test r12, r12
je 0x10042c9a8
mov qword [rsp + 0x30], rbx
lea rcx, [r12 + 0xc]
mov r9d, esi
mov r8, r15
mov qword [rsp + 0x28], 0
mov rdx, r14
mov dword [rsp + 0x20], edi
call fcn.10042ca60
test eax, eax
jne 0x10042c960
add r15, 4
cmp r13, r15
jae 0x10042c958
mov esi, 1
jmp 0x10042c3b5
mov eax, dword [rbp - 0x30]
test eax, eax
je 0x10042c9f0
mov eax, dword [rbp - 0x38]
cmp r14, r15
je 0x10042ca12
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov r8, r13
mov rdx, r15
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
mov rcx, qword [rbp - 0x28]
call fcn.10042ca60
test eax, eax
jne 0x10042c992
xor esi, esi
jmp 0x10042c3b5
mov eax, dword [rbp + 0x78]
cmp r14, r15
je 0x10042ca12
xor r9d, r9d
cmp dword [r15 - 4], 0x2f
jne 0x10042c9ba
mov ecx, eax
xor r9d, r9d
not ecx
and ecx, 5
sete r9b
jmp 0x10042c9ba
mov r9d, esi
jmp 0x10042c9ba
lea r9, str.p__1___L____
lea r8, str.ext_wmatch
mov edx, 0x437
lea rcx, str.fnmatch_loop.c
call sub.msys_2.0.dll___assert_func
lea r9, str.list___NULL
lea r8, str.ext_wmatch
mov edx, 0x436
lea rcx, str.fnmatch_loop.c
call sub.msys_2.0.dll___assert_func
mov esi, 0xfffffffe
jmp 0x10042c3b5