Function at 0x40ecd0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0xa8], r9
mov esi, ecx
mov r14, rdx
mov r13, r8
test r8, r8
je 0x40effe
mov r9d, dword [0x005fe0bc]
test r9d, r9d
je 0x40ee98
cmp dword [0x005fe0a0], 0xffffffff
je 0x40eeac
mov eax, dword [0x0062d1d8]
test eax, eax
jne 0x40eeac
movzx edx, byte [r13]
cmp dl, 0x2d
je 0x40eee0
mov r8d, dword [0x005fe0a0]
test r8d, r8d
jne 0x40ed43
cmp dl, 0x2b
jne 0x40ed54
and dword [rsp + 0xb8], 0xfffffffe
cmp dl, 0x2b
je 0x40eee8
mov qword [0x0062d1d0], 0
test eax, eax
je 0x40ed77
mov dword [0x005fe0a4], 0xffffffff
mov dword [0x005fe0a8], 0xffffffff
mov edi, dword [rsp + 0xb8]
mov r12d, dword [rsp + 0xb8]
lea rbp, [0x00605628]
and edi, 2
and r12d, 1
test eax, eax
je 0x40ee09
mov dword [0x0062d1d8], 0
mov ebx, dword [0x005fe0bc]
cmp ebx, esi
jge 0x40efc0
movsxd rax, ebx
mov r15, qword [r14 + rax*8]
cmp byte [r15], 0x2d
mov qword [0x005fe0b0], r15
je 0x40eef8
mov qword [0x005fe0b0], rbp
test edi, edi
jne 0x40f020
test r12d, r12d
je 0x40effe
mov r15d, dword [0x005fe0a8]
cmp r15d, 0xffffffff
je 0x40ef60
mov edx, dword [0x005fe0a4]
cmp edx, 0xffffffff
jne 0x40ef78
add ebx, 1
mov dword [0x005fe0bc], ebx
mov r9, qword [0x005fe0b0]
movzx eax, byte [r9]
test al, al
je 0x40ed98
cmp qword [rsp + 0xa8], 0
je 0x40ee46
movsxd rdx, dword [0x005fe0bc]
cmp qword [r14 + rdx*8], r9
je 0x40ee46
cmp al, 0x2d
je 0x40f28d
test byte [rsp + 0xb8], 4
jne 0x40f051
lea rbx, [r9 + 1]
movsx r12d, al
mov qword [0x005fe0b0], rbx
cmp al, 0x3a
jne 0x40f0a8
cmp byte [r9 + 1], 0
jne 0x40ee6b
add dword [0x005fe0bc], 1
mov ecx, dword [0x005fe0c0]
test ecx, ecx
je 0x40ee80
cmp byte [r13], 0x3a
jne 0x40f228
mov dword [0x005fe0b8], r12d
mov r12d, 0x3f
jmp 0x40f004
mov dword [0x0062d1d8], 1
mov dword [0x005fe0bc], 1
xor edx, edx
xor r8d, r8d
lea rcx, str.POSIXLY_CORRECT
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx edx, byte [r13]
test eax, eax
setne al
movzx eax, al
mov dword [0x005fe0a0], eax
mov eax, dword [0x0062d1d8]
cmp dl, 0x2d
jne 0x40ed32
or dword [rsp + 0xb8], 2
add r13, 1
jmp 0x40ed54
movzx eax, byte [r15 + 1]
test al, al
jne 0x40f1ab
mov edx, 0x2d
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
je 0x40edc8
cmp dword [0x005fe0a8], 0xffffffff
je 0x40f29f
cmp dword [0x005fe0a4], 0xffffffff
je 0x40f282
lea rbx, [r15 + 1]
mov qword [0x005fe0b0], rbx
cmp byte [r15 + 1], 0
je 0x40f168
mov r12d, 0x2d
jmp 0x40ee6b
mov dword [0x005fe0a8], ebx
add ebx, 1
mov dword [0x005fe0bc], ebx
jmp 0x40ee09
mov ecx, r15d
mov r9, r14
mov r8d, ebx
mov dword [rsp + 0x38], edx
call fcn.0040e7e0
mov ecx, dword [0x005fe0bc]
mov edx, dword [rsp + 0x38]
mov dword [0x005fe0a4], 0xffffffff
mov eax, ecx
sub edx, r15d
add ecx, 1
sub eax, edx
mov dword [0x005fe0bc], ecx
mov dword [0x005fe0a8], eax
mov eax, dword [0x0062d1d8]
jmp 0x40ed94
mov esi, dword [0x005fe0a4]
lea rax, [0x00605628]
mov edi, dword [0x005fe0a8]
mov qword [0x005fe0b0], rax
cmp esi, 0xffffffff
jne 0x40f038
cmp edi, 0xffffffff
je 0x40efea
mov dword [0x005fe0bc], edi
mov dword [0x005fe0a4], 0xffffffff
mov dword [0x005fe0a8], 0xffffffff
mov r12d, 0xffffffff
mov eax, r12d
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 [0x0062d1d0], r15
mov r12d, 1
mov dword [0x005fe0bc], ebx
jmp 0x40f004
mov r9, r14
mov r8d, ebx
mov edx, esi
mov ecx, edi
sub esi, edi
call fcn.0040e7e0
sub dword [0x005fe0bc], esi
jmp 0x40efea
xor edx, edx
cmp al, 0x3a
je 0x40f06a
movsx edx, al
mov rcx, r13
call sub.msvcrt.dll_strchr
xor edx, edx
test rax, rax
setne dl
mov dword [rsp + 0x20], edx
mov r9, qword [rsp + 0xb0]
mov rdx, r13
mov rcx, r14
mov r8, qword [rsp + 0xa8]
call fcn.0040e930
mov r12d, eax
cmp eax, 0xffffffff
je 0x40f218
lea rax, [0x00605628]
mov qword [0x005fe0b0], rax
jmp 0x40f004
cmp r12d, 0x2d
je 0x40f2ad
mov edx, r12d
mov rcx, r13
mov qword [rsp + 0x38], r9
call sub.msvcrt.dll_strchr
mov r9, qword [rsp + 0x38]
test rax, rax
je 0x40ee5d
cmp qword [rsp + 0xa8], 0
movzx edx, byte [rax + 1]
je 0x40f18b
cmp r12d, 0x57
jne 0x40f18b
cmp dl, 0x3b
jne 0x40f18b
cmp byte [r9 + 1], 0
jne 0x40f2e8
mov eax, dword [0x005fe0bc]
add eax, 1
mov dword [0x005fe0bc], eax
cmp eax, esi
jl 0x40f2db
mov edx, dword [0x005fe0c0]
lea rax, [0x00605628]
mov qword [0x005fe0b0], rax
test edx, edx
je 0x40f148
cmp byte [r13], 0x3a
je 0x40f148
mov edx, 0x57
lea rcx, str.option_requires_an_argument_____c
call fcn.0040e8a0
mov dword [0x005fe0b8], 0x57
cmp byte [r13], 0x3a
je 0x40f353
mov r12d, 0x3f
jmp 0x40f004
mov edx, 0x2d
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
je 0x40effe
movzx edx, byte [rax + 1]
mov r9, r15
mov r12d, 0x2d
cmp dl, 0x3a
je 0x40f23c
cmp byte [r9 + 1], 0
jne 0x40f004
add dword [0x005fe0bc], 1
jmp 0x40f004
mov edi, dword [0x005fe0a8]
cmp edi, 0xffffffff
je 0x40f1c3
cmp dword [0x005fe0a4], 0xffffffff
je 0x40f277
lea r9, [r15 + 1]
mov qword [0x005fe0b0], r9
cmp al, 0x2d
jne 0x40ee18
cmp byte [r15 + 2], 0
jne 0x40ee18
mov esi, dword [0x005fe0a4]
lea r8d, [rbx + 1]
lea rax, [0x00605628]
mov dword [0x005fe0bc], r8d
mov qword [0x005fe0b0], rax
cmp esi, 0xffffffff
je 0x40efea
mov r9, r14
jmp 0x40f03e
mov r9, qword [0x005fe0b0]
movzx eax, byte [r9]
jmp 0x40ee46
mov edx, r12d
lea rcx, str.unknown_option_____c
call fcn.0040e8a0
jmp 0x40ee80
mov ecx, dword [0x005fe0bc]
mov qword [0x0062d1d0], 0
cmp byte [r9 + 1], 0
lea edx, [rcx + 1]
je 0x40f2b8
mov qword [0x0062d1d0], rbx
lea rax, [0x00605628]
mov dword [0x005fe0bc], edx
mov qword [0x005fe0b0], rax
jmp 0x40f004
mov dword [0x005fe0a4], ebx
jmp 0x40f1c3
mov dword [0x005fe0a4], ebx
jmp 0x40ef35
add r9, 1
xor edx, edx
mov qword [0x005fe0b0], r9
jmp 0x40f06a
lea rbx, [r15 + 1]
mov r9, r15
mov qword [0x005fe0b0], rbx
mov r15, r9
jmp 0x40ef40
cmp byte [rax + 2], 0x3a
je 0x40f25e
mov dword [0x005fe0bc], edx
cmp esi, edx
jle 0x40f313
movsxd rdx, edx
mov rax, qword [r14 + rdx*8]
lea edx, [rcx + 2]
mov qword [0x0062d1d0], rax
jmp 0x40f25e
cdqe
mov rax, qword [r14 + rax*8]
mov qword [0x005fe0b0], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xb0]
mov rdx, r13
mov rcx, r14
mov r8, qword [rsp + 0xa8]
call fcn.0040e930
mov r12d, eax
jmp 0x40f095
lea rax, [0x00605628]
mov qword [0x005fe0b0], rax
mov eax, dword [0x005fe0c0]
test eax, eax
je 0x40f341
cmp byte [r13], 0x3a
je 0x40f341
mov edx, r12d
lea rcx, str.option_requires_an_argument_____c
call fcn.0040e8a0
mov dword [0x005fe0b8], r12d
cmp byte [r13], 0x3a
jne 0x40f15d
mov r12d, 0x3a
jmp 0x40f004