Function at 0x455690
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov eax, dword [0x00482218]
mov qword [0x004eb598], 0
test eax, eax
mov esi, ecx
mov r10, r8
mov r13, r9
jne 0x4557f8
mov dword [0x00482218], 1
mov eax, 1
lea rcx, str.POSIXLY_CORRECT
mov qword [rsp + 0xb0], r10
mov qword [rsp + 0xa8], rdx
mov dword [0x004eb5a0], eax
mov dword [0x004eb5a4], eax
mov qword [0x004eb5b8], 0
call sub.msvcrt.dll_getenv
mov r10, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov qword [0x004eb5a8], rax
movzx ecx, byte [r10]
cmp cl, 0x2d
je 0x4558b0
test rax, rax
sete al
cmp cl, 0x2b
movzx eax, al
jne 0x4558b9
mov dword [0x004eb590], 1
xor eax, eax
add r10, 1
mov dword [0x004eb5b0], eax
nop
mov r15, qword [0x004eb5b8]
test r15, r15
je 0x455810
movsx edi, byte [r15]
test dil, dil
je 0x455810
test r13, r13
je 0x455950
movsxd rax, dword [0x00482218]
mov r9, qword [rdx + rax*8]
mov rbp, rax
movzx ecx, byte [r9 + 1]
cmp cl, 0x2d
je 0x455a50
mov eax, dword [rsp + 0xc8]
test eax, eax
je 0x455950
cmp byte [r9 + 2], 0
jne 0x455a50
movzx r8d, byte [r10]
test r8b, r8b
je 0x455a50
mov eax, r8d
mov rbx, r10
jmp 0x4557d8
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x455a50
cmp al, cl
jne 0x4557c8
lea r14, [r15 + 1]
movzx ecx, byte [r15 + 1]
mov qword [0x004eb5b8], r14
jmp 0x45596d
mov ecx, dword [0x004eb590]
test ecx, ecx
je 0x4556d0
jmp 0x455750
mov ebp, dword [0x00482218]
cmp dword [0x004eb5a0], ebp
jle 0x455824
mov dword [0x004eb5a0], ebp
cmp ebp, dword [0x004eb5a4]
jge 0x455832
mov dword [0x004eb5a4], ebp
mov ebx, dword [0x004eb5b0]
cmp ebx, 1
je 0x4558d0
cmp esi, ebp
je 0x4558f8
movsxd rax, ebp
mov r9, qword [rdx + rax*8]
cmp byte [r9], 0x2d
jne 0x455918
cmp byte [r9 + 1], 0x2d
jne 0x455918
cmp byte [r9 + 2], 0
jne 0x455918
mov eax, dword [0x004eb5a4]
add ebp, 1
mov ecx, dword [0x004eb5a0]
mov dword [0x00482218], ebp
cmp eax, ecx
je 0x455e80
cmp ebp, ecx
je 0x45589f
mov rcx, rdx
call fcn.004555a0
mov eax, dword [0x004eb5a4]
mov dword [0x004eb5a0], esi
mov dword [0x00482218], esi
jmp 0x455904
add r10, 1
mov eax, 2
mov dword [0x004eb5b0], eax
mov dword [0x004eb590], 1
jmp 0x455750
mov eax, dword [0x004eb5a0]
cmp dword [0x004eb5a4], eax
je 0x455b30
cmp ebp, eax
jne 0x455b48
mov ecx, ebp
jmp 0x455b76
mov eax, dword [0x004eb5a4]
mov esi, dword [0x004eb5a0]
cmp eax, esi
je 0x45590e
mov dword [0x00482218], eax
mov edi, 0xffffffff
jmp 0x45593b
cmp byte [r9], 0x2d
je 0x455a10
test ebx, ebx
je 0x45590e
add ebp, 1
mov qword [0x004eb598], r9
mov edi, 1
mov dword [0x00482218], ebp
mov eax, edi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx r8d, byte [r10]
lea r14, [r15 + 1]
test r8b, r8b
movzx ecx, byte [r15 + 1]
mov qword [0x004eb5b8], r14
je 0x455bc8
mov rax, r10
jmp 0x45598a
movzx r8d, byte [rax + 1]
add rax, 1
test r8b, r8b
je 0x455bc8
cmp r8b, dil
jne 0x455978
test rax, rax
sete r8b
cmp dil, 0x3a
sete r9b
or r8d, r9d
test cl, cl
jne 0x4559ac
add dword [0x00482218], 1
test r8b, r8b
jne 0x455bd3
cmp byte [rax], 0x57
movzx ecx, byte [rax + 1]
je 0x455c80
cmp cl, 0x3a
jne 0x45593b
cmp byte [rax + 2], 0x3a
movzx ecx, byte [r15 + 1]
je 0x455e5a
test cl, cl
movsxd rax, dword [0x00482218]
je 0x455f58
add eax, 1
mov qword [0x004eb598], r14
mov dword [0x00482218], eax
mov qword [0x004eb5b8], 0
jmp 0x45593b
movzx ecx, byte [r9 + 1]
test cl, cl
je 0x455922
test r13, r13
je 0x455ed0
cmp cl, 0x2d
je 0x455a3e
lea r15, [r9 + 1]
movsx edi, cl
mov qword [0x004eb5b8], r15
jmp 0x455792
movsx edi, byte [r9 + 2]
lea r15, [r9 + 2]
mov qword [0x004eb5b8], r15
nop
test dil, dil
mov rax, r15
je 0x455a74
cmp dil, 0x3d
je 0x455a74
nop
movzx r8d, byte [rax + 1]
add rax, 1
test r8b, r8b
je 0x455a74
cmp r8b, 0x3d
jne 0x455a60
mov rbx, qword [r13]
test rbx, rbx
je 0x455e10
mov r11, rax
xor r8d, r8d
mov r12, r13
mov byte [rsp + 0x38], dil
sub r11, r15
mov dword [rsp + 0x48], ebp
xor r14d, r14d
xor ebp, ebp
mov dword [rsp + 0xa0], esi
mov rdi, r11
mov rsi, r8
mov qword [rsp + 0xb8], r13
mov r13, rax
mov dword [rsp + 0x30], 0xffffffff
mov qword [rsp + 0x40], r9
mov byte [rsp + 0x4f], cl
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], r10
jmp 0x455afb
mov ebp, 1
mov rbx, qword [r12 + 0x20]
add r12, 0x20
add r14d, 1
test rbx, rbx
je 0x455c20
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x455ae5
mov rcx, rbx
call sub.msvcrt.dll_strlen
cmp edi, eax
je 0x455d70
test rsi, rsi
jne 0x455ae0
mov dword [rsp + 0x30], r14d
mov rsi, r12
jmp 0x455ae5
cmp ebp, eax
je 0x4558ea
mov dword [0x004eb5a4], ebp
mov ecx, ebp
jmp 0x455b76
mov rcx, rdx
mov qword [rsp + 0xb0], r10
mov qword [rsp + 0xa8], rdx
call fcn.004555a0
mov ecx, dword [0x00482218]
mov rdx, qword [rsp + 0xa8]
mov r10, qword [rsp + 0xb0]
cmp esi, ecx
jle 0x455bc0
movsxd rax, ecx
jmp 0x455b91
add rax, 1
add ecx, 1
cmp esi, eax
mov dword [0x00482218], ecx
jle 0x455bc0
mov r8, qword [rdx + rax*8]
mov ecx, eax
cmp byte [r8], 0x2d
jne 0x455b80
cmp byte [r8 + 1], 0
je 0x455b80
mov ebp, dword [0x00482218]
cmp esi, ebp
mov dword [0x004eb5a0], ecx
jne 0x455849
jmp 0x4558f8
mov ebp, ecx
jmp 0x455baa
test cl, cl
jne 0x455bd3
add dword [0x00482218], 1
mov ebx, dword [0x00482214]
test ebx, ebx
je 0x455c0e
cmp qword [0x004eb5a8], 0
mov ecx, 2
mov rbx, qword [rdx]
je 0x456083
call qword [fcn.00468e10]
mov r9d, edi
mov r8, rbx
lea rdx, str._s:_illegal_option_____c_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov dword [0x00482210], edi
mov edi, 0x3f
jmp 0x45593b
mov ebx, ebp
mov r11, rsi
mov rax, r13
movsx edi, byte [rsp + 0x38]
test ebx, ebx
mov r9, qword [rsp + 0x40]
movzx ecx, byte [rsp + 0x4f]
mov ebp, dword [rsp + 0x48]
mov esi, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
mov r10, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xb8]
jne 0x455e90
test r11, r11
mov r12, r11
je 0x455e10
mov r14d, dword [rsp + 0x30]
jmp 0x455d8e
cmp cl, 0x3b
jne 0x4559c2
cmp byte [r15 + 1], 0
movsxd rax, dword [0x00482218]
je 0x456024
add eax, 1
mov qword [0x004eb598], r14
mov dword [0x00482218], eax
movzx eax, byte [r14]
mov qword [0x004eb5b8], r14
mov rcx, r14
test al, al
jne 0x455ccc
jmp 0x455cd0
movzx eax, byte [rcx + 1]
add rcx, 1
test al, al
je 0x455cd0
cmp al, 0x3d
jne 0x455cc0
mov r15, qword [r13]
test r15, r15
je 0x4562b5
mov rdi, rcx
mov dword [rsp + 0xa0], esi
xor ebx, ebx
xor ebp, ebp
sub rdi, r14
mov dword [rsp + 0x30], 0
xor r12d, r12d
mov r11d, edi
mov byte [rsp + 0x48], al
mov qword [rsp + 0x38], rcx
mov rsi, r11
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], r10
jmp 0x455d39
mov ebp, 1
mov r15, qword [r13 + 0x20]
add r13, 0x20
add ebx, 1
test r15, r15
je 0x455f9d
mov r8, rdi
mov rdx, r14
mov rcx, r15
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x455d25
mov rcx, r15
call sub.msvcrt.dll_strlen
cmp rsi, rax
je 0x45615f
test r12, r12
jne 0x455d20
mov dword [rsp + 0x30], ebx
mov r12, r13
jmp 0x455d25
mov ebp, dword [rsp + 0x48]
mov rax, r13
mov esi, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
mov r10, qword [rsp + 0xb0]
lea ecx, [rbp + 1]
mov r8d, dword [r12 + 8]
mov dword [0x00482218], ecx
cmp byte [rax], 0
jne 0x455df0
cmp r8d, 1
je 0x455f79
mov rcx, r15
call sub.msvcrt.dll_strlen
add rax, r15
cmp qword [rsp + 0xc0], 0
mov qword [0x004eb5b8], rax
je 0x455dd3
mov rax, qword [rsp + 0xc0]
mov dword [rax], r14d
mov rax, qword [r12 + 0x10]
mov edi, dword [r12 + 0x18]
test rax, rax
je 0x45593b
mov dword [rax], edi
xor edi, edi
jmp 0x45593b
test r8d, r8d
je 0x455ee0
add rax, 1
mov qword [0x004eb598], rax
jmp 0x455dab
mov r12d, dword [rsp + 0xc8]
test r12d, r12d
je 0x4560a3
cmp cl, 0x2d
je 0x45620b
movzx r8d, byte [r10]
test r8b, r8b
je 0x45626a
mov rcx, r10
mov eax, r8d
jmp 0x455e50
movzx eax, byte [rcx + 1]
add rcx, 1
test al, al
je 0x45626a
cmp al, dil
jne 0x455e40
jmp 0x4557dc
test cl, cl
je 0x45607b
add dword [0x00482218], 1
mov qword [0x004eb598], r14
mov qword [0x004eb5b8], 0
jmp 0x45593b
mov dword [0x004eb5a4], ebp
mov eax, ebp
jmp 0x45589f
mov eax, dword [0x00482214]
test eax, eax
jne 0x456045
mov rcx, r15
call sub.msvcrt.dll_strlen
mov dword [0x00482210], 0
add dword [0x00482218], 1
add rax, r15
mov qword [0x004eb5b8], rax
jmp 0x455c14
movzx r8d, byte [r10]
lea r15, [r9 + 1]
movsx edi, cl
jmp 0x455954
mov eax, dword [0x00482214]
test eax, eax
je 0x455dab
movsxd rcx, ecx
mov rsi, qword [r12]
mov rax, qword [rdx + rcx*8 - 8]
mov rbx, qword [rdx]
cmp byte [rax + 1], 0x2d
je 0x4562f1
movsx edi, byte [rax]
mov ecx, 2
call qword [fcn.00468e10]
mov qword [rsp + 0x20], rsi
mov r8, rbx
lea rdx, str._s:_option___c_s_doesnt_allow_an_argument_n
mov rcx, rax
mov r9d, edi
call sub.msvcrt.dll_fprintf
mov rbx, qword [0x004eb5b8]
mov rcx, rbx
call sub.msvcrt.dll_strlen
add rbx, rax
mov eax, dword [r12 + 0x18]
mov qword [0x004eb5b8], rbx
mov dword [0x00482210], eax
jmp 0x455c14
cmp esi, eax
je 0x456138
lea ecx, [rax + 1]
mov rax, qword [rdx + rax*8]
mov dword [0x00482218], ecx
mov qword [0x004eb598], rax
jmp 0x4559f9
cmp ecx, esi
jge 0x45618c
movsxd rcx, ecx
add ebp, 2
mov rax, qword [rdx + rcx*8]
mov dword [0x00482218], ebp
mov qword [0x004eb598], rax
jmp 0x455dab
test ebp, ebp
movzx eax, byte [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov esi, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
mov r10, qword [rsp + 0xb0]
jne 0x4561dd
test r12, r12
je 0x4562b5
test al, al
mov r8d, dword [r12 + 8]
je 0x456106
test r8d, r8d
je 0x4562ca
add rcx, 1
mov qword [0x004eb598], rcx
mov rcx, r14
call sub.msvcrt.dll_strlen
add rax, r14
cmp qword [rsp + 0xc0], 0
mov qword [0x004eb5b8], rax
je 0x455dd3
mov rax, qword [rsp + 0xc0]
mov esi, dword [rsp + 0x30]
mov dword [rax], esi
jmp 0x455dd3
cmp esi, eax
je 0x456241
mov r14, qword [rdx + rax*8]
lea ecx, [rax + 1]
mov dword [0x00482218], ecx
mov qword [0x004eb598], r14
jmp 0x455cab
mov rbx, qword [rdx]
mov qword [rsp + 0x30], r9
mov ecx, 2
call qword [fcn.00468e10]
mov r9, qword [rsp + 0x30]
lea rdx, str._s:_option___s_is_ambiguous_n
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_fprintf
mov r15, qword [0x004eb5b8]
jmp 0x455e9e
xor r14d, r14d
jmp 0x455e69
call qword [fcn.00468e10]
mov r9d, edi
mov r8, rbx
lea rdx, str._s:_invalid_option_____c_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x455c0e
mov esi, dword [0x00482214]
test esi, esi
je 0x4560e2
cmp cl, 0x2d
je 0x456219
mov rbx, qword [rdx]
mov ecx, 2
movsx esi, byte [r9]
call qword [fcn.00468e10]
mov qword [rsp + 0x20], r15
lea rdx, str._s:_unrecognized_option___c_s_n
mov rcx, rax
mov r8, rbx
mov r9d, esi
call sub.msvcrt.dll_fprintf
add dword [0x00482218], 1
lea rax, [0x004d7798]
mov dword [0x00482210], 0
mov qword [0x004eb5b8], rax
jmp 0x455c14
cmp r8d, 1
jne 0x455ff0
movsxd rax, dword [0x00482218]
cmp eax, esi
jge 0x456397
lea ecx, [rax + 1]
mov rax, qword [rdx + rax*8]
mov dword [0x00482218], ecx
mov qword [0x004eb598], rax
jmp 0x455ff0
mov eax, dword [0x00482214]
test eax, eax
jne 0x45627d
mov dword [0x00482210], edi
xor edi, edi
cmp byte [r10], 0x3a
setne dil
lea edi, [rdi + rdi*4 + 0x3a]
jmp 0x4559f9
movzx eax, byte [rsp + 0x48]
mov dword [rsp + 0x30], ebx
mov r12, r13
mov rcx, qword [rsp + 0x38]
mov esi, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
mov r10, qword [rsp + 0xb0]
jmp 0x455fcf
mov r13d, dword [0x00482214]
test r13d, r13d
jne 0x456316
mov rcx, r15
mov qword [rsp + 0xb0], r10
call sub.msvcrt.dll_strlen
mov r10, qword [rsp + 0xb0]
add rax, r15
mov qword [0x004eb5b8], rax
mov eax, dword [r12 + 0x18]
mov dword [0x00482210], eax
cmp byte [r10], 0x3a
jne 0x455c14
mov edi, 0x3a
jmp 0x45593b
mov r9d, dword [0x00482214]
test r9d, r9d
jne 0x45635d
mov rcx, r14
call sub.msvcrt.dll_strlen
add dword [0x00482218], 1
add rax, r14
mov qword [0x004eb5b8], rax
jmp 0x455c14
mov edi, dword [0x00482214]
test edi, edi
je 0x4560e2
mov rbx, qword [rdx]
mov ecx, 2
call qword [fcn.00468e10]
lea rdx, str._s:_unrecognized_option_____s_n
mov r9, r15
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_fprintf
jmp 0x4560e2
mov r11d, dword [0x00482214]
test r11d, r11d
jne 0x4563dd
mov dword [0x00482210], edi
xor edi, edi
cmp byte [r10], 0x3a
setne dil
lea edi, [rdi + rdi*4 + 0x3a]
jmp 0x45593b
mov ebp, dword [0x00482214]
test ebp, ebp
jne 0x4560b6
jmp 0x4560e2
mov rbx, qword [rdx]
mov qword [rsp + 0xb0], r10
mov ecx, 2
call qword [fcn.00468e10]
lea rdx, str._s:_option_requires_an_argument_____c_n
mov r9d, edi
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_fprintf
mov r10, qword [rsp + 0xb0]
jmp 0x456146
mov qword [0x004eb5b8], 0
mov edi, 0x57
jmp 0x45593b
mov r8d, dword [0x00482214]
test r8d, r8d
jne 0x456415
mov rcx, r14
call sub.msvcrt.dll_strlen
add rax, r14
mov qword [0x004eb5b8], rax
jmp 0x455c14
mov ecx, 2
call qword [fcn.00468e10]
mov r9, rsi
mov r8, rbx
lea rdx, str._s:_option_____s_doesnt_allow_an_argument_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x455f2f
movsxd rcx, ecx
mov rbx, qword [rdx]
mov qword [rsp + 0xb0], r10
mov rsi, qword [rdx + rcx*8 - 8]
mov ecx, 2
call qword [fcn.00468e10]
lea rdx, str._s:_option___s_requires_an_argument_n
mov rcx, rax
mov r8, rbx
mov r9, rsi
call sub.msvcrt.dll_fprintf
mov r15, qword [0x004eb5b8]
mov r10, qword [rsp + 0xb0]
jmp 0x45619c
movsxd rax, dword [0x00482218]
mov ecx, 2
mov rbx, qword [rdx]
mov rsi, qword [rdx + rax*8]
call qword [fcn.00468e10]
lea rdx, str._s:_option___W__s_is_ambiguous_n
mov r8, rbx
mov rcx, rax
mov r9, rsi
call sub.msvcrt.dll_fprintf
mov r14, qword [0x004eb5b8]
jmp 0x4561ed
mov ecx, dword [0x00482214]
test ecx, ecx
jne 0x456448
mov rbx, qword [0x004eb5b8]
mov qword [rsp + 0xb0], r10
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r10, qword [rsp + 0xb0]
add rbx, rax
mov qword [0x004eb5b8], rbx
cmp byte [r10], 0x3a
jne 0x455c14
jmp 0x4561d3
mov rbx, qword [rdx]
mov qword [rsp + 0xb0], r10
mov ecx, 2
call qword [fcn.00468e10]
lea rdx, str._s:_option_requires_an_argument_____c_n
mov r9d, edi
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_fprintf
mov r10, qword [rsp + 0xb0]
jmp 0x456251
mov rbx, qword [rdx]
mov ecx, 2
mov rsi, qword [r12]
call qword [fcn.00468e10]
lea rdx, str._s:_option___W__s_doesnt_allow_an_argument_n
mov rcx, rax
mov r8, rbx
mov r9, rsi
call sub.msvcrt.dll_fprintf
mov r14, qword [0x004eb5b8]
jmp 0x4562da
mov rbx, qword [rdx]
mov qword [rsp + 0xb0], r10
mov ecx, 2
mov rsi, qword [rdx + rax*8 - 8]
call qword [fcn.00468e10]
lea rdx, str._s:_option___s_requires_an_argument_n
mov rcx, rax
mov r8, rbx
mov r9, rsi
call sub.msvcrt.dll_fprintf
mov r10, qword [rsp + 0xb0]
jmp 0x4563a5