Function at 0x1400095d3
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
lea rcx, str.LIBUSB_DEBUG
call sym.getenv
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x14], 0
lea rcx, [0x140130f00]
call sym.usbi_mutex_static_lock
cmp qword [rbp + 0x10], 0
jne 0x14000963a
mov rax, qword [0x140130ef0]
test rax, rax
je 0x14000963a
mov eax, dword [0x140130efc]
add eax, 1
mov dword [0x140130efc], eax
lea rcx, [0x140130f00]
call sym.usbi_mutex_static_unlock
mov eax, 0
jmp 0x1400098ea
mov ecx, 0x100
call sym.malloc
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x14000965b
mov dword [rbp - 0x14], 0xfffffff5
jmp 0x1400098db
mov rax, qword [rbp - 0x28]
mov r8d, 0x100
mov edx, 0
mov rcx, rax
call sym.memset
cmp qword [rbp - 0x20], 0
je 0x1400096a0
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.atoi
mov rdx, qword [rbp - 0x28]
mov dword [rdx], eax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
test eax, eax
je 0x1400096a0
mov rax, qword [rbp - 0x28]
mov dword [rax + 4], 1
mov rax, qword [rbp - 0x28]
add rax, 0x20
mov edx, 0
mov rcx, rax
call sym.usbi_mutex_init
mov rax, qword [rbp - 0x28]
add rax, 0x38
mov edx, 0
mov rcx, rax
call sym.usbi_mutex_init
mov rax, qword [rbp - 0x28]
add rax, 0x50
mov edx, 0
mov rcx, rax
call sym.usbi_mutex_init
mov rax, qword [rbp - 0x28]
add rax, 0x10
mov rcx, rax
call sym.list_init_1
mov rax, qword [rbp - 0x28]
add rax, 0x28
mov rcx, rax
call sym.list_init_1
mov rax, qword [rbp - 0x28]
add rax, 0x40
mov rcx, rax
call sym.list_init_1
mov rax, qword [0x14011c200]
mov rax, qword [rax + 8]
test rax, rax
je 0x140009740
mov rax, qword [0x14011c200]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x28]
mov rcx, rax
call rdx
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x140009843
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.usbi_io_init
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jns 0x14000977b
mov rax, qword [0x14011c200]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140009820
mov rax, qword [0x14011c200]
mov rax, qword [rax + 0x10]
call rax
jmp 0x140009820
cmp qword [rbp + 0x10], 0
je 0x14000978f
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x28]
mov qword [rax], rdx
jmp 0x1400097b5
mov rax, qword [0x140130ef0]
test rax, rax
jne 0x1400097b5
mov rax, qword [rbp - 0x28]
mov qword [0x140130ef0], rax
mov eax, dword [0x140130efc]
add eax, 1
mov dword [0x140130efc], eax
lea rcx, [0x140130f00]
call sym.usbi_mutex_static_unlock
lea rcx, [0x140130ef8]
call sym.usbi_mutex_static_lock
mov eax, dword [0x1400f8c00]
test eax, eax
je 0x1400097f0
mov dword [0x1400f8c00], 0
lea rax, [0x140133970]
mov rcx, rax
call sym.list_init_1
mov rax, qword [rbp - 0x28]
lea rcx, [rax + 0xf0]
lea rax, [0x140133970]
mov rdx, rax
call sym.list_add
lea rcx, [0x140130ef8]
call sym.usbi_mutex_static_unlock
mov eax, 0
jmp 0x1400098ea
nop
mov rax, qword [rbp - 0x28]
add rax, 0x38
mov rcx, rax
call sym.usbi_mutex_destroy
mov rax, qword [rbp - 0x28]
add rax, 0x20
mov rcx, rax
call sym.usbi_mutex_destroy
jmp 0x140009844
nop
mov rax, qword [rbp - 0x28]
add rax, 0x20
mov rcx, rax
call sym.usbi_mutex_lock
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 0x18]
sub rax, 0x20
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
sub rax, 0x20
mov qword [rbp - 0x10], rax
jmp 0x1400098aa
mov rax, qword [rbp - 8]
add rax, 0x20
mov rcx, rax
call sym.list_del
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.libusb_unref_device
mov rax, qword [rbp - 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
sub rax, 0x20
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
lea rdx, [rax + 0x20]
mov rax, qword [rbp - 0x28]
add rax, 0x10
cmp rdx, rax
jne 0x140009876
mov rax, qword [rbp - 0x28]
add rax, 0x20
mov rcx, rax
call sym.usbi_mutex_unlock
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.free
lea rcx, [0x140130f00]
call sym.usbi_mutex_static_unlock
mov eax, dword [rbp - 0x14]
add rsp, 0x50
pop rbp
ret