Function at 0x1800023e0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov rax, qword [0x180051010]
xor rax, rsp
mov qword [rbp + 0x450], rax
cmp dword [r8 + 0x28], 1
mov r14, r9
mov r13, qword [rbp + 0x4d0]
mov rsi, r8
mov r12, rdx
movzx r15d, cx
jle 0x180002675
xor edx, edx
mov qword [rsp + 0x568], rbx
mov r8d, 0x274
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
lea r9, [rbp - 0x4c]
lea r8, [rbp - 0x50]
mov dword [rbp - 0x50], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSCEnumProtocols]
cmp eax, 0xffffffff
jne 0x180002471
cmp dword [rbp - 0x4c], 0x2747
je 0x180002471
mov r10d, dword [rbp - 0x48]
mov edi, ebx
jmp 0x180002498
mov edx, dword [rbp - 0x50]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea r9, [rbp - 0x4c]
xor ecx, ecx
mov rdx, rax
lea r8, [rbp - 0x50]
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSCEnumProtocols]
mov r10d, eax
mov r9d, dword [rsi + 0x30]
movsxd r8, r10d
test r10d, r10d
jle 0x180002570
mov rdx, rbx
lea rcx, [rdi + 0x24]
nop
cmp dword [rcx], r9d
je 0x1800024cb
inc ebx
inc rdx
add rcx, 0x274
cmp rdx, r8
jl 0x1800024b0
jmp 0x180002570
movsxd rax, ebx
mov ecx, 4
imul rdx, rax, 0x274
lea rax, [rbp - 0x40]
add rdx, rdi
lea rax, [rax + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x1800024e1
movups xmm0, xmmword [rdx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rax + 0x60], xmm0
mov ecx, dword [rdx + 0x70]
mov dword [rax + 0x70], ecx
cmp ebx, r10d
mov rbx, qword [rsp + 0x568]
jge 0x180002675
lea r9, [rbp - 0x44]
mov dword [rbp - 0x48], 0x104
lea r8, [rbp - 0x48]
lea rdx, [rbp + 0x240]
lea rcx, [rbp - 0x2c]
call qword [sym.imp.WS2_32.dll_WSCGetProviderPath]
cmp eax, 0xffffffff
je 0x180002675
mov r8d, 0x104
lea rdx, [rbp + 0x240]
lea rcx, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x180002675
lea rcx, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x180002675
lea rdx, [0x180046580]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002675
movups xmm0, xmmword [r14]
cmp dword [rbp - 0x18], 1
lea r8, [rbp - 0x40]
movups xmm1, xmmword [r14 + 0x10]
lea r9, [rsp + 0x30]
cmovne r8, rsi
movaps xmmword [rsp + 0x30], xmm0
mov rdx, r12
movups xmm0, xmmword [r14 + 0x20]
movzx ecx, r15w
mov qword [rsp + 0x20], r13
movaps xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [r14 + 0x30]
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [r14 + 0x40]
movaps xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [r14 + 0x50]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [r14 + 0x60]
movaps xmmword [rbp - 0x80], xmm1
movsd xmm1, qword [r14 + 0x70]
movaps xmmword [rbp - 0x70], xmm0
movsd qword [rbp - 0x60], xmm1
call rax
test eax, eax
jne 0x18000267a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x18000267a
mov eax, 0x277a
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.18003e990
add rsp, 0x570
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret