Function at 0x140074a8c
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.ws2_32.dll
call fcn.140074344
mov qword [0x1400cf620], rax
mov qword [0x1400cf628], rax
test rax, rax
jne 0x140074acb
lea rcx, str.wsock32.dll
call fcn.140074344
mov qword [0x1400cf620], rax
test rax, rax
je 0x140075242
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140074b58
mov rcx, qword [0x1400cf620]
test rcx, rcx
je 0x140074bc6
lea rdx, str.getaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf630], rax
test rcx, rcx
je 0x140074bd1
lea rdx, str.freeaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf638], rax
test rcx, rcx
je 0x140074c0d
lea rdx, str.getnameinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf640], rax
jmp 0x140074bf9
lea rcx, str.wship6.dll
call fcn.140074344
mov qword [0x1400cf650], rax
test rax, rax
je 0x140074c16
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cf630], rax
mov rcx, qword [0x1400cf650]
test rcx, rcx
je 0x140074bde
lea rdx, str.freeaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf650]
mov qword [0x1400cf638], rax
test rcx, rcx
je 0x140074be9
lea rdx, str.getnameinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140074beb
mov qword [0x1400cf630], 0
mov qword [0x1400cf638], 0
jmp 0x140074c0d
mov qword [0x1400cf638], 0
xor eax, eax
mov qword [0x1400cf640], rax
mov rcx, qword [0x1400cf620]
test rcx, rcx
je 0x140074c0d
lea rdx, str.gai_strerror
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140074c0f
xor eax, eax
mov qword [0x1400cf648], rax
mov rcx, qword [0x1400cf628]
test rcx, rcx
je 0x140074c31
lea rdx, str.WSAAddressToStringA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140074c33
xor eax, eax
mov qword [0x1400cf658], rax
mov rcx, qword [0x1400cf620]
test rcx, rcx
je 0x140075070
lea rdx, str.WSAAsyncSelect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400ce070], rax
test rcx, rcx
je 0x14007507b
lea rdx, str.WSAEventSelect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cecd0], rax
test rcx, rcx
je 0x140075086
lea rdx, [0x1400b0ad8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cfd90], rax
test rcx, rcx
je 0x140075091
lea rdx, str.WSAGetLastError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400ce078], rax
test rcx, rcx
je 0x14007509c
lea rdx, str.WSAEnumNetworkEvents
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cecd8], rax
test rcx, rcx
je 0x1400750a7
lea rdx, str.WSAStartup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf660], rax
test rcx, rcx
je 0x1400750b2
lea rdx, str.WSACleanup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf668], rax
test rcx, rcx
je 0x1400750bd
lea rdx, str.closesocket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf670], rax
test rcx, rcx
je 0x1400750c8
lea rdx, str.ntohl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf678], rax
test rcx, rcx
je 0x1400750d3
lea rdx, str.htonl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf680], rax
test rcx, rcx
je 0x1400750de
lea rdx, str.htons
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf688], rax
test rcx, rcx
je 0x1400750e9
lea rdx, str.ntohs
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf690], rax
test rcx, rcx
je 0x1400750f4
lea rdx, str.gethostname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf698], rax
test rcx, rcx
je 0x1400750ff
lea rdx, str.gethostbyname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf6a0], rax
test rcx, rcx
je 0x14007510a
lea rdx, str.getservbyname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf6a8], rax
test rcx, rcx
je 0x140075115
lea rdx, str.inet_addr
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf6b0], rax
test rcx, rcx
je 0x140075120
lea rdx, str.inet_ntoa
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf6b8], rax
test rcx, rcx
je 0x14007512b
lea rdx, str.inet_ntop
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf6c0], rax
test rcx, rcx
je 0x140075136
lea rdx, [0x1400b0ac5]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf6c8], rax
test rcx, rcx
je 0x140075141
lea rdx, str.bind
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf6d0], rax
test rcx, rcx
je 0x14007514c
lea rdx, str.setsockopt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf6d8], rax
test rcx, rcx
je 0x140075157
lea rdx, [0x1400b0864]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf6e0], rax
test rcx, rcx
je 0x140075162
lea rdx, str.listen
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf6e8], rax
test rcx, rcx
je 0x14007516d
lea rdx, str.send
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf6f0], rax
test rcx, rcx
je 0x140075178
lea rdx, [0x1400b32b2]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf6f8], rax
test rcx, rcx
je 0x140075183
lea rdx, str.ioctlsocket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf700], rax
test rcx, rcx
je 0x14007518e
lea rdx, str.accept
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf708], rax
test rcx, rcx
je 0x140075199
lea rdx, str.getpeername
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf710], rax
test rcx, rcx
je 0x140075222
lea rdx, str.recv
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cf620]
mov qword [0x1400cf718], rax
test rcx, rcx
je 0x14007522d
lea rdx, str.WSAIoctl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x1400751a9
mov qword [0x1400ce070], 0
mov qword [0x1400cecd0], 0
mov qword [0x1400cfd90], 0
mov qword [0x1400ce078], 0
mov qword [0x1400cecd8], 0
mov qword [0x1400cf660], 0
mov qword [0x1400cf668], 0
mov qword [0x1400cf670], 0
mov qword [0x1400cf678], 0
mov qword [0x1400cf680], 0
mov qword [0x1400cf688], 0
mov qword [0x1400cf690], 0
mov qword [0x1400cf698], 0
mov qword [0x1400cf6a0], 0
mov qword [0x1400cf6a8], 0
mov qword [0x1400cf6b0], 0
mov qword [0x1400cf6b8], 0
mov qword [0x1400cf6c0], 0
mov qword [0x1400cf6c8], 0
mov qword [0x1400cf6d0], 0
mov qword [0x1400cf6d8], 0
mov qword [0x1400cf6e0], 0
mov qword [0x1400cf6e8], 0
mov qword [0x1400cf6f0], 0
mov qword [0x1400cf6f8], 0
mov qword [0x1400cf700], 0
mov qword [0x1400cf708], 0
xor eax, eax
mov qword [0x1400cf710], rax
mov qword [0x1400cf718], rax
mov qword [0x1400cf720], rax
lea rdx, [0x1400cf730]
mov cx, 0x202
call qword [0x1400cf660]
test eax, eax
jne 0x1400751ce
cmp byte [0x1400cf730], 2
je 0x14007520a
lea rdx, [0x1400cf730]
mov cx, 2
call qword [0x1400cf660]
test eax, eax
jne 0x1400751ec
cmp byte [0x1400cf730], 2
je 0x14007520a
lea rdx, [0x1400cf730]
mov cx, 0x101
call qword [0x1400cf660]
test eax, eax
jne 0x140075234
cmp byte [0x1400cf730], 1
jne 0x140075234
lea rcx, [0x140075250]
call fcn.14005e058
mov qword [0x1400cf728], rax
add rsp, 0x28
ret
mov qword [0x1400cf718], 0
xor eax, eax
jmp 0x1400751a9
lea rcx, str.Unable_to_initialise_WinSock
call fcn.1400689c4
ud2
lea rcx, str.Unable_to_load_any_WinSock_library
call fcn.1400689c4
ud2