Function at 0x1400bd6e0
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x220
mov qword [rbp - 0x200], rbx
mov qword [rbp - 0x1f8], rsi
mov qword [rbp - 0x1f0], rdi
mov qword [rbp - 0x1e8], r12
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rsi, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0xc0], rax
mov qword [rbp - 0xb8], rdx
lea rdx, [rbp - 0xc0]
lea rcx, [rbp - 0x1d0]
call fcn.1400c90d0
mov qword [rbp - 0xb0], 0
mov qword [rbp - 0xa8], 0
xor ecx, ecx
sub rsp, 0x20
call sub.KERNEL32.dll_SetLastError
add rsp, 0x20
xor r8d, r8d
xor edx, edx
mov qword [rbp - 0x1e0], rdx
mov qword [rbp - 0x1d8], r8
lea rcx, [rbp - 0x1d0]
sub rsp, 0x20
call fcn.14000e7a0
add rsp, 0x20
mov rcx, rax
mov r8, qword [rbp - 0x1d8]
mov rdx, qword [rbp - 0x1e0]
sub rsp, 0x20
call sub.KERNEL32.dll_GetEnvironmentVariableW
add rsp, 0x20
mov ebx, eax
test ebx, ebx
jne 0x1400bd88a
sub rsp, 0x20
call sub.KERNEL32.dll_GetLastError
add rsp, 0x20
mov edi, eax
cmp edi, 0xcb
jne 0x1400bd824
mov qword [rbp - 0x90], 0
mov qword [rbp - 0x88], 0
lea rdx, [rbp - 0x90]
mov rcx, qword [rsi]
sub rsp, 0x20
call qword [rsi + reloc.WS2_32.dll_htonl]
add rsp, 0x20
sub rsp, 8
call fcn.1400bdb63
add rsp, 8
mov rbx, qword [rbp - 0x200]
mov rsi, qword [rbp - 0x1f8]
mov rdi, qword [rbp - 0x1f0]
mov r12, qword [rbp - 0x1e8]
mov rsp, rbp
pop rbp
ret
test edi, edi
je 0x1400bd88a
lea rcx, [0x1401b46f0]
sub rsp, 0x20
call fcn.1400a9c50
add rsp, 0x20
mov rsi, rax
sub rsp, 8
push rdi
mov qword [rbp - 0x80], 0
mov qword [rbp - 0x78], 0
lea r9, [rbp - 0x80]
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x68], 0
lea r8, [rbp - 0x70]
xor edx, edx
mov rcx, rsi
sub rsp, 0x20
call fcn.1400dc230
add rsp, 0x30
mov rcx, rax
sub rsp, 0x20
call fcn.1400b3dc0
cmp ebx, 1
ja 0x1400bd8e3
lea rax, [0x140170040]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], 0
lea rdx, [rbp - 0x60]
mov rcx, qword [rsi]
sub rsp, 0x20
call qword [rsi + reloc.WS2_32.dll_htonl]
add rsp, 0x20
sub rsp, 8
call fcn.1400bdb63
add rsp, 8
mov rbx, qword [rbp - 0x200]
mov rsi, qword [rbp - 0x1f8]
mov rdi, qword [rbp - 0x1f0]
mov r12, qword [rbp - 0x1e8]
mov rsp, rbp
pop rbp
ret
mov qword [rbp + 0x10], rsi
mov dword [rbp - 0xa0], ebx
lea rdx, [rbp - 0xb0]
mov ecx, dword [rbp - 0xa0]
sub rsp, 0x20
call fcn.1400c9940
add rsp, 0x20
lea rcx, [rbp - 0x1d0]
sub rsp, 0x20
call fcn.14000e7a0
add rsp, 0x20
mov rdi, rax
mov rbx, qword [rbp - 0xa8]
mov rcx, qword [rbp - 0xb0]
sub rsp, 0x20
call fcn.1400dc370
add rsp, 0x20
mov r12d, eax
mov r8d, r12d
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call sub.KERNEL32.dll_GetEnvironmentVariableW
add rsp, 0x20
mov esi, eax
test esi, esi
jne 0x1400bda82
mov rsi, qword [rbp + 0x10]
sub rsp, 0x20
call sub.KERNEL32.dll_GetLastError
add rsp, 0x20
mov edi, eax
test edi, edi
jne 0x1400bd9c7
lea rax, [0x140170040]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
lea rdx, [rbp - 0x50]
mov rcx, qword [rsi]
sub rsp, 0x20
call qword [rsi + reloc.WS2_32.dll_htonl]
add rsp, 0x20
sub rsp, 8
call fcn.1400bdb63
add rsp, 8
mov rbx, qword [rbp - 0x200]
mov rsi, qword [rbp - 0x1f8]
mov rdi, qword [rbp - 0x1f0]
mov r12, qword [rbp - 0x1e8]
mov rsp, rbp
pop rbp
ret
cmp edi, 0xcb
jne 0x1400bda20
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
lea rdx, [rbp - 0x40]
mov rcx, qword [rsi]
sub rsp, 0x20
call qword [rsi + reloc.WS2_32.dll_htonl]
add rsp, 0x20
sub rsp, 8
call fcn.1400bdb63
add rsp, 8
mov rbx, qword [rbp - 0x200]
mov rsi, qword [rbp - 0x1f8]
mov rdi, qword [rbp - 0x1f0]
mov r12, qword [rbp - 0x1e8]
mov rsp, rbp
pop rbp
ret
lea rcx, [0x1401b46f0]
sub rsp, 0x20
call fcn.1400a9c50
add rsp, 0x20
mov rsi, rax
sub rsp, 8
push rdi
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
lea r9, [rbp - 0x30]
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
lea r8, [rbp - 0x20]
xor edx, edx
mov rcx, rsi
sub rsp, 0x20
call fcn.1400dc230
add rsp, 0x30
mov rcx, rax
sub rsp, 0x20
call fcn.1400b3dc0
mov eax, esi
cmp rax, qword [rbp - 0xb0]
jae 0x1400bdae3
mov eax, esi
mov qword [rbp - 0x10], rax
mov rbx, qword [rbp - 0xa8]
mov qword [rbp - 8], rbx
lea rdx, [rbp - 0x10]
mov rdi, qword [rbp + 0x10]
mov rcx, qword [rdi]
sub rsp, 0x20
call qword [rdi + reloc.WS2_32.dll_htonl]
add rsp, 0x20
sub rsp, 8
call fcn.1400bdb63
add rsp, 8
mov rbx, qword [rbp - 0x200]
mov rsi, qword [rbp - 0x1f8]
mov rdi, qword [rbp - 0x1f0]
mov r12, qword [rbp - 0x1e8]
mov rsp, rbp
pop rbp
ret
lea rdx, [rbp - 0xb0]
mov rcx, rax
sub rsp, 0x20
call fcn.1400c9940
add rsp, 0x20
lea rcx, [rbp - 0x1d0]
sub rsp, 0x20
call fcn.14000e7a0
add rsp, 0x20
mov rdi, rax
mov rbx, qword [rbp - 0xa8]
mov rcx, qword [rbp - 0xb0]
sub rsp, 0x20
call fcn.1400dc370
add rsp, 0x20
mov r12d, eax
mov r8d, r12d
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call sub.KERNEL32.dll_GetEnvironmentVariableW
add rsp, 0x20
mov esi, eax
test esi, esi
jne 0x1400bda82
jmp 0x1400bd95c