Function at 0x1400382c0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x1400a98d0], rax
test rax, rax
jne 0x140038338
lea r8, [rsp + 0x30]
mov dl, 1
lea rcx, [0x140062020]
call fcn.14001fa90
test eax, eax
jns 0x140038316
lea r8, [rsp + 0x30]
mov dl, 1
lea rcx, str.wsock32.dll
call fcn.14001fa90
test eax, eax
js 0x14003865e
mov byte [0x1400a9708], 1
mov rcx, qword [rsp + 0x30]
call fcn.14001f7d0
mov rcx, qword [rsp + 0x30]
mov qword [0x1400a98d0], rax
call fcn.140036070
mov rax, qword [0x1400a98d0]
lea rdx, str.WSAStartup
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.WSACleanup
mov qword [0x1400a98d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.WSAGetLastError
mov qword [0x1400a98e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.WSASetLastError
mov qword [0x1400a98e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.WSACreateEvent
mov qword [0x1400a98f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.WSACloseEvent
mov qword [0x1400a98f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.WSASetEvent
mov qword [0x1400a9900], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.WSAEventSelect
mov qword [0x1400a9908], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.WSAEnumNetworkEvents
mov qword [0x1400a9910], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.WSASocketW
mov qword [0x1400a9918], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.WSASend
mov qword [0x1400a9920], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.socket
mov qword [0x1400a9928], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.closesocket
mov qword [0x1400a9930], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.recv
mov qword [0x1400a9938], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.send
mov qword [0x1400a9940], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.recvfrom
mov qword [0x1400a9948], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.sendto
mov qword [0x1400a9950], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.bind
mov qword [0x1400a9958], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.listen
mov qword [0x1400a9960], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.accept
mov qword [0x1400a9968], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a9970], rax
lea rdx, str.connect
mov rcx, qword [0x1400a98d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.shutdown
mov qword [0x1400a9978], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.getsockopt
mov qword [0x1400a9980], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.setsockopt
mov qword [0x1400a9988], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.ioctlsocket
mov qword [0x1400a9990], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.getpeername
mov qword [0x1400a9998], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.getsockname
mov qword [0x1400a99a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.__WSAFDIsSet
mov qword [0x1400a99a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.select
mov qword [0x1400a99b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a98d0]
lea rdx, str.gethostbyname
mov qword [0x1400a99b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a99c0], rax
add rsp, 0x28
ret