Function at 0x1400c3990
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov rdi, qword [0x1400f5f70]
mov rax, qword [rdi]
mov qword [rsp + 0xa8], rax
xor eax, eax
mov qword [rcx], 0
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x1400c4390
call fcn.1400c0380
cmp byte [rsi], 0x43
je 0x1400c3a30
lea rbp, [0x1400ef570]
mov rcx, rsi
mov rdx, rbp
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400c3a40
mov rax, qword [0x1400f5680]
mov rax, qword [rax]
mov qword [rbx], rax
lock add dword [rax], 1
mov rbx, qword [0x1400f5f70]
mov rax, qword [rsp + 0xa8]
sub rax, qword [rbx]
jne 0x1400c43e7
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsi + 1], 0
je 0x1400c39ed
jmp 0x1400c39d7
cmp byte [rsi], 0
jne 0x1400c3aa0
lea rcx, str.LC_ALL
call sub.msvcrt.dll_getenv
mov rsi, rax
test rax, rax
je 0x1400c3ad0
cmp byte [rax], 0
je 0x1400c3ad0
cmp byte [rax], 0x43
je 0x1400c3df8
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400c39ed
mov ecx, 0x28
call fcn.1400ea4a0
mov r8d, 1
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.1400c19f0
jmp 0x1400c3abe
mov ecx, 0x28
call fcn.1400ea4a0
mov r8d, 1
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.1400c19f0
mov qword [rbx], rdi
jmp 0x1400c39fe
lea rax, [rsp + 0x70]
lea rcx, str.LANG
mov byte [rsp + 0x70], 0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
call sub.msvcrt.dll_getenv
mov rsi, rax
test rax, rax
je 0x1400c3b0a
cmp byte [rax], 0
jne 0x1400c3da0
mov qword [rsp + 0x20], 1
lea rax, [rsp + 0x60]
mov r8, qword [rsp + 0x68]
xor edx, edx
lea r9, [0x1400ef582]
mov rcx, rax
mov qword [rsp + 0x58], rax
call fcn.1400c59b0
mov rax, qword [0x1400f5690]
xor edi, edi
cmp qword [rsp + 0x68], 1
mov r12, qword [rax]
je 0x1400c4268
mov rcx, qword [r12 + rdi*8]
call sub.msvcrt.dll_getenv
mov rsi, rax
test rax, rax
je 0x1400c3d40
cmp byte [rax], 0
je 0x1400c3d40
mov r13, qword [rsp + 0x68]
mov rcx, rax
call sub.msvcrt.dll_strlen
cmp r13, rax
je 0x1400c3d20
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0x80]
mov edx, pe_nt_image_headers64
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x80], rax
mov byte [rsp + 0x90], 0
call fcn.1400c83b0
test rdi, rdi
je 0x1400c3e38
lea rax, [r12 + rdi*8]
mov r14, r12
mov qword [rsp + 0x48], rax
jmp 0x1400c3c87
mov byte [rax + r13], 0x3d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], r15
mov byte [rax + r13 + 1], 0
mov r8, qword [rsp + 0x68]
movabs rax, 0x3fffffffffffffff
sub rax, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x60]
cmp rax, r8
jb 0x1400c43ec
mov rcx, qword [rsp + 0x38]
call fcn.1400c84f0
mov r13, qword [rsp + 0x88]
mov rax, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x40]
lea r15, [r13 + 1]
cmp rax, rdx
je 0x1400c4258
mov rdx, qword [rsp + 0x90]
cmp rdx, r15
jb 0x1400c40b8
mov byte [rax + r13], 0x3b
mov rax, qword [rsp + 0x80]
add r14, 8
mov qword [rsp + 0x88], r15
mov byte [rax + r13 + 1], 0
cmp qword [rsp + 0x48], r14
je 0x1400c3e38
mov r13, qword [r14]
mov rcx, r13
call sub.msvcrt.dll_strlen
mov r8, rax
movabs rax, 0x3fffffffffffffff
sub rax, qword [rsp + 0x88]
cmp rax, r8
jb 0x1400c440c
mov rcx, qword [rsp + 0x38]
mov rdx, r13
call fcn.1400c84f0
mov r13, qword [rsp + 0x88]
mov rax, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x40]
lea r15, [r13 + 1]
cmp rax, rdx
je 0x1400c4248
mov rdx, qword [rsp + 0x90]
cmp rdx, r15
jae 0x1400c3be0
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x20], 1
call fcn.1400c86f0
mov rax, qword [rsp + 0x80]
jmp 0x1400c3be0
test r13, r13
je 0x1400c3d40
mov rcx, qword [rsp + 0x60]
mov r8, r13
mov rdx, rsi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1400c3b7f
nop dword [rax]
add rdi, 1
cmp rdi, 6
jne 0x1400c3b4b
cmp qword [rsp + 0x68], 1
je 0x1400c3e10
mov ecx, 0x28
call fcn.1400ea4a0
mov rdx, qword [rsp + 0x60]
mov r8d, 1
mov rcx, rax
mov rsi, rax
call fcn.1400c19f0
mov qword [rbx], rsi
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x50]
cmp rcx, rax
je 0x1400c39fe
call fcn.1400ea450
jmp 0x1400c39fe
cmp byte [rax], 0x43
jne 0x1400c3db0
cmp byte [rax + 1], 0
je 0x1400c3b0a
nop
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400c3b0a
mov rcx, rsi
lea rdi, [rsp + 0x60]
call sub.msvcrt.dll_strlen
mov r8, qword [rsp + 0x68]
mov r9, rsi
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov qword [rsp + 0x58], rdi
call fcn.1400c59b0
jmp 0x1400c3b33
cmp byte [rax + 1], 0
je 0x1400c39ed
jmp 0x1400c3a67
mov rax, qword [rsp + 0x60]
cmp byte [rax], 0x43
jne 0x1400c3d5a
mov rax, qword [0x1400f5680]
mov rax, qword [rax]
mov qword [rbx], rax
lock add dword [rax], 1
jmp 0x1400c3d7d
mov r13, qword [r12 + rdi*8]
mov rcx, r13
call sub.msvcrt.dll_strlen
mov r8, rax
movabs rax, 0x3fffffffffffffff
sub rax, qword [rsp + 0x88]
cmp rax, r8
jb 0x1400c44d8
mov rcx, qword [rsp + 0x38]
mov rdx, r13
call fcn.1400c84f0
mov r13, qword [rsp + 0x88]
mov rax, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x40]
lea r14, [r13 + 1]
cmp rax, rdx
je 0x1400c4353
mov rdx, qword [rsp + 0x90]
cmp rdx, r14
jb 0x1400c4320
mov byte [rax + r13], 0x3d
mov rax, qword [rsp + 0x80]
mov rcx, rsi
mov qword [rsp + 0x88], r14
mov byte [rax + r13 + 1], 0
call sub.msvcrt.dll_strlen
mov r8, rax
movabs rax, 0x3fffffffffffffff
sub rax, qword [rsp + 0x88]
cmp rax, r8
jb 0x1400c44b4
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.1400c84f0
mov rsi, qword [rsp + 0x88]
mov rax, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x40]
lea r13, [rsi + 1]
cmp rax, rdx
je 0x1400c4349
mov rdx, qword [rsp + 0x90]
cmp rdx, r13
jb 0x1400c42f0
mov byte [rax + rsi], 0x3b
mov rax, qword [rsp + 0x80]
movabs r14, 0x3fffffffffffffff
lea r15, [0x1400ef599]
mov qword [rsp + 0x88], r13
lea r13, [rdi + 1]
mov byte [rax + rsi + 1], 0
cmp rdi, 5
jne 0x1400c3fa4
jmp 0x1400c41b0
cmp byte [rsi], 0x43
jne 0x1400c40e8
cmp byte [rsi + 1], 0
jne 0x1400c40e8
mov rax, r14
sub rax, rdi
cmp rax, 2
jbe 0x1400c446c
mov rcx, qword [rsp + 0x38]
mov r8d, 3
mov rdx, r15
call fcn.1400c84f0
add r13, 1
cmp r13, 6
je 0x1400c41b0
mov rcx, qword [r12 + r13*8]
call sub.msvcrt.dll_getenv
mov rdi, qword [r12 + r13*8]
mov rsi, rax
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov r8, rax
mov rax, r14
sub rax, qword [rsp + 0x88]
cmp rax, r8
jb 0x1400c444c
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
call fcn.1400c84f0
mov rdi, qword [rsp + 0x88]
test rsi, rsi
je 0x1400c3ff6
cmp byte [rsi], 0
jne 0x1400c3f60
mov rax, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x40]
lea rsi, [rdi + 1]
cmp rax, rdx
je 0x1400c42e0
mov rdx, qword [rsp + 0x90]
cmp rdx, rsi
jb 0x1400c4218
mov byte [rax + rdi], 0x3d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rsi
mov byte [rax + rdi + 1], 0
mov r8, qword [rsp + 0x68]
mov rax, r14
sub rax, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x60]
cmp rax, r8
jb 0x1400c442c
mov rcx, qword [rsp + 0x38]
call fcn.1400c84f0
mov rsi, qword [rsp + 0x88]
mov rax, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x40]
lea rdi, [rsi + 1]
cmp rax, rdx
je 0x1400c42d0
mov rdx, qword [rsp + 0x90]
cmp rdx, rdi
jb 0x1400c4180
mov byte [rax + rsi], 0x3b
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rdi
mov byte [rax + rsi + 1], 0
jmp 0x1400c3f96
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x20], 1
call fcn.1400c86f0
mov rax, qword [rsp + 0x80]
jmp 0x1400c3c5d
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400c3f73
lea rax, [rdi + 1]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
cmp rax, rdx
je 0x1400c4386
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
cmp rdx, rcx
jb 0x1400c435d
mov byte [rax + rdi], 0x3d
mov rax, qword [rsp + 0x48]
mov rcx, rsi
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x80]
mov byte [rax + rdi + 1], 0
call sub.msvcrt.dll_strlen
mov r8, rax
movabs rax, 0x3fffffffffffffff
sub rax, qword [rsp + 0x88]
cmp rax, r8
jb 0x1400c4490
mov rdx, rsi
jmp 0x1400c4058
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], 1
call fcn.1400c86f0
mov rax, qword [rsp + 0x80]
jmp 0x1400c4095
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x38]
mov r8d, 1
lea rdx, [rax - 1]
call fcn.1400c8460
mov ecx, 0x28
call fcn.1400ea4a0
mov rdx, qword [rsp + 0x80]
mov r8d, 1
mov rcx, rax
mov rsi, rax
call fcn.1400c19f0
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x40]
mov qword [rbx], rsi
cmp rcx, rax
je 0x1400c3d7d
call fcn.1400ea450
jmp 0x1400c3d7d
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], 1
call fcn.1400c86f0
mov rax, qword [rsp + 0x80]
jmp 0x1400c4021
mov edx, 0xf
jmp 0x1400c3ce7
mov edx, 0xf
jmp 0x1400c3c54
mov rax, qword [rsp + 0x60]
cmp byte [rax], 0x43
jne 0x1400c3b4b
jmp 0x1400c429e
cmp byte [rax + 1], 0
jne 0x1400c42b9
nop word cs:[rax + rax]
add rdi, 1
cmp rdi, 6
je 0x1400c3d4e
mov rcx, qword [r12 + rdi*8]
call sub.msvcrt.dll_getenv
mov rsi, rax
test rax, rax
je 0x1400c4290
cmp byte [rax], 0
je 0x1400c4290
cmp byte [rax], 0x43
je 0x1400c4280
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400c4290
jmp 0x1400c3b7f
mov edx, 0xf
jmp 0x1400c408c
mov edx, 0xf
jmp 0x1400c4018
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], 1
call fcn.1400c86f0
mov rax, qword [rsp + 0x80]
jmp 0x1400c3f23
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x20], 1
call fcn.1400c86f0
mov rax, qword [rsp + 0x80]
jmp 0x1400c3ea2
mov edx, 0xf
jmp 0x1400c3f1a
mov edx, 0xf
jmp 0x1400c3e99
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], 1
call fcn.1400c86f0
mov rax, qword [rsp + 0x80]
jmp 0x1400c4130
mov edx, 0xf
jmp 0x1400c4122
mov rbx, qword [0x1400f5f70]
mov rax, qword [rsp + 0xa8]
sub rax, qword [rbx]
jne 0x1400c43e7
lea rcx, str.locale::locale_null_not_valid
call fcn.1400eb290
mov rcx, rsi
mov rbx, rax
call fcn.1400ea450
mov rcx, qword [rsp + 0x38]
call fcn.1400c5990
mov rcx, qword [rsp + 0x58]
call fcn.1400c5990
mov rdi, qword [0x1400f5f70]
mov rax, qword [rsp + 0xa8]
sub rax, qword [rdi]
je 0x1400c451f
call fcn.14000fcb0
mov rbx, qword [0x1400f5f70]
mov rax, qword [rsp + 0xa8]
sub rax, qword [rbx]
jne 0x1400c43e7
lea rcx, [0x1400ef584]
call fcn.1400eb1f0
mov rbx, qword [0x1400f5f70]
mov rax, qword [rsp + 0xa8]
sub rax, qword [rbx]
jne 0x1400c43e7
lea rcx, [0x1400ef584]
call fcn.1400eb1f0
mov rbx, qword [0x1400f5f70]
mov rax, qword [rsp + 0xa8]
sub rax, qword [rbx]
jne 0x1400c43e7
lea rcx, [0x1400ef584]
call fcn.1400eb1f0
mov rbx, qword [0x1400f5f70]
mov rax, qword [rsp + 0xa8]
sub rax, qword [rbx]
jne 0x1400c43e7
lea rcx, [0x1400ef584]
call fcn.1400eb1f0
mov rbx, qword [0x1400f5f70]
mov rax, qword [rsp + 0xa8]
sub rax, qword [rbx]
jne 0x1400c43e7
lea rcx, [0x1400ef584]
call fcn.1400eb1f0
mov rbx, qword [0x1400f5f70]
mov rax, qword [rsp + 0xa8]
sub rax, qword [rbx]
jne 0x1400c43e7
lea rcx, [0x1400ef584]
call fcn.1400eb1f0
mov rbx, qword [0x1400f5f70]
mov rax, qword [rsp + 0xa8]
sub rax, qword [rbx]
jne 0x1400c43e7
lea rcx, [0x1400ef584]
call fcn.1400eb1f0
mov rbx, qword [0x1400f5f70]
mov rax, qword [rsp + 0xa8]
sub rax, qword [rbx]
jne 0x1400c43e7
lea rcx, [0x1400ef584]
call fcn.1400eb1f0
mov rcx, rdi
mov rbx, rax
call fcn.1400ea450
mov rdi, qword [0x1400f5f70]
mov rax, qword [rsp + 0xa8]
sub rax, qword [rdi]
jne 0x1400c43e7
mov rcx, rbx
call fcn.14000ee20
mov rbx, rax
jmp 0x1400c43c5