Function at 0x10042d680
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
xor r12d, r12d
movabs r15, 0xffffffff3ffff9fe
mov eax, dword [rbp + 0x70]
mov rbx, qword [rbp + 0x80]
mov edi, ecx
mov rcx, rdx
mov qword [rbp + 0x58], rdx
mov r14, r8
mov qword [rbp + 0x68], r9
lea r13, [rbp - 8]
mov dword [rbp - 0x20], eax
mov byte [rbp - 0x30], al
mov qword [rbp - 8], 0
call sub.msys_2.0.dll_strlen
mov byte [rbp - 0x11], 0
mov r10, rax
mov rax, qword [rbp + 0x58]
lea rsi, [rax + 1]
mov rdx, rsi
movzx eax, byte [rsi]
test al, al
je 0x10042d750
cmp al, 0x5b
je 0x10042d790
lea ecx, [rax - 0x21]
cmp cl, 0x1f
jbe 0x10042d720
cmp al, 0x7c
sete cl
test r12, r12
sete al
and cl, al
mov r8d, ecx
jne 0x10042d7f0
add rsi, 1
jmp 0x10042d6eb
bt r15, rcx
setb r8b
test r8b, r8b
jne 0x10042d920
movzx eax, byte [rsi + 1]
add rsi, 1
cmp al, 0x28
sete al
movzx eax, al
add r12, rax
movzx eax, byte [rsi]
test al, al
jne 0x10042d6f2
nop dword [rax + rax]
mov esi, 0xffffffff
cmp byte [rbp - 0x11], 0
je 0x10042d77d
mov rcx, qword [rbp - 8]
jmp 0x10042d778
cmp byte [rcx + 8], 0
mov rbx, qword [rcx]
jne 0x10042d910
mov rcx, rbx
test rcx, rcx
jne 0x10042d768
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 0x10042d8a0
movzx eax, byte [rsi + 1]
cmp al, 0x21
je 0x10042d7e0
mov ecx, dword [0x100453990]
test ecx, ecx
jns 0x10042d7b6
cmp al, 0x5e
je 0x10042d7e0
add rsi, 1
cmp al, 0x5d
sete al
movzx eax, al
add rsi, rax
nop dword [rax]
movzx eax, byte [rsi]
add rsi, 1
cmp al, 0x5d
je 0x10042d6eb
test al, al
jne 0x10042d7c8
jmp 0x10042d750
movzx eax, byte [rsi + 2]
add rsi, 2
jmp 0x10042d7ba
mov rax, rsi
lea ecx, [rdi - 0x3f]
sub rax, rdx
add rax, 1
cmp ecx, 1
lea rcx, [rbx + 0x10]
cmovbe rax, r10
test rax, rax
js 0x10042ddc5
xor r12d, r12d
add rcx, rax
seto r12b
jo 0x10042ddc5
cmp rcx, 0xfbf
lea r9, [rax + 0x10]
setg r11b
jg 0x10042d8d0
add rax, 0x1f
add rbx, r9
and rax, 0xfffffffffffffff0
call fcn.100431810
sub rsp, rax
lea r9, [rsp + 0x40]
mov qword [r9], 0
mov r8, rsi
lea rcx, [r9 + 9]
mov byte [r9 + 8], r11b
sub r8, rdx
mov qword [rbp - 0x40], r10
mov qword [rbp - 0x38], r9
mov qword [rbp - 0x28], r8
call sub.msys_2.0.dll_memcpy
mov r9, qword [rbp - 0x38]
mov r8, qword [rbp - 0x28]
lea rdx, [rsi + 1]
mov r10, qword [rbp - 0x40]
mov rsi, rdx
mov byte [rax + r8], 0
mov qword [r13], r9
mov r13, r9
jmp 0x10042d6eb
lea rcx, str.POSIXLY_CORRECT
mov qword [rbp - 0x38], r10
mov qword [rbp - 0x28], rdx
call sub.msys_2.0.dll_getenv
mov r10, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x28]
cmp rax, 1
sbb eax, eax
or eax, 1
mov dword [0x100453990], eax
jmp 0x10042d7a0
mov rcx, r9
mov qword [rbp - 0x48], r10
mov qword [rbp - 0x40], rdx
mov byte [rbp - 0x38], r11b
mov byte [rbp - 0x28], r8b
call sub.msys_2.0.dll_malloc
mov r9, rax
test rax, rax
je 0x10042ddc5
movzx r8d, byte [rbp - 0x28]
movzx r11d, byte [rbp - 0x38]
mov rdx, qword [rbp - 0x40]
mov r10, qword [rbp - 0x48]
mov byte [rbp - 0x11], r8b
jmp 0x10042d84e
call fcn.100410780
mov rcx, rbx
jmp 0x10042d778
cmp al, 0x29
jne 0x10042d718
test r12, r12
je 0x10042d940
sub r12, 1
add rsi, 1
jmp 0x10042d6eb
mov rax, rsi
lea ecx, [rdi - 0x3f]
sub rax, rdx
add rax, 1
cmp ecx, 1
lea rcx, [rbx + 0x10]
cmovbe rax, r10
test rax, rax
js 0x10042ddc5
add rcx, rax
jo 0x10042ddc5
cmp rcx, 0xfbf
lea r9, [rax + 0x10]
setg r15b
jg 0x10042db70
add rax, 0x1f
add rbx, r9
and rax, 0xfffffffffffffff0
call fcn.100431810
sub rsp, rax
lea r12, [rsp + 0x40]
mov byte [r12 + 8], r15b
mov r15, rsi
lea rcx, [r12 + 9]
mov qword [r12], 0
sub r15, rdx
mov r8, r15
call sub.msys_2.0.dll_memcpy
mov qword [r13], r12
mov r10, qword [rbp - 8]
mov byte [rax + r15], 0
test r10, r10
je 0x10042dda6
cmp byte [rsi], 0x29
jne 0x10042dd87
lea rax, [rsi + 1]
sub edi, 0x21
mov qword [rbp - 0x28], rax
cmp edi, 0x1f
ja case.0x10042d9f8.34
lea rdx, [0x10043be38]
movsxd rax, dword [rdx + rdi*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.10042ddd0
mov r10, qword [rbp - 0x38]
test eax, eax
je 0x10042db62
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 + 9]
sub rdx, 1
mov qword [rbp - 0x30], rdx
mov edx, dword [rbp + 0x78]
and edx, 5
mov dword [rbp - 0x38], edx
cmp rsi, r14
jb 0x10042dba2
mov qword [rbp - 0x40], rax
jmp 0x10042db05
xor r9d, r9d
cmp byte [r15 - 1], 0x2f
jne 0x10042da95
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.10042ddd0
test eax, eax
je 0x10042db62
cmp byte [r15 - 1], 0x2f
jne 0x10042dad0
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.10042ddd0
test eax, eax
je 0x10042db62
add r15, 1
cmp rsi, r15
jb 0x10042db9e
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.10042ddd0
mov r12d, eax
test eax, eax
jne 0x10042daf8
cmp r14, r15
jne 0x10042da80
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.10042ddd0
test eax, eax
jne 0x10042daf8
xor esi, esi
jmp 0x10042d755
mov rcx, r9
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 r12, rax
je 0x10042ddc5
mov byte [rbp - 0x11], r8b
jmp 0x10042d997
mov rax, qword [rbp - 0x40]
mov rax, qword [rax]
mov qword [rbp - 8], rax
test rax, rax
jne 0x10042da50
jmp 0x10042dd0b
lea r9, str.___Invalid_extended_matching_operator_
lea r8, str.ext_match
mov edx, 0x498
lea rcx, str.fnmatch_loop.c
call sub.msys_2.0.dll___assert_func
nop word cs:[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 0x10042dc11
mov r12, qword [r12]
mov qword [rbp - 8], r12
test r12, r12
je 0x10042dd0b
lea rcx, [r12 + 9]
mov rdx, r13
call sub.msys_2.0.dll_strcat
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.10042ddd0
test eax, eax
jne 0x10042dc00
xor esi, esi
jmp 0x10042d755
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.10042ddd0
mov r10, qword [rbp - 0x30]
test eax, eax
jne 0x10042dbe4
xor esi, esi
jmp 0x10042d755
cmp qword [rbp + 0x68], r14
jb 0x10042dd0b
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 0x10042dcd9
mov r12, qword [r12]
test r12, r12
je 0x10042dd18
mov qword [rsp + 0x30], rbx
lea rcx, [r12 + 9]
mov r9d, esi
mov r8, r15
mov qword [rsp + 0x28], 0
mov rdx, r14
mov dword [rsp + 0x20], edi
call fcn.10042ddd0
test eax, eax
jne 0x10042dcd0
add r15, 1
cmp r13, r15
jae 0x10042dcc8
mov esi, 1
jmp 0x10042d755
mov eax, dword [rbp - 0x30]
test eax, eax
je 0x10042dd60
mov eax, dword [rbp - 0x38]
cmp r14, r15
je 0x10042dd82
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.10042ddd0
test eax, eax
jne 0x10042dd02
xor esi, esi
jmp 0x10042d755
mov eax, dword [rbp + 0x78]
cmp r14, r15
je 0x10042dd82
xor r9d, r9d
cmp byte [r15 - 1], 0x2f
jne 0x10042dd2a
mov ecx, eax
xor r9d, r9d
not ecx
and ecx, 5
sete r9b
jmp 0x10042dd2a
mov r9d, esi
jmp 0x10042dd2a
lea r9, str.p__1___L____
lea r8, str.ext_match
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_match
mov edx, 0x436
lea rcx, str.fnmatch_loop.c
call sub.msys_2.0.dll___assert_func
mov esi, 0xfffffffe
jmp 0x10042d755