Function at 0x45ba00
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test r8, r8
mov ebp, ecx
mov r15, rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
je 0x45bd4a
mov r14d, dword [0x004623dc]
test r14d, r14d
je 0x45bcb5
cmp dword [0x004623c0], 0xffffffff
je 0x45bc70
mov r13d, dword [0x004812d8]
xor eax, eax
test r13d, r13d
jne 0x45bc70
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rcx]
cmp dl, 0x2d
je 0x45bca2
mov r12d, dword [0x004623c0]
test r12d, r12d
jne 0x45bcd0
cmp dl, 0x2b
je 0x45be05
test eax, eax
mov qword [0x004812d0], 0
je 0x45baa4
mov dword [0x004623c4], 0xffffffff
mov dword [0x004623c8], 0xffffffff
mov r13d, dword [rsp + 0xb8]
mov r12d, dword [rsp + 0xb8]
and r13d, 2
and r12d, 1
jmp 0x45bb39
lea rax, [0x00474675]
test r13d, r13d
mov qword [0x004623d0], rax
mov eax, r13d
jne 0x45bd60
test r12d, r12d
je 0x45bd4a
mov esi, dword [0x004623c8]
cmp esi, 0xffffffff
je 0x45bcf0
mov edi, dword [0x004623c4]
mov r8d, ebx
cmp edi, 0xffffffff
je 0x45bb2f
mov ecx, esi
mov r9, r15
mov edx, edi
call fcn.0045b570
mov ebx, dword [0x004623dc]
sub esi, edi
mov eax, dword [0x004812d8]
mov dword [0x004623c4], 0xffffffff
add esi, ebx
mov r8d, ebx
mov dword [0x004623c8], esi
lea ebx, [r8 + 1]
mov dword [0x004623dc], ebx
test eax, eax
jne 0x45bb50
mov rax, qword [0x004623d0]
movsx edi, byte [rax]
test dil, dil
jne 0x45bdfd
mov ebx, dword [0x004623dc]
mov dword [0x004812d8], 0
cmp ebx, ebp
jge 0x45bd00
movsxd rax, ebx
mov rsi, qword [r15 + rax*8]
movsx edi, byte [rsi]
mov qword [0x004623d0], rsi
cmp dil, 0x2d
jne 0x45bac0
movzx r14d, byte [rsi + 1]
test r14b, r14b
jne 0x45bba5
mov rcx, qword [rsp + 0x30]
mov edx, 0x2d
call sub.msvcrt.dll_strchr
test rax, rax
je 0x45bac0
mov eax, dword [0x004623c8]
cmp eax, 0xffffffff
je 0x45bbbd
cmp dword [0x004623c4], 0xffffffff
je 0x45bf15
test r14b, r14b
je 0x45bed6
lea rdx, [rsi + 1]
cmp r14b, 0x2d
movsx edi, r14b
mov qword [0x004623d0], rdx
mov r12, rdx
je 0x45bf5e
cmp qword [rsp + 0x38], 0
je 0x45bd96
movsxd rax, dword [0x004623dc]
cmp qword [r15 + rax*8], r12
je 0x45bd96
cmp dil, 0x2d
je 0x45bf03
test byte [rsp + 0xb8], 4
je 0x45bd96
xor eax, eax
cmp dil, 0x3a
je 0x45bc36
mov rcx, qword [rsp + 0x30]
movsx edx, dil
call sub.msvcrt.dll_strchr
test rax, rax
setne al
movzx eax, al
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0x38]
mov rcx, r15
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
call fcn.0045b6b0
cmp eax, 0xffffffff
je 0x45bd8a
lea rcx, [0x00474675]
mov qword [0x004623d0], rcx
jmp 0x45bd4f
lea rcx, str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
mov rcx, qword [rsp + 0x30]
test rax, rax
setne al
movzx eax, al
movzx edx, byte [rcx]
mov dword [0x004623c0], eax
mov eax, dword [0x004812d8]
cmp dl, 0x2d
jne 0x45ba68
or dword [rsp + 0xb8], 2
add qword [rsp + 0x30], 1
jmp 0x45ba81
mov dword [0x004812d8], 1
mov dword [0x004623dc], 1
jmp 0x45ba38
and dword [rsp + 0xb8], 0xfffffffe
cmp dl, 0x2b
jne 0x45ba81
add qword [rsp + 0x30], 1
jmp 0x45ba81
mov dword [0x004623c8], ebx
mov r8d, ebx
jmp 0x45bb2f
mov esi, dword [0x004623c4]
lea rax, [0x00474675]
mov qword [0x004623d0], rax
cmp esi, 0xffffffff
je 0x45bd77
mov edi, dword [0x004623c8]
mov r9, r15
mov r8d, ebx
mov edx, esi
mov ecx, edi
sub edi, esi
call fcn.0045b570
add dword [0x004623dc], edi
mov dword [0x004623c4], 0xffffffff
mov dword [0x004623c8], 0xffffffff
mov eax, 0xffffffff
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add ebx, 1
mov qword [0x004812d0], rsi
mov eax, 1
mov dword [0x004623dc], ebx
jmp 0x45bd4f
mov eax, dword [0x004623c8]
cmp eax, 0xffffffff
je 0x45bd36
mov dword [0x004623dc], eax
jmp 0x45bd36
mov r12, qword [0x004623d0]
movsx edi, byte [r12]
lea rbx, [r12 + 1]
cmp edi, 0x3a
mov qword [0x004623d0], rbx
je 0x45be95
cmp edi, 0x2d
je 0x45bede
mov rcx, qword [rsp + 0x30]
mov edx, edi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x45be95
cmp edi, 0x57
movzx edx, byte [rax + 1]
jne 0x45bdda
cmp qword [rsp + 0x38], 0
jne 0x45be18
cmp dl, 0x3a
je 0x45bf20
cmp byte [r12 + 1], 0
mov eax, edi
jne 0x45bd4f
add dword [0x004623dc], 1
jmp 0x45bd4f
mov r12, rax
jmp 0x45bbe2
and dword [rsp + 0xb8], 0xfffffffe
add qword [rsp + 0x30], 1
jmp 0x45ba81
cmp dl, 0x3b
jne 0x45bdda
cmp byte [r12 + 1], 0
jne 0x45c029
mov eax, dword [0x004623dc]
add eax, 1
cmp ebp, eax
mov dword [0x004623dc], eax
jg 0x45c01c
mov esi, dword [0x004623e0]
lea rax, [0x00474675]
mov qword [0x004623d0], rax
test esi, esi
je 0x45be73
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0x3a
je 0x45be73
lea rcx, str.option_requires_an_argument_____c
mov edx, 0x57
call fcn.0045b630
mov rax, qword [rsp + 0x30]
mov dword [0x004623d8], 0x57
cmp byte [rax], 0x3a
je 0x45c012
mov eax, 0x3f
jmp 0x45bd4f
cmp byte [r12 + 1], 0
jne 0x45bea4
add dword [0x004623dc], 1
mov ebp, dword [0x004623e0]
test ebp, ebp
je 0x45bec6
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0x3a
je 0x45bec6
lea rcx, str.unknown_option_____c
mov edx, edi
call fcn.0045b630
mov dword [0x004623d8], edi
mov eax, 0x3f
jmp 0x45bd4f
mov r12, rsi
jmp 0x45bbe2
cmp byte [r12 + 1], 0
jne 0x45bea4
mov rcx, qword [rsp + 0x30]
mov edx, 0x2d
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x45bdc9
jmp 0x45bd4a
add r12, 1
xor eax, eax
mov qword [0x004623d0], r12
jmp 0x45bc36
mov dword [0x004623c4], ebx
jmp 0x45bbbd
mov qword [0x004812d0], 0
cmp byte [r12 + 1], 0
je 0x45bfb1
mov eax, dword [0x004623dc]
mov qword [0x004812d0], rbx
lea rcx, [0x00474675]
add eax, 1
mov dword [0x004623dc], eax
mov eax, edi
mov qword [0x004623d0], rcx
jmp 0x45bd4f
cmp byte [rsi + 2], 0
jne 0x45bbe2
mov esi, dword [0x004623c4]
lea r8d, [rbx + 1]
lea rcx, [0x00474675]
mov dword [0x004623dc], r8d
mov qword [0x004623d0], rcx
cmp esi, 0xffffffff
je 0x45bd36
mov ecx, eax
mov r9, r15
mov edx, esi
mov dword [rsp + 0x30], eax
call fcn.0045b570
mov eax, dword [rsp + 0x30]
sub eax, esi
add dword [0x004623dc], eax
jmp 0x45bd36
cmp byte [rax + 2], 0x3a
mov eax, dword [0x004623dc]
je 0x45bf40
add eax, 1
cmp ebp, eax
mov dword [0x004623dc], eax
jg 0x45c050
mov ebx, dword [0x004623e0]
lea rax, [0x00474675]
mov qword [0x004623d0], rax
test ebx, ebx
je 0x45bffe
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0x3a
je 0x45bffe
lea rcx, str.option_requires_an_argument_____c
mov edx, edi
call fcn.0045b630
mov rax, qword [rsp + 0x30]
mov dword [0x004623d8], edi
cmp byte [rax], 0x3a
jne 0x45be8b
mov eax, 0x3a
jmp 0x45bd4f
cdqe
mov rax, qword [r15 + rax*8]
mov qword [0x004623d0], rax
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0x38]
mov rcx, r15
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
call fcn.0045b6b0
jmp 0x45bc5d
movsxd rdx, eax
mov rdx, qword [r15 + rdx*8]
mov qword [0x004812d0], rdx
jmp 0x45bf40