Function at 0x1400357a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x218
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rcx
mov rax, qword [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1b0], xmm0
mov byte [rsp + 0x1af], 0
cmp qword [rax + 8], 0
sete al
and al, 1
cmp al, 0
je 0x140035823
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x1b0]
mov r8, qword [rsp + 0x1b8]
mov al, byte [rsp + 0x1af]
mov qword [rsp + 0x1b8], r8
mov qword [rsp + 0x1b0], rdx
mov byte [rsp + 0x1af], al
mov qword [rcx + 8], r8
mov qword [rcx], rdx
add rsp, 0x218
ret
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
mov rdx, r8
add rdx, 0x10
call fcn.14004a020
mov qword [rsp + 0x1a0], rax
mov rcx, qword [rsp + 0x1a0]
xor eax, eax
mov edx, eax
xor r8d, r8d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov dword [rsp + 0x19c], eax
cmp dword [rsp + 0x19c], 0
sete al
and al, 1
cmp al, 0
je 0x1400358cd
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x198], eax
cmp dword [rsp + 0x198], 0xcb
sete al
and al, 1
cmp al, 0
je 0x1400358cb
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x1b8], 0
mov qword [rsp + 0x1b0], 0
mov byte [rsp + 0x1af], 0
mov qword [rax + 8], 0
mov qword [rax], 0
xor eax, eax
add rsp, 0x218
ret
jmp 0x1400358cd
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
add rcx, 0x10
mov r8d, setsockopt
call fcn.140001900
cmp al, 0
setne al
mov byte [rsp + 0x37], al
xorps xmm0, xmm0
movaps xmmword [rsp + 0x180], xmm0
mov qword [rsp + 0x190], 0
lea rcx, [rsp + 0x158]
xor edx, edx
mov r8d, 0x28
call fcn.14009bf90
mov al, byte [rsp + 0x37]
mov cl, al
and cl, 1
mov byte [rsp + 0x1df], cl
test al, 1
jne 0x140035931
jmp 0x1400359a6
mov qword [rsp + 0x190], 0
mov qword [rsp + 0x188], 0
mov qword [rsp + 0x180], 0
lea rax, str.lookup_env
mov qword [rsp + 0x170], rax
lea rax, str.C:_Users_Jshaw_Odin_Odin_core_os_env_windows.odin
mov qword [rsp + 0x158], rax
mov qword [rsp + 0x178], 0xa
mov dword [rsp + 0x16c], 2
mov dword [rsp + reloc.WS2_32.dll_shutdown8], 0x16
mov qword [rsp + 0x160], 0x31
jmp 0x140035b1a
mov rax, qword [rsp + 0x38]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1c0], xmm0
mov qword [rsp + 0x1d0], 0
movaps xmmword [rsp + 0x200], xmm0
mov qword [rsp + 0x210], 0
mov rax, qword [rax + 0x18]
mov ecx, dword [0x1400cea0c]
mov edx, ecx
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
lea rcx, [rcx + 0x10]
sub rax, rcx
sete al
test al, 1
jne 0x140035a02
jmp 0x140035a7e
mov r9, qword [rsp + 0x38]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1e0], xmm0
mov qword [rsp + 0x1f0], 0
mov eax, dword [0x1400cea0c]
mov ecx, eax
mov rax, qword gs:[0x58]
mov rax, qword [rax + rcx*8]
lea rdx, [rax + 0x10]
lea r8, str.C:_Users_Jshaw_Odin_Odin_core_os_env_windows.odin
lea rcx, [rsp + 0x1e0]
call fcn.140004ca0
mov rax, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1e8]
mov rdx, qword [rsp + 0x1f0]
mov qword [rsp + 0x210], rdx
mov qword [rsp + 0x208], rcx
mov qword [rsp + 0x200], rax
mov rax, qword [rsp + 0x210]
mov qword [rsp + 0x1d0], rax
movaps xmm0, xmmword [rsp + 0x200]
movaps xmmword [rsp + 0x1c0], xmm0
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1c8]
mov rdx, qword [rsp + 0x1d0]
mov qword [rsp + 0x190], rdx
mov qword [rsp + 0x188], rcx
mov qword [rsp + 0x180], rax
lea rax, str.lookup_env
mov qword [rsp + 0x170], rax
lea rax, str.C:_Users_Jshaw_Odin_Odin_core_os_env_windows.odin
mov qword [rsp + 0x158], rax
mov qword [rsp + 0x178], 0xa
mov dword [rsp + 0x16c], 2
mov dword [rsp + reloc.WS2_32.dll_shutdown8], 0x16
mov qword [rsp + 0x160], 0x31
mov r8, qword [rsp + 0x38]
mov eax, dword [rsp + 0x19c]
mov ecx, eax
mov rdx, r8
add rdx, 0x10
xorps xmm0, xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x110], 0
mov rax, rsp
mov qword [rax + 0x20], r8
lea r8, str.C:_Users_Jshaw_Odin_Odin_core_os_env_windows.odin
lea r9, [rsp + 0xf0]
call fcn.140075aa0
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x100]
mov r8, qword [rsp + 0x108]
mov r9, qword [rsp + 0x110]
mov qword [rsp + 0xb8], r9
mov qword [rsp + 0xb0], r8
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x1a0]
mov rdx, qword [rsp + 0x98]
mov rax, qword [rsp + 0xa0]
mov r8d, eax
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov dword [rsp + 0x19c], eax
cmp dword [rsp + 0x19c], 0
sete al
and al, 1
cmp al, 0
je 0x140035c6b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x94], eax
cmp dword [rsp + 0x94], 0xcb
sete al
and al, 1
cmp al, 0
je 0x140035c69
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x1b8], 0
mov qword [rsp + 0x1b0], 0
mov byte [rsp + 0x1af], 0
mov qword [rax + 8], 0
mov qword [rax], 0
mov r8, qword [rsp + 0x38]
lea rcx, [rsp + 0x180]
lea rdx, [rsp + 0x158]
call fcn.14006e0f0
xor eax, eax
add rsp, 0x218
ret
jmp 0x140035c6b
mov eax, dword [rsp + 0x19c]
mov r9d, eax
mov qword [rsp + 0x28], r9
mov rcx, qword [rsp + 0xa0]
mov rax, rsp
mov qword [rax + 0x20], rcx
lea rcx, str._d_v_
mov edx, 0x20
mov r8d, 0x22
call fcn.140004360
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x80]
lea r8, [rsp + 0x70]
call fcn.14004a5d0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x1b8], rdx
mov qword [rsp + 0x1b0], rcx
mov byte [rsp + 0x1af], 1
mov rcx, qword [rsp + 0x1b0]
mov rdx, qword [rsp + 0x1b8]
mov r8b, byte [rsp + 0x1af]
mov byte [rsp + 0x36], r8b
mov qword [rsp + 0x1b8], rdx
mov qword [rsp + 0x1b0], rcx
mov byte [rsp + 0x1af], r8b
mov qword [rax + 8], rdx
mov qword [rax], rcx
mov r8, qword [rsp + 0x38]
lea rcx, [rsp + 0x180]
lea rdx, [rsp + 0x158]
call fcn.14006e0f0
mov al, byte [rsp + 0x36]
add rsp, 0x218
ret