Function at 0x1400246d8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
cmp dword [rcx + 0xc8], 0
mov r12d, r8d
mov r15, rdx
mov rbx, rcx
jne 0x140024717
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x140024861
cmp qword [rcx + 0xe8], 0
je 0x140024732
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 1
jmp 0x140024861
test r12d, 0xffffffe0
jne 0x140024706
mov r14d, r12d
and r14d, 8
je 0x140024768
mov ebp, r12d
and ebp, 1
jne 0x140024706
mov rdx, qword [rcx + 0x1c0]
mov rcx, r15
call fcn.1400626e8
test eax, eax
je 0x140024706
mov r13d, r12d
and r13d, 0x10
jmp 0x14002478e
mov r13d, r12d
and r13d, 0x10
jne 0x140024706
mov rdx, qword [rcx + 0x1b8]
mov ebp, r12d
mov rcx, r15
and ebp, 1
call fcn.1400626e8
test eax, eax
je 0x140024706
call fcn.140061a0c
mov rsi, rax
call fcn.140061a0c
mov rdi, rax
test rsi, rsi
je 0x140024851
test rax, rax
je 0x140024851
mov rdx, r15
test r14d, r14d
je 0x1400248e0
mov rcx, rax
call fcn.14006267c
test r13d, r13d
je 0x14002488f
mov edx, 3
mov rcx, rbx
call fcn.140062ed4
cmp eax, 0xffffffff
jne 0x1400247e3
xor ebp, ebp
jmp 0x1400247f8
cmp eax, 0xfffffffe
je 0x1400247df
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call fcn.140062f78
mov rbp, rax
mov rcx, qword [rbp + 0xb8]
call fcn.1400620b0
test eax, eax
jne 0x14002481b
mov rcx, qword [rbp + 0xc8]
mov rdx, rdi
call fcn.1400627a8
test eax, eax
je 0x140024826
mov edx, dword [rbp + 0x10]
mov rcx, rsi
call fcn.140061f68
mov rbp, qword [rbp + 0x38]
test rbp, rbp
jne 0x1400247f8
lea r14, [rbx + 0x1b8]
mov rdx, rsi
mov rcx, qword [r14]
call fcn.1400627a8
test eax, eax
je 0x140024881
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
mov rcx, rsi
call fcn.140061a8c
mov rcx, rdi
call fcn.140061a8c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, rsi
call fcn.1400620b0
test eax, eax
je 0x1400248a0
jmp 0x140024896
lea r14, [rbx + 0x1b8]
mov rcx, rsi
call fcn.140061a8c
xor esi, esi
lea r15, [rbx + 0x18]
mov qword [rsp + 0x20], rdi
mov r8, qword [r15]
mov r9, rsi
mov edx, r12d
mov rcx, rbx
mov r8, qword [r8]
call fcn.140028a5c
mov rcx, qword [rbx + 0x1c0]
mov r8, rdi
mov rdx, rcx
call fcn.140062558
test rsi, rsi
je 0x1400249cd
mov r8, rsi
jmp 0x1400249c2
mov rcx, rsi
call fcn.14006267c
test ebp, ebp
je 0x14002497a
mov edx, reloc.WS2_32.dll_listen
mov rcx, rbx
call fcn.140062ed4
cmp eax, 0xffffffff
jne 0x140024906
xor ebp, ebp
jmp 0x14002491b
cmp eax, 0xfffffffe
je 0x140024902
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call fcn.140062f78
mov rbp, rax
mov rcx, qword [rbp + 0xb8]
call fcn.1400620b0
test eax, eax
jne 0x14002493e
mov rcx, qword [rbp + 0xb8]
mov rdx, rsi
call fcn.1400627a8
test eax, eax
je 0x140024949
mov edx, dword [rbp + 0x10]
mov rcx, rdi
call fcn.140061f68
mov rbp, qword [rbp + 0x38]
test rbp, rbp
jne 0x14002491b
lea r14, [rbx + 0x1c0]
mov rdx, rdi
mov rcx, qword [r14]
call fcn.1400627a8
test eax, eax
jne 0x140024845
mov rcx, rdi
call fcn.1400620b0
test eax, eax
je 0x14002498b
jmp 0x140024981
lea r14, [rbx + 0x1c0]
mov rcx, rdi
call fcn.140061a8c
xor edi, edi
lea r15, [rbx + 0x18]
mov qword [rsp + 0x20], rdi
mov r8, qword [r15]
mov r9, rsi
mov edx, r12d
mov rcx, rbx
mov r8, qword [r8]
call fcn.14002889c
mov rcx, qword [rbx + 0x1b8]
mov r8, rsi
mov rdx, rcx
call fcn.140062558
test rdi, rdi
je 0x1400249cd
mov r8, rdi
mov rdx, qword [r14]
mov rcx, rdx
call fcn.140062558
mov rcx, rsi
call fcn.140061a8c
mov rcx, rdi
call fcn.140061a8c
mov rcx, rbx
call fcn.140027750
test eax, eax
jns 0x1400249fe
mov rcx, rbx
call fcn.1400252a0
mov rcx, rbx
call fcn.14002516c
jmp 0x140024861
test byte [rbx + 0x20], 0x80
jne 0x140024a0c
mov rcx, rbx
call fcn.140065ee8
test dword [rbx + 0x20], 0x100
jne 0x140024a1d
mov rcx, rbx
call fcn.140067248
test dword [rbx + 0x20], 0x200
jne 0x140024a2e
mov rcx, rbx
call fcn.140068d2c
mov rax, qword [r15]
mov rcx, rbx
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.140026898
mov rax, qword [r15]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.1400269c4
lea rcx, str.HWLOC_DEBUG_CHECK
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor eax, eax
jmp 0x140024864