Function at 0x435cb0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x488
mov rbp, rcx
lea rsi, [rsp + 0x88]
mov rcx, rsi
call fcn.00463790
cmp qword [rsp + 0x88], 0
je 0x435d36
mov rbx, qword [rsp + 0x90]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x435e6d
lea rsi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x435d1e
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.0040a2d0
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call fcn.0040a2d0
jmp 0x435e6d
mov r13, qword [rsp + 0x90]
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x40], xmm0
test r13, r13
je 0x435e6d
mov qword [rsp + 0x20], rbp
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x58], r13
xor edi, edi
mov r8d, 0x400
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x28], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov esi, 0x200
mov r15d, 2
cmp rsi, 0x201
jae 0x435de0
jmp 0x435dc2
mov rsi, r8
jae 0x435e8c
cmp rsi, 0x201
jae 0x435de0
mov ebp, 0x200
lea r14, [rsp + 0x88]
mov r12, r14
jmp 0x435e16
mov r8, rsi
sub r8, rdi
mov rax, qword [rsp + 0x30]
sub rax, rdi
cmp rax, r8
jae 0x435e05
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.004242f0
mov r15, qword [rsp + 0x28]
mov qword [rsp + 0x38], rsi
mov rdi, rsi
mov rbp, rsi
mov r12, r15
mov r14, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r13
mov rdx, r14
mov r8d, esi
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x435e3e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x435ec9
mov r8d, ebx
cmp rsi, r8
jne 0x435db0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x435fb8
add rsi, rsi
cmp rsi, 0x201
jb 0x435dc2
jmp 0x435de0
mov qword [rbp], 0
mov rax, rbp
add rsp, 0x488
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp rbp, r8
jb 0x435fd2
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.00446970
mov rsi, qword [rsp + 0x40]
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x70], xmm0
mov bl, 1
movabs rdi, 0x8000000000000001
mov rdx, qword [rsp + 0x30]
test rdx, rdx
jne 0x435eee
jmp 0x435f11
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
xor ebx, ebx
movabs rdi, 0x8000000000000001
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x435f11
lea rax, [rdx + rdx]
add rdx, rdx
jb 0x435f11
add rax, rdi
lea rcx, [rdi + 1]
cmp rax, rcx
jb 0x435f11
mov r8d, 2
mov rcx, r15
call fcn.0040a2d0
test bl, bl
je 0x435f29
movaps xmm0, xmmword [rsp + 0x70]
mov rbp, qword [rsp + 0x20]
movups xmmword [rbp + 8], xmm0
mov qword [rbp], rsi
jmp 0x435f7a
mov rbp, qword [rsp + 0x20]
mov qword [rbp], 0
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x435f7a
lea rbx, [rsi - 1]
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
call qword [rax]
mov rax, qword [rsi + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x435f67
mov r8, qword [rax + 0x10]
mov rcx, qword [rbx]
call fcn.0040a2d0
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.0040a2d0
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x435e75
lea rax, [rdx + rdx]
add rdx, rdx
jb 0x435e75
add rax, rdi
add rdi, 1
cmp rax, rdi
jb 0x435e75
mov r8d, 2
mov rcx, r13
call fcn.0040a2d0
jmp 0x435e75
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.004a3ff0
jmp 0x435fe7
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rbp
mov r8, rax
call fcn.004ab1c0
ud2