Function at 0x140066130
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rbx
push r12
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1400f3e08]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r15, r9
mov r12, r8
mov r14, rdx
test rdx, rdx
je 0x14006616e
mov eax, dword [rdx + 8]
test eax, eax
jne 0x140066174
mov eax, dword [0x1400f8b28]
mov ebx, eax
shl rbx, 7
add rbx, 0xc0
test r15, r15
jne 0x140066190
mov eax, 0x80070057
jmp 0x1400665ba
mov rcx, qword [0x1400f8a70]
mov r8, rbx
mov qword [rsp + 0x340], rsi
xor edx, edx
mov qword [rsp + 0x350], rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x14006621e
test byte [0x1400f8b38], 2
je 0x140066214
lea rax, str.CXPLAT_DATAPATH
mov qword [rsp + 0x48], rbx
mov qword [rbp + 0x110], rax
lea r9d, [rsi + 3]
lea rax, [rsp + 0x48]
mov qword [rbp + 0x118], reloc.WS2_32.dll_recv
mov qword [rbp + 0x120], rax
lea rdx, [0x1400d0050]
lea rax, [rbp + 0x100]
mov qword [rbp + 0x128], 8
mov qword [rsp + 0x20], rax
call fcn.140001460
mov eax, 0x8007000e
jmp 0x1400665aa
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.1400819f0
prefetchw byte [0x1400f8aa0]
mov rax, qword [0x1400f8aa0]
xor edi, edi
lea rcx, [rax + 1]
cmp rcx, 1
jbe 0x14006626b
nop word [rax + rax]
lock cmpxchg qword [0x1400f8aa0], rcx
mov rcx, rax
je 0x1400662ee
inc rcx
cmp rcx, 1
ja 0x140066250
je 0x140066274
mov ecx, recv
int 0x29
test byte [0x1400f8b38], 4
je 0x1400662ec
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 0x31
mov qword [rbp + 0x140], rax
lea rdx, [0x1400d0898]
lea rax, str.C:Users_adminDownloadsquicreach_mainquicreachmsquic_srcplatformdatapath_raw.c
mov qword [rbp + 0x148], 4
mov qword [rbp + 0x150], rax
mov r9d, 4
lea rax, str.CxPlatRefIncrementNonZero__CxPlatWorkerRundown___RefCount__1_
mov qword [rbp + 0x158], 0x55
mov qword [rbp + 0x160], rax
lea rax, [rbp + 0x130]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x168], 0x40
call fcn.140001460
int 0x2c
test r14, r14
je 0x1400662fd
test byte [r14], 1
je 0x1400662fd
mov byte [rsi + 0x50], 1
lea rbx, [rsi + 0x10]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
call fcn.14005ca20
test al, al
je 0x14006638f
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400663db
test byte [0x1400f8b38], 4
je 0x140066387
mov dword [rsp + 0x40], eax
lea rdx, [0x1400d0948]
lea rax, [rsp + 0x40]
mov qword [rbp + 0x188], 4
mov qword [rbp + 0x180], rax
mov r9d, 3
lea rax, str.WSAStartup
mov qword [rbp + 0x198], SafeArrayLock
mov qword [rbp + 0x190], rax
lea rax, [rbp + 0x170]
mov qword [rsp + 0x20], rax
call fcn.140001460
mov rcx, rbx
call fcn.14005cbb0
mov ebx, 0x8007000e
mov rcx, qword [0x1400f8a70]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, 0xffffffffffffffff
lock xadd qword [0x1400f8aa0], rax
sub rax, 1
jg 0x1400665a8
test rax, rax
jne 0x1400665a1
mov rcx, qword [0x1400f8aa8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1400665a8
mov r8, r14
mov rcx, rsi
call fcn.14006a730
mov ebx, eax
test eax, eax
js 0x140066596
mov rcx, qword [0x1400f8a70]
xor edx, edx
mov r8d, 0xc0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x14006647d
test byte [0x1400f8b38], 2
je 0x14006646b
lea rax, str.CXPLAT_DATAPATH
mov qword [rsp + 0x50], 0xc0
mov qword [rbp + 0x1b0], rax
lea r9d, [r14 + 3]
lea rax, [rsp + 0x50]
mov qword [rbp + 0x1b8], reloc.WS2_32.dll_recv
mov qword [rbp + 0x1c0], rax
lea rdx, [0x1400d0050]
lea rax, [rbp + 0x1a0]
mov qword [rbp + 0x1c8], 8
mov qword [rsp + 0x20], rax
call fcn.140001460
mov ebx, 0x8007000e
mov rcx, rsi
call fcn.14006b110
jmp 0x1400665a8
xor r9d, r9d
mov byte [rax], 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [r14 + 0x50]
mov qword [r14 + 8], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [r14 + 0x20]
lea rax, [r14 + 0x78]
mov dword [rcx + 0x10], 0x80
mov qword [rax + 8], rax
mov qword [rax], rax
lea rax, [0x1400013c0]
mov qword [rcx + 0x20], rax
lea rax, [0x1400013e0]
mov qword [rcx + 0x28], rax
mov dword [rcx + 0x14], 0x42346351
mov dword [rcx + 0x18], 0x100
call qword [sym.imp.KERNEL32.dll_InitializeSListHead]
lea rax, str.RouteResolutionWorkerThread
mov dword [rbp + 0x100], edi
mov qword [rbp + 0x108], rax
lea rdx, [r14 + 0x10]
lea rax, [0x140067540]
mov qword [rbp + 0x118], r14
lea rcx, [rbp + 0x100]
mov qword [rbp + 0x110], rax
call fcn.140031500
mov ebx, eax
test eax, eax
jns 0x14006658a
test byte [0x1400f8b38], 4
je 0x140066578
mov dword [rsp + 0x48], eax
lea rdx, [0x1400d0948]
lea rax, [rsp + 0x48]
mov qword [rbp + 0x1e8], 4
mov qword [rbp + 0x1e0], rax
mov r9d, 3
lea rax, str.CxPlatThreadCreate
mov qword [rbp + 0x1f8], reloc.OLEAUT32.dll_SafeArrayGetLBound
mov qword [rbp + 0x1f0], rax
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
call fcn.140001460
mov rcx, r14
call fcn.140067200
mov rcx, rsi
call fcn.14006b110
jmp 0x1400665a8
mov qword [rsi + 0x38], r14
mov qword [r15], rsi
mov qword [rsi], r12
jmp 0x1400665a8
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140066394
mov ecx, recv
int 0x29
mov eax, ebx
mov rsi, qword [rsp + 0x340]
mov rdi, qword [rsp + 0x350]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14007f5b0
add rsp, 0x310
pop r15
pop r14
pop r12
pop rbx
pop rbp
ret