Function at 0x14005f350
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rbx
push rdi
push r13
push r14
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x1400f3e08]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov r13, qword [rbp + 0x350]
mov rbx, r9
mov edi, dword [0x1400f8b28]
mov r14, rdx
mov qword [rsp + 0x50], r13
test r13, r13
jne 0x14005f39f
mov eax, 0x80070057
jmp 0x14005fac1
test r14, r14
je 0x14005f3b1
cmp qword [rdx], 0
je 0x14005f395
cmp qword [rdx + 8], 0
je 0x14005f395
mov rcx, rbx
call fcn.14005deb0
test al, al
jne 0x14005f3c7
mov eax, 0x8007000e
jmp 0x14005fac1
mov ecx, 0x202
mov qword [rsp + 0x430], rsi
lea rdx, [rbp + 0x90]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test eax, eax
je 0x14005f45a
test byte [0x1400f8b38], 4
je 0x14005f442
mov dword [rsp + 0x60], eax
lea rdx, [0x1400d0948]
lea rax, [rsp + 0x60]
mov qword [rbp + 0x248], 4
mov qword [rbp + 0x240], rax
mov r9d, 3
lea rax, str.WSAStartup
mov qword [rbp + 0x258], SafeArrayLock
mov qword [rbp + 0x250], rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x20], rax
call fcn.140001460
test esi, esi
jg 0x14005f44d
mov eax, esi
jmp 0x14005fab9
movzx eax, si
or eax, 0x80070000
jmp 0x14005fab9
mov qword [rsp + 0x440], r15
test rbx, rbx
je 0x14005f46f
mov eax, dword [rbx + 8]
test eax, eax
cmovne edi, eax
mov rcx, qword [0x1400f8a70]
xor edx, edx
imul eax, edi, 0x1c0
add eax, 0x100
mov r8d, eax
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x14005f4fb
test byte [0x1400f8b38], 2
je 0x14005f4f1
lea rax, str.CXPLAT_DATAPATH
mov qword [rsp + 0x60], r15
mov qword [rbp + 0x240], rax
lea r9d, [rsi + 3]
lea rax, [rsp + 0x60]
mov qword [rbp + 0x248], reloc.WS2_32.dll_recv
mov qword [rbp + 0x250], rax
lea rdx, [0x1400d0050]
lea rax, [rbp + 0x230]
mov qword [rbp + 0x258], 8
mov qword [rsp + 0x20], rax
call fcn.140001460
mov ebx, 0x8007000e
jmp 0x14005faa9
mov r8, r15
xor edx, edx
mov rcx, rsi
call fcn.1400819f0
test r14, r14
je 0x14005f514
movups xmm0, xmmword [r14]
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14005f538
test byte [rbx], 1
je 0x14005f538
or byte [rsi + 0xd7], 8
movzx eax, di
mov word [rsi + 0xd4], ax
mov qword [rsi + 0xc0], rax
jmp 0x14005f54e
movzx eax, di
mov word [rsi + 0xd4], ax
mov qword [rsi + 0xc0], rax
test rbx, rbx
je 0x14005f557
test byte [rbx], 2
je 0x14005f557
mov cl, 1
jmp 0x14005f559
xor cl, cl
movzx eax, byte [rsi + 0xd7]
mov edx, 1
and al, 0xfe
mov byte [rsp + 0x58], 0
or al, cl
mov byte [rsi + 0xd7], al
lea ecx, [rdx + 0x16]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
xor r14d, r14d
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14005f619
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 0x20
je 0x14005f6fd
mov rbx, rdi
mov dword [rsp + 0x20], eax
mov r8, rbx
lea r9, str._data__RSS_helper_socket_failed_to_open__0x_x
mov edx, 0x80
lea rcx, [rbp + 0x270]
call fcn.1400015d0
lea rax, [rbp + 0x270]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x14005f5d0
lea rax, [rbp + 0x270]
mov dword [rbp + 0x24c], r14d
mov qword [rbp + 0x240], rax
lea rdx, [0x1400d0598]
lea rax, [rbp + 0x230]
inc ebx
mov r9d, 2
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x248], ebx
call fcn.140001460
jmp 0x14005f6fd
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 1
mov edx, 0x580000d2
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14005f6e6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 0x20
je 0x14005f6f4
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
mov r8, rbx
lea r9, str._data__Query_for_SIO_QUERY_RSS_SCALABILITY_INFO_failed__0x_x
mov edx, 0x80
lea rcx, [rbp + 0x270]
call fcn.1400015d0
lea rax, [rbp + 0x270]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x14005f6a0
lea rax, [rbp + 0x270]
mov dword [rbp + 0x24c], r14d
mov qword [rbp + 0x240], rax
lea rdx, [0x1400d0598]
lea rax, [rbp + 0x230]
inc ebx
mov r9d, 2
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x248], ebx
call fcn.140001460
jmp 0x14005f6f4
cmp byte [rsp + 0x58], r14b
je 0x14005f6f4
or dword [rsi + 0xc8], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rsi
call fcn.14005ee00
mov ebx, eax
test eax, eax
js 0x14005fa97
lea rcx, [0x1400da098]
mov qword [rsp + 0x438], r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14005f78a
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14005f781
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, pe_nt_image_headers64
call fcn.1400819f0
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x114
mov rax, rdi
call qword [case.0x1400639e1.0]
test eax, eax
jne 0x14005f781
cmp dword [rsp + 0x7c], 0x4563
jb 0x14005f781
or dword [rsi + 0xc8], 0x10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [rsi + 0xd6], 1
mov edx, 0x2560
mov eax, dword [rsi + 0xc8]
mov ecx, 0x1f0
bt eax, 1
mov dword [rsi + 0xcc], 0x90
mov r15d, 0x5c0
movzx r12d, r14w
cmovb ecx, edx
mov edx, 0xfff7
cmovb r15d, edx
mov dword [rsi + 0xd0], ecx
add r15d, ecx
cmp r14w, word [rsi + 0xd4]
jae 0x14005f9d0
lea r13, [0x1400013c0]
lea r14, [0x1400013e0]
nop word [rax + rax]
movzx eax, r12w
movzx ecx, r12w
imul rdi, rax, 0x1c0
add rdi, rsi
mov qword [rdi + 0x100], rsi
mov word [rdi + 0x118], r12w
call fcn.14005e290
lea rcx, [rdi + 0x120]
mov qword [rdi + 0x108], rax
mov qword [rdi + 0x110], 1
mov dword [rcx + 0x10], 0x138
mov dword [rcx + 0x14], 0x41316351
mov dword [rcx + 0x18], 0x100
mov qword [rcx + 0x20], r13
mov qword [rcx + 0x28], r14
call qword [sym.imp.KERNEL32.dll_InitializeSListHead]
lea rbx, [rdi + 0x150]
lea rax, [0x140063870]
mov dword [rbx + 0x10], 0x138
mov qword [rbx + 0x20], rax
mov rcx, rbx
lea rax, [0x140063900]
mov dword [rbx + 0x14], 0x41316351
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_InitializeSListHead]
lea rcx, [rdi + 0x180]
mov dword [rbx + 0x18], 0x100
mov dword [rcx + 0x10], 0x5c0
mov dword [rcx + 0x14], 0x36306351
mov dword [rcx + 0x18], 0x100
mov qword [rcx + 0x20], r13
mov qword [rcx + 0x28], r14
call qword [sym.imp.KERNEL32.dll_InitializeSListHead]
lea rcx, [rdi + 0x1b0]
mov dword [rcx + 0x10], 0xffff
mov dword [rcx + 0x14], 0x36306351
mov dword [rcx + 0x18], 0x100
mov qword [rcx + 0x20], r13
mov qword [rcx + 0x28], r14
call qword [sym.imp.KERNEL32.dll_InitializeSListHead]
lea rbx, [rdi + 0x1e0]
lea rax, [0x140063aa0]
mov dword [rbx + 0x10], 0x5c0
mov qword [rbx + 0x20], rax
mov rcx, rbx
lea rax, [0x140063ac0]
mov dword [rbx + 0x14], 0x36306351
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_InitializeSListHead]
mov dword [rbx + 0x18], 0x2000
lea rax, [0x140063ab0]
lea rbx, [rdi + 0x210]
mov qword [rbx + 0x20], rax
mov rcx, rbx
lea rax, [0x140063ac0]
mov dword [rbx + 0x10], 0xffff
mov qword [rbx + 0x28], rax
mov dword [rbx + 0x14], 0x36306351
call qword [sym.imp.KERNEL32.dll_InitializeSListHead]
lea rcx, [rdi + 0x240]
mov dword [rbx + 0x18], 0x2000
mov dword [rcx + 0x10], r15d
mov dword [rcx + 0x14], 0x36306351
mov dword [rcx + 0x18], 0x100
mov qword [rcx + 0x20], r13
mov qword [rcx + 0x28], r14
call qword [sym.imp.KERNEL32.dll_InitializeSListHead]
lea rbx, [rdi + 0x270]
lea rax, [0x1400618d0]
mov dword [rbx + 0x10], r15d
mov qword [rbx + 0x20], rax
mov rcx, rbx
lea rax, [0x140061960]
mov dword [rbx + 0x14], 0x36306351
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_InitializeSListHead]
inc r12w
mov dword [rbx + 0x18], 0x2000
cmp r12w, word [rsi + 0xd4]
jb 0x14005f7f0
mov r13, qword [rsp + 0x50]
xor r14d, r14d
prefetchw byte [0x1400f8aa0]
mov rax, qword [0x1400f8aa0]
mov r12, qword [rsp + 0x438]
lea rcx, [rax + 1]
cmp rcx, 1
jbe 0x14005fa0b
lock cmpxchg qword [0x1400f8aa0], rcx
mov rcx, rax
je 0x14005fa8e
inc rcx
cmp rcx, 1
ja 0x14005f9f0
je 0x14005fa14
mov ecx, recv
int 0x29
test byte [0x1400f8b38], 4
je 0x14005fa8c
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], 0x3cc
mov qword [rbp + 0x240], rax
lea rdx, [0x1400d0898]
lea rax, str.C:Users_adminDownloadsquicreach_mainquicreachmsquic_srcplatformdatapath_winuser.c
mov qword [rbp + 0x248], 4
mov qword [rbp + 0x250], rax
mov r9d, 4
lea rax, str.CxPlatRefIncrementNonZero__CxPlatWorkerRundown___RefCount__1_
mov qword [rbp + 0x258], 0x59
mov qword [rbp + 0x260], rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x268], 0x40
call fcn.140001460
int 0x2c
mov qword [r13], rsi
mov eax, r14d
jmp 0x14005fab1
mov rcx, qword [0x1400f8a70]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov r15, qword [rsp + 0x440]
mov rsi, qword [rsp + 0x430]
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.14007f5b0
add rsp, 0x400
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret