Function at 0x1400bd110
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov qword [rbp - 0x18], 0
lea rax, str.POSIXLY_CORRECT
mov rcx, rax
call sym.getenv
test rax, rax
je 0x1400bd14d
mov dword [rbp - 4], 1
jmp 0x1400bd193
mov dword [rbp - 4], 1
jmp 0x1400bd176
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
movzx eax, byte [rax]
cmp al, 0x2d
je 0x1400bd192
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
test rax, rax
jne 0x1400bd156
jmp 0x1400bd193
nop
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
test rax, rax
je 0x1400bd1c9
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
movzx eax, byte [rax]
cmp al, 0x2d
je 0x1400bd1d3
mov eax, 0
jmp 0x1400bd7a8
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
lea rdx, [0x140101dbd]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x1400bd21b
mov ecx, dword [rbp - 4]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov r8d, ecx
mov rcx, rax
call dbg.consume_option
mov eax, 0
jmp 0x1400bd7a8
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
add rax, 1
movzx eax, byte [rax]
cmp al, 0x2d
jne 0x1400bd3c8
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
test eax, eax
je 0x1400bd26c
mov r8d, 0x38
lea rax, str..._.._cgminer_4.9.1_ccan_opt_parse.c
mov rdx, rax
lea rax, str.offset__0
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__assert]
call rax
lea rdx, [rbp - 0x28]
lea rax, [rbp - 0x24]
mov rcx, rax
call dbg.first_lopt
mov qword [rbp - 0x10], rax
jmp 0x1400bd347
mov eax, dword [rbp - 0x28]
mov r8d, eax
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
lea rcx, [rax + 2]
mov rax, qword [rbp - 0x10]
mov rdx, rax
call sym.strncmp
test eax, eax
jne 0x1400bd32b
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp - 0x28]
add edx, 2
mov edx, edx
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x3d
jne 0x1400bd302
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp - 0x28]
mov edx, edx
add rdx, 3
add rax, rdx
mov qword [rbp - 0x18], rax
jmp 0x1400bd354
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp - 0x28]
add edx, 2
mov edx, edx
add rax, rdx
movzx eax, byte [rax]
test al, al
je 0x1400bd354
jmp 0x1400bd32c
nop
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x24]
mov rax, qword [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call dbg.next_lopt
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400bd285
jmp 0x1400bd355
nop
cmp qword [rbp - 0x10], 0
jne 0x1400bd3b5
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
mov rcx, rax
call sym.strlen
mov r9d, eax
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov r8, qword [rax]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x28]
lea rcx, str.unrecognized_option
mov qword [rsp + 0x20], rcx
mov rcx, rax
call dbg.parse_err
jmp 0x1400bd7a8
sub qword [rbp - 0x10], 2
mov eax, dword [rbp - 0x28]
add eax, 2
mov dword [rbp - 0x28], eax
jmp 0x1400bd4a4
lea rax, [rbp - 0x24]
mov rcx, rax
call dbg.first_sopt
mov qword [rbp - 0x10], rax
jmp 0x1400bd431
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rdx, qword [rax]
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
add eax, 1
mov eax, eax
add rax, rdx
movzx edx, byte [rax]
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
cmp dl, al
jne 0x1400bd41c
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
lea edx, [rax + 1]
mov rax, qword [rbp + 0x20]
mov dword [rax], edx
jmp 0x1400bd438
nop
lea rdx, [rbp - 0x24]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call dbg.next_sopt
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400bd3da
cmp qword [rbp - 0x10], 0
jne 0x1400bd498
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
mov rcx, rax
call sym.strlen
mov r9d, eax
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov r8, qword [rax]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x28]
lea rcx, str.unrecognized_option
mov qword [rsp + 0x20], rcx
mov rcx, rax
call dbg.parse_err
jmp 0x1400bd7a8
sub qword [rbp - 0x10], 1
mov dword [rbp - 0x28], 2
mov rax, qword [0x14011bf40]
mov rdx, qword [rax]
mov eax, dword [rbp - 0x24]
mov ecx, eax
mov rax, rcx
shl rax, 3
sub rax, rcx
shl rax, 3
add rax, rdx
mov eax, dword [rax + 8]
cmp eax, 1
jne 0x1400bd55a
cmp qword [rbp - 0x18], 0
je 0x1400bd503
mov r9d, dword [rbp - 0x28]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
mov r8, qword [rbp - 0x10]
mov rax, qword [rbp + 0x28]
lea rcx, str.doesnt_allow_an_argument
mov qword [rsp + 0x20], rcx
mov rcx, rax
call dbg.parse_err
jmp 0x1400bd7a8
mov rax, qword [0x14011bf40]
mov rdx, qword [rax]
mov eax, dword [rbp - 0x24]
mov ecx, eax
mov rax, rcx
shl rax, 3
sub rax, rcx
shl rax, 3
add rax, rdx
mov rdx, qword [rax + 0x10]
mov rax, qword [0x14011bf40]
mov rcx, qword [rax]
mov eax, dword [rbp - 0x24]
mov r8d, eax
mov rax, r8
shl rax, 3
sub rax, r8
shl rax, 3
add rax, rcx
mov rax, qword [rax + 0x28]
mov rcx, rax
call rdx
mov qword [rbp - 0x20], rax
jmp 0x1400bd6cc
cmp qword [rbp - 0x18], 0
jne 0x1400bd5eb
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
test eax, eax
je 0x1400bd5cd
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rdx, qword [rax]
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
add eax, 1
mov eax, eax
add rax, rdx
movzx eax, byte [rax]
test al, al
je 0x1400bd5cd
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rdx, qword [rax]
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
mov eax, eax
add rax, 1
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x20]
mov dword [rax], 0
jmp 0x1400bd5eb
mov eax, dword [rbp - 4]
add eax, 1
mov eax, eax
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x1400bd61e
mov r9d, dword [rbp - 0x28]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
mov r8, qword [rbp - 0x10]
mov rax, qword [rbp + 0x28]
lea rcx, str.requires_an_argument
mov qword [rsp + 0x20], rcx
mov rcx, rax
call dbg.parse_err
jmp 0x1400bd7a8
mov rax, qword [0x14011bf40]
mov rdx, qword [rax]
mov eax, dword [rbp - 0x24]
mov ecx, eax
mov rax, rcx
shl rax, 3
sub rax, rcx
shl rax, 3
add rax, rdx
mov eax, dword [rax + 8]
cmp eax, 4
jne 0x1400bd676
mov rax, qword [0x14011bf40]
mov rdx, qword [rax]
mov eax, dword [rbp - 0x24]
mov ecx, eax
mov rax, rcx
shl rax, 3
sub rax, rcx
shl rax, 3
add rax, rdx
mov rdx, qword [rax + 0x28]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call dbg.opt_set_charp
mov rax, qword [0x14011bf40]
mov rdx, qword [rax]
mov eax, dword [rbp - 0x24]
mov ecx, eax
mov rax, rcx
shl rax, 3
sub rax, rcx
shl rax, 3
add rax, rdx
mov r8, qword [rax + 0x18]
mov rax, qword [0x14011bf40]
mov rdx, qword [rax]
mov eax, dword [rbp - 0x24]
mov ecx, eax
mov rax, rcx
shl rax, 3
sub rax, rcx
shl rax, 3
add rax, rdx
mov rdx, qword [rax + 0x28]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call r8
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x1400bd70d
mov r9d, dword [rbp - 0x28]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
mov r8, qword [rbp - 0x10]
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp - 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call dbg.parse_err
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.free
mov eax, 0xffffffff
jmp 0x1400bd7a8
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
test eax, eax
je 0x1400bd74b
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rdx, qword [rax]
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
add eax, 1
mov eax, eax
add rax, rdx
movzx eax, byte [rax]
test al, al
jne 0x1400bd74b
mov rax, qword [rbp + 0x20]
mov dword [rax], 0
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
test eax, eax
jne 0x1400bd7a3
mov ecx, dword [rbp - 4]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov r8d, ecx
mov rcx, rax
call dbg.consume_option
cmp qword [rbp - 0x18], 0
je 0x1400bd7a3
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov rax, qword [rax]
cmp qword [rbp - 0x18], rax
jne 0x1400bd7a3
mov ecx, dword [rbp - 4]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov r8d, ecx
mov rcx, rax
call dbg.consume_option
mov eax, 1
add rsp, 0x60
pop rbp
ret