Function at 0x52a200
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 esi, ecx
mov rbx, rdx
mov r13, r8
mov qword [rsp + 0xa8], r9
je 0x52a5ac
mov r9d, dword [0x00533cfc]
test r9d, r9d
je 0x52a405
cmp dword [0x00533ce0], 0xffffffff
je 0x52a419
mov eax, dword [0x00563148]
test eax, eax
jne 0x52a419
movzx edx, byte [r13]
cmp dl, 0x2d
je 0x52a448
mov r8d, dword [0x00533ce0]
test r8d, r8d
jne 0x52a5c4
cmp dl, 0x2b
je 0x52a5c4
sub edx, 0x2b
and edx, 0xfd
je 0x52a450
test eax, eax
mov qword [0x00563140], 0
je 0x52a2ad
mov dword [0x00533ce4], 0xffffffff
mov dword [0x00533ce8], 0xffffffff
mov edi, dword [rsp + 0xb8]
mov r12d, dword [rsp + 0xb8]
lea rbp, [0x0054f0f5]
and edi, 2
and r12d, 1
nop word [rax + rax]
test eax, eax
jne 0x52a2e8
mov r10, qword [0x00533cf0]
movzx r14d, byte [r10]
test r14b, r14b
jne 0x52a373
movsxd r8, dword [0x00533cfc]
mov dword [0x00563148], 0
cmp r8d, esi
jge 0x52a5d1
movsxd rax, r8d
mov r15, qword [rbx + rax*8]
cmp byte [r15], 0x2d
mov qword [0x00533cf0], r15
je 0x52a4c0
test edi, edi
mov qword [0x00533cf0], rbp
jne 0x52a603
test r12d, r12d
je 0x52a5ac
mov r14d, dword [0x00533ce8]
cmp r14d, 0xffffffff
je 0x52a4a2
mov r15d, dword [0x00533ce4]
cmp r15d, 0xffffffff
jne 0x52a460
mov r10, qword [0x00533cf0]
add r8d, 1
mov dword [0x00533cfc], r8d
movzx r14d, byte [r10]
test r14b, r14b
je 0x52a2e8
cmp qword [rsp + 0xa8], 0
je 0x52a627
movsxd rax, dword [0x00533cfc]
cmp qword [rbx + rax*8], r10
je 0x52a627
cmp r14b, 0x2d
je 0x52a785
test byte [rsp + 0xb8], 4
je 0x52a627
xor eax, eax
cmp r14b, 0x3a
je 0x52a3c8
movsx edx, r14b
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
setne al
movzx eax, al
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
mov rdx, r13
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.00529e60
cmp eax, 0xffffffff
mov edi, eax
je 0x52a61c
lea rax, [0x0054f0f5]
mov qword [0x00533cf0], rax
jmp 0x52a5b1
mov dword [0x00563148], 1
mov dword [0x00533cfc], 1
lea rcx, str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
movzx edx, byte [r13]
test rax, rax
setne al
movzx eax, al
mov dword [0x00533ce0], eax
mov eax, dword [0x00563148]
cmp dl, 0x2d
jne 0x52a262
or dword [rsp + 0xb8], 2
add r13, 1
jmp 0x52a28a
mov edx, r15d
mov ecx, r14d
mov r9, rbx
call fcn.00529d20
mov edx, dword [0x00533cfc]
mov eax, r15d
mov dword [0x00533ce4], 0xffffffff
sub eax, r14d
mov ecx, edx
add edx, 1
sub ecx, eax
mov dword [0x00533cfc], edx
mov eax, dword [0x00563148]
mov dword [0x00533ce8], ecx
jmp 0x52a2d0
mov dword [0x00533ce8], r8d
add r8d, 1
mov dword [0x00533cfc], r8d
jmp 0x52a2d4
movzx r14d, byte [r15 + 1]
test r14b, r14b
jne 0x52a73d
mov edx, 0x2d
mov rcx, r13
mov dword [rsp + 0x38], r8d
call sub.msvcrt.dll_strchr
test rax, rax
movsxd r8, dword [rsp + 0x38]
je 0x52a31a
mov edi, dword [0x00533ce8]
cmp edi, 0xffffffff
je 0x52a7e8
cmp dword [0x00533ce4], 0xffffffff
je 0x52a7a1
test r14b, r14b
jne 0x52a74c
lea rbp, [r15 + 1]
mov qword [0x00533cf0], rbp
cmp byte [r15 + 1], 0
jne 0x52a797
mov edx, 0x2d
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
je 0x52a5ac
mov r10, r15
mov edi, 0x2d
movzx edx, byte [rax + 1]
cmp dl, 0x3a
je 0x52a7ad
cmp byte [r10 + 1], 0
jne 0x52a5b1
add dword [0x00533cfc], 1
jmp 0x52a5b1
mov esi, dword [0x00533ce4]
lea rax, [0x0054f0f5]
add r8d, 1
mov dword [0x00533cfc], r8d
mov qword [0x00533cf0], rax
cmp esi, 0xffffffff
je 0x52a598
mov edx, esi
mov r9, rbx
mov ecx, edi
call fcn.00529d20
sub esi, edi
sub dword [0x00533cfc], esi
mov dword [0x00533ce4], 0xffffffff
mov dword [0x00533ce8], 0xffffffff
mov edi, 0xffffffff
mov eax, edi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
and dword [rsp + 0xb8], 0xfffffffe
jmp 0x52a27b
mov esi, dword [0x00533ce4]
lea rax, [0x0054f0f5]
mov edi, dword [0x00533ce8]
mov qword [0x00533cf0], rax
cmp esi, 0xffffffff
jne 0x52a584
mov eax, dword [0x00533ce8]
cmp eax, 0xffffffff
je 0x52a598
mov dword [0x00533cfc], eax
jmp 0x52a598
add r8d, 1
mov qword [0x00563140], r15
mov edi, 1
mov dword [0x00533cfc], r8d
jmp 0x52a5b1
mov r10, qword [0x00533cf0]
movzx r14d, byte [r10]
lea rbp, [r10 + 1]
movsx edi, r14b
cmp edi, 0x3a
mov qword [0x00533cf0], rbp
je 0x52a700
cmp edi, 0x2d
je 0x52a7f6
mov edx, edi
mov rcx, r13
mov qword [rsp + 0x38], r10
call sub.msvcrt.dll_strchr
test rax, rax
mov r10, qword [rsp + 0x38]
je 0x52a700
cmp qword [rsp + 0xa8], 0
je 0x52a543
cmp edi, 0x57
jne 0x52a543
movzx edx, byte [rax + 1]
cmp dl, 0x3b
jne 0x52a547
cmp byte [r10 + 1], 0
jne 0x52a86e
mov eax, dword [0x00533cfc]
add eax, 1
cmp esi, eax
mov dword [0x00533cfc], eax
jg 0x52a861
mov edx, dword [0x00533d00]
lea rax, [0x0054f0f5]
mov qword [0x00533cf0], rax
test edx, edx
je 0x52a6dc
cmp byte [r13], 0x3a
je 0x52a6dc
lea rcx, str.option_requires_an_argument_____c
mov edx, 0x57
call fcn.00529de0
mov dword [0x00533cf8], 0x57
cmp byte [r13], 0x3a
je 0x52a857
mov edi, 0x3f
jmp 0x52a5b1
cmp byte [r10 + 1], 0
jne 0x52a70e
add dword [0x00533cfc], 1
mov ecx, dword [0x00533d00]
test ecx, ecx
je 0x52a72d
cmp byte [r13], 0x3a
je 0x52a72d
lea rcx, str.unknown_option_____c
mov edx, edi
call fcn.00529de0
mov dword [0x00533cf8], edi
mov edi, 0x3f
jmp 0x52a5b1
mov edi, dword [0x00533ce8]
cmp edi, 0xffffffff
jne 0x52a4fd
lea r10, [r15 + 1]
cmp r14b, 0x2d
mov qword [0x00533cf0], r10
jne 0x52a373
cmp byte [r15 + 2], 0
je 0x52a560
cmp qword [rsp + 0xa8], 0
je 0x52a8ab
cmp r10, qword [rbx + r8*8]
je 0x52a627
add r10, 1
xor eax, eax
mov qword [0x00533cf0], r10
jmp 0x52a3c8
mov edi, 0x2d
jmp 0x52a70e
mov dword [0x00533ce4], r8d
jmp 0x52a50a
mov qword [0x00563140], 0
cmp byte [r10 + 1], 0
je 0x52a800
mov eax, dword [0x00533cfc]
mov qword [0x00563140], rbp
lea rsi, [0x0054f0f5]
add eax, 1
mov dword [0x00533cfc], eax
mov qword [0x00533cf0], rsi
jmp 0x52a5b1
lea rbp, [r15 + 1]
mov r10, r15
mov qword [0x00533cf0], rbp
mov r15, r10
jmp 0x52a51e
cmp byte [rax + 2], 0x3a
mov eax, dword [0x00533cfc]
je 0x52a7cc
add eax, 1
cmp esi, eax
mov dword [0x00533cfc], eax
jg 0x52a898
lea rax, [0x0054f0f5]
mov qword [0x00533cf0], rax
mov eax, dword [0x00533d00]
test eax, eax
je 0x52a846
cmp byte [r13], 0x3a
je 0x52a846
lea rcx, str.option_requires_an_argument_____c
mov edx, edi
call fcn.00529de0
mov dword [0x00533cf8], edi
cmp byte [r13], 0x3a
jne 0x52a6f1
mov edi, 0x3a
jmp 0x52a5b1
cdqe
mov rax, qword [rbx + rax*8]
mov qword [0x00533cf0], rax
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
mov rdx, r13
mov dword [rsp + 0x20], 0
mov rcx, rbx
call fcn.00529e60
mov edi, eax
jmp 0x52a3f2
movsxd rdx, eax
mov rdx, qword [rbx + rdx*8]
mov qword [0x00563140], rdx
jmp 0x52a7cc
lea rbp, [r15 + 2]
mov r15, r10
mov qword [0x00533cf0], rbp
jmp 0x52a51e