Function at 0x14005c8c0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, [0x1400b7eb8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x140105cb0], rax
test rax, rax
jne 0x14005c938
lea r8, [rsp + 0x30]
mov dl, 1
lea rcx, str.ws2_32.dll
call fcn.140059a20
test eax, eax
jns 0x14005c916
lea r8, [rsp + 0x30]
mov dl, 1
lea rcx, str.wsock32.dll
call fcn.140059a20
test eax, eax
js 0x14005cc5e
mov byte [0x140105ae0], 1
mov rcx, qword [rsp + 0x30]
call fcn.140059760
mov rcx, qword [rsp + 0x30]
mov qword [0x140105cb0], rax
call fcn.140059ae0
mov rax, qword [0x140105cb0]
lea rdx, str.WSAStartup
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.WSACleanup
mov qword [0x140105cb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.WSAGetLastError
mov qword [0x140105cc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.WSASetLastError
mov qword [0x140105cc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.WSACreateEvent
mov qword [0x140105cd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.WSACloseEvent
mov qword [0x140105cd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.WSASetEvent
mov qword [0x140105ce0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.WSAEventSelect
mov qword [0x140105ce8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.WSAEnumNetworkEvents
mov qword [0x140105cf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.WSASocketW
mov qword [0x140105cf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.WSASend
mov qword [0x140105d00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.socket
mov qword [0x140105d08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.closesocket
mov qword [0x140105d10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.recv
mov qword [0x140105d18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.send
mov qword [0x140105d20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.recvfrom
mov qword [0x140105d28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.sendto
mov qword [0x140105d30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.bind
mov qword [0x140105d38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.listen
mov qword [0x140105d40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.accept
mov qword [0x140105d48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140105d50], rax
lea rdx, str.connect
mov rcx, qword [0x140105cb0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.shutdown
mov qword [0x140105d58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.getsockopt
mov qword [0x140105d60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.setsockopt
mov qword [0x140105d68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.ioctlsocket
mov qword [0x140105d70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.getpeername
mov qword [0x140105d78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.getsockname
mov qword [0x140105d80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.__WSAFDIsSet
mov qword [0x140105d88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.select
mov qword [0x140105d90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105cb0]
lea rdx, str.gethostbyname
mov qword [0x140105d98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140105da0], rax
add rsp, 0x28
ret