Function at 0x481d10
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 r15, rdx
mov r13, r8
test r8, r8
je 0x4820ce
mov r9d, dword [0x0048930c]
test r9d, r9d
je 0x481f70
cmp dword [0x004892f0], 0xffffffff
je 0x481f84
mov eax, dword [0x0049b208]
test eax, eax
jne 0x481f84
movzx edx, byte [r13]
cmp dl, 0x2d
je 0x481fb3
mov r8d, dword [0x004892f0]
test r8d, r8d
jne 0x481d83
cmp dl, 0x2b
jne 0x481d94
and dword [rsp + 0xb8], 0xfffffffe
cmp dl, 0x2b
je 0x481fbb
mov qword [0x0049b200], 0
test eax, eax
je 0x481db7
mov dword [0x004892f4], 0xffffffff
mov dword [0x004892f8], 0xffffffff
mov edi, dword [rsp + 0xb8]
mov r12d, dword [rsp + 0xb8]
lea rbp, [0x004919f5]
and edi, 2
and r12d, 1
test eax, eax
je 0x481e4a
movsxd rbx, dword [0x0048930c]
mov dword [0x0049b208], 0
cmp ebx, esi
jge 0x482090
movsxd rax, ebx
mov r11, qword [r15 + rax*8]
cmp byte [r11], 0x2d
mov qword [0x00489300], r11
je 0x481fc8
mov qword [0x00489300], rbp
test edi, edi
jne 0x4820f0
test r12d, r12d
je 0x4820ce
mov r14d, dword [0x004892f8]
cmp r14d, 0xffffffff
je 0x482030
mov edx, dword [0x004892f4]
cmp edx, 0xffffffff
jne 0x482048
add ebx, 1
mov dword [0x0048930c], ebx
mov r9, qword [0x00489300]
movzx r14d, byte [r9]
test r14b, r14b
je 0x481dd8
cmp qword [rsp + 0xa8], 0
je 0x481e8e
movsxd rax, dword [0x0048930c]
cmp qword [r15 + rax*8], r9
je 0x481e8e
cmp r14b, 0x2d
je 0x48221a
test byte [rsp + 0xb8], 4
jne 0x482121
lea rbx, [r9 + 1]
movsx r12d, r14b
mov qword [0x00489300], rbx
cmp r14b, 0x3a
je 0x48222c
cmp r12d, 0x2d
je 0x482373
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 0x48222c
cmp qword [rsp + 0xa8], 0
movzx edx, byte [rax + 1]
je 0x4821a9
cmp r12d, 0x57
jne 0x4821a9
cmp dl, 0x3b
jne 0x4821a9
cmp byte [r9 + 1], 0
jne 0x4822fd
mov eax, dword [0x0048930c]
add eax, 1
mov dword [0x0048930c], eax
cmp eax, esi
jl 0x4822f0
mov edx, dword [0x00489310]
lea rax, [0x004919f5]
mov qword [0x00489300], rax
test edx, edx
je 0x481f47
cmp byte [r13], 0x3a
je 0x481f47
mov edx, 0x57
lea rcx, str.option_requires_an_argument_____c
call fcn.004818e0
mov dword [0x00489308], 0x57
cmp byte [r13], 0x3a
je 0x482368
mov r12d, 0x3f
jmp 0x4820d4
mov dword [0x0049b208], 1
mov dword [0x0048930c], 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 [0x004892f0], eax
mov eax, dword [0x0049b208]
cmp dl, 0x2d
jne 0x481d72
or dword [rsp + 0xb8], 2
add r13, 1
jmp 0x481d94
movzx r14d, byte [r11 + 1]
test r14b, r14b
jne 0x4821c9
mov edx, 0x2d
mov rcx, r13
mov qword [rsp + 0x38], r11
call sub.msvcrt.dll_strchr
mov r11, qword [rsp + 0x38]
test rax, rax
je 0x481e09
mov edi, dword [0x004892f8]
cmp edi, 0xffffffff
je 0x48200e
cmp dword [0x004892f4], 0xffffffff
je 0x4822b9
lea rbx, [r11 + 1]
mov qword [0x00489300], rbx
cmp byte [r11 + 1], 0
je 0x48217c
mov r12d, 0x2d
jmp 0x48223a
mov dword [0x004892f8], ebx
add ebx, 1
mov dword [0x0048930c], ebx
jmp 0x481e4a
mov ecx, r14d
mov r9, r15
mov r8d, ebx
mov dword [rsp + 0x38], edx
call fcn.00481820
mov ecx, dword [0x0048930c]
mov edx, dword [rsp + 0x38]
mov dword [0x004892f4], 0xffffffff
mov eax, ecx
sub edx, r14d
add ecx, 1
sub eax, edx
mov dword [0x0048930c], ecx
mov dword [0x004892f8], eax
mov eax, dword [0x0049b208]
jmp 0x481dd4
mov esi, dword [0x004892f4]
lea rax, [0x004919f5]
mov edi, dword [0x004892f8]
mov qword [0x00489300], rax
cmp esi, 0xffffffff
jne 0x482108
cmp edi, 0xffffffff
je 0x4820ba
mov dword [0x0048930c], edi
mov dword [0x004892f4], 0xffffffff
mov dword [0x004892f8], 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 [0x0049b200], r11
mov r12d, 1
mov dword [0x0048930c], ebx
jmp 0x4820d4
mov r9, r15
mov r8d, ebx
mov edx, esi
mov ecx, edi
sub esi, edi
call fcn.00481820
sub dword [0x0048930c], esi
jmp 0x4820ba
xor eax, eax
cmp r14b, 0x3a
je 0x48213e
movsx edx, r14b
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
setne al
movzx eax, al
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xb0]
mov rdx, r13
mov rcx, r15
mov r8, qword [rsp + 0xa8]
call fcn.00481970
mov r12d, eax
cmp eax, 0xffffffff
je 0x48225d
lea rax, [0x004919f5]
mov qword [0x00489300], rax
jmp 0x4820d4
mov edx, 0x2d
mov rcx, r13
mov qword [rsp + 0x38], r11
call sub.msvcrt.dll_strchr
mov r11, qword [rsp + 0x38]
test rax, rax
je 0x4820ce
movzx edx, byte [rax + 1]
mov r9, r11
mov r12d, 0x2d
cmp dl, 0x3a
je 0x48227e
cmp byte [r9 + 1], 0
jne 0x4820d4
add dword [0x0048930c], 1
jmp 0x4820d4
mov edi, dword [0x004892f8]
cmp edi, 0xffffffff
je 0x4821e1
cmp dword [0x004892f4], 0xffffffff
je 0x4822b9
lea r9, [r11 + 1]
mov qword [0x00489300], r9
cmp r14b, 0x2d
jne 0x481e5e
cmp byte [r11 + 2], 0
je 0x48238e
cmp qword [rsp + 0xa8], 0
je 0x48237b
cmp r9, qword [r15 + rbx*8]
je 0x481e8e
add r9, 1
xor eax, eax
mov qword [0x00489300], r9
jmp 0x48213e
cmp byte [r9 + 1], 0
jne 0x48223a
add dword [0x0048930c], 1
mov ecx, dword [0x00489310]
test ecx, ecx
je 0x48224b
cmp byte [r13], 0x3a
jne 0x48226d
mov dword [0x00489308], r12d
mov r12d, 0x3f
jmp 0x4820d4
mov r9, qword [0x00489300]
movzx r14d, byte [r9]
jmp 0x481e8e
mov edx, r12d
lea rcx, str.unknown_option_____c
call fcn.004818e0
jmp 0x48224b
mov ecx, dword [0x0048930c]
mov qword [0x0049b200], 0
cmp byte [r9 + 1], 0
lea edx, [rcx + 1]
je 0x4822cd
mov qword [0x0049b200], rbx
lea rax, [0x004919f5]
mov dword [0x0048930c], edx
mov qword [0x00489300], rax
jmp 0x4820d4
mov dword [0x004892f4], ebx
test r14b, r14b
jne 0x4821e1
jmp 0x48200e
cmp byte [rax + 2], 0x3a
je 0x4822a0
mov dword [0x0048930c], edx
cmp esi, edx
jle 0x482328
movsxd rdx, edx
mov rax, qword [r15 + rdx*8]
lea edx, [rcx + 2]
mov qword [0x0049b200], rax
jmp 0x4822a0
cdqe
mov rax, qword [r15 + rax*8]
mov qword [0x00489300], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xb0]
mov rdx, r13
mov rcx, r15
mov r8, qword [rsp + 0xa8]
call fcn.00481970
mov r12d, eax
jmp 0x482169
lea rax, [0x004919f5]
mov qword [0x00489300], rax
mov eax, dword [0x00489310]
test eax, eax
je 0x482356
cmp byte [r13], 0x3a
je 0x482356
mov edx, r12d
lea rcx, str.option_requires_an_argument_____c
call fcn.004818e0
mov dword [0x00489308], r12d
cmp byte [r13], 0x3a
jne 0x481f5c
mov r12d, 0x3a
jmp 0x4820d4
mov r11, r9
jmp 0x482019
lea rbx, [r11 + 2]
mov r11, r9
mov qword [0x00489300], rbx
jmp 0x482019
mov esi, dword [0x004892f4]
lea r8d, [rbx + 1]
lea rax, [0x004919f5]
mov dword [0x0048930c], r8d
mov qword [0x00489300], rax
cmp esi, 0xffffffff
je 0x4820ba
mov r9, r15
jmp 0x48210e