Function at 0x140084200
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.ws2_32.dll
call fcn.140082e60
mov qword [0x140121a18], rax
mov qword [0x140121bb8], rax
test rax, rax
jne 0x14008423f
lea rcx, str.wsock32.dll
call fcn.140082e60
mov qword [0x140121a18], rax
test rax, rax
je 0x14008485f
lea rdx, str.getaddrinfo
mov qword [rsp + 0x20], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
test rax, rax
je 0x140084309
mov rcx, qword [0x140121a18]
test rcx, rcx
je 0x140084281
lea rdx, str.getaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x140084284
mov rax, rbx
mov qword [0x1401219f0], rax
test rcx, rcx
je 0x1400842a6
lea rdx, str.freeaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400842a9
mov rax, rbx
mov qword [0x1401219f8], rax
test rcx, rcx
je 0x1400842cb
lea rdx, str.getnameinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400842ce
mov rax, rbx
mov qword [0x140121a00], rax
test rcx, rcx
je 0x1400842fa
lea rdx, str.gai_strerror
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
mov qword [0x140121a08], rax
jmp 0x140084398
mov rax, rbx
mov qword [0x140121a08], rbx
jmp 0x140084398
lea rcx, str.wship6.dll
call fcn.140082e60
mov qword [0x140121bc0], rax
test rax, rax
je 0x140084391
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121bc0]
mov qword [0x1401219f0], rax
test rcx, rcx
je 0x14008435a
lea rdx, str.freeaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121bc0]
jmp 0x14008435d
mov rax, rbx
mov qword [0x1401219f8], rax
test rcx, rcx
je 0x140084382
lea rdx, str.getnameinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400842ce
mov rcx, qword [0x140121a18]
mov rax, rbx
jmp 0x1400842ce
mov rcx, qword [0x140121a18]
mov rax, qword [0x140121bb8]
test rax, rax
je 0x1400843bd
lea rdx, str.WSAAddressToStringA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400843c0
mov rax, rbx
mov qword [0x140121a10], rax
test rcx, rcx
je 0x1400843e2
lea rdx, str.WSAAsyncSelect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400843e5
mov rax, rbx
mov qword [0x140123460], rax
test rcx, rcx
je 0x140084407
lea rdx, str.WSAEventSelect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x14008440a
mov rax, rbx
mov qword [0x140123458], rax
test rcx, rcx
je 0x14008442c
lea rdx, str.select
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x14008442f
mov rax, rbx
mov qword [0x140123440], rax
test rcx, rcx
je 0x140084451
lea rdx, str.WSAGetLastError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x140084454
mov rax, rbx
mov qword [0x140123450], rax
test rcx, rcx
je 0x140084476
lea rdx, str.WSAEnumNetworkEvents
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x140084479
mov rax, rbx
mov qword [0x140123448], rax
test rcx, rcx
je 0x14008449b
lea rdx, str.WSAStartup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x14008449e
mov rax, rbx
mov qword [0x140121958], rax
test rcx, rcx
je 0x1400844c0
lea rdx, str.WSACleanup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400844c3
mov rax, rbx
mov qword [0x140121960], rax
test rcx, rcx
je 0x1400844e5
lea rdx, str.closesocket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400844e8
mov rax, rbx
mov qword [0x140121928], rax
test rcx, rcx
je 0x14008450a
lea rdx, str.ntohl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x14008450d
mov rax, rbx
mov qword [0x140121968], rax
test rcx, rcx
je 0x14008452f
lea rdx, str.htonl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x140084532
mov rax, rbx
mov qword [0x140121970], rax
test rcx, rcx
je 0x140084554
lea rdx, str.htons
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x140084557
mov rax, rbx
mov qword [0x140121978], rax
test rcx, rcx
je 0x140084579
lea rdx, str.ntohs
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x14008457c
mov rax, rbx
mov qword [0x140121930], rax
test rcx, rcx
je 0x14008459e
lea rdx, str.gethostname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400845a1
mov rax, rbx
mov qword [0x140121980], rax
test rcx, rcx
je 0x1400845c3
lea rdx, str.gethostbyname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400845c6
mov rax, rbx
mov qword [0x140121988], rax
test rcx, rcx
je 0x1400845e8
lea rdx, str.getservbyname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400845eb
mov rax, rbx
mov qword [0x140121990], rax
test rcx, rcx
je 0x14008460d
lea rdx, str.inet_addr
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x140084610
mov rax, rbx
mov qword [0x140121998], rax
test rcx, rcx
je 0x140084632
lea rdx, str.inet_ntoa
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x140084635
mov rax, rbx
mov qword [0x140121938], rax
test rcx, rcx
je 0x140084657
lea rdx, str.inet_ntop
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x14008465a
mov rax, rbx
mov qword [0x140121940], rax
test rcx, rcx
je 0x14008467c
lea rdx, str.connect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x14008467f
mov rax, rbx
mov qword [0x1401219a0], rax
test rcx, rcx
je 0x1400846a1
lea rdx, str.bind
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400846a4
mov rax, rbx
mov qword [0x1401219a8], rax
test rcx, rcx
je 0x1400846c6
lea rdx, str.setsockopt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400846c9
mov rax, rbx
mov qword [0x1401219b0], rax
test rcx, rcx
je 0x1400846eb
lea rdx, str.socket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400846ee
mov rax, rbx
mov qword [0x1401219b8], rax
test rcx, rcx
je 0x140084710
lea rdx, str.listen
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x140084713
mov rax, rbx
mov qword [0x1401219c0], rax
test rcx, rcx
je 0x140084735
lea rdx, str.send
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x140084738
mov rax, rbx
mov qword [0x1401219c8], rax
test rcx, rcx
je 0x14008475a
lea rdx, str.shutdown
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x14008475d
mov rax, rbx
mov qword [0x1401219d0], rax
test rcx, rcx
je 0x14008477f
lea rdx, str.ioctlsocket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x140084782
mov rax, rbx
mov qword [0x1401219d8], rax
test rcx, rcx
je 0x1400847a4
lea rdx, str.accept
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400847a7
mov rax, rbx
mov qword [0x1401219e0], rax
test rcx, rcx
je 0x1400847c9
lea rdx, str.getpeername
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400847cc
mov rax, rbx
mov qword [0x140121948], rax
test rcx, rcx
je 0x1400847ee
lea rdx, str.recv
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140121a18]
jmp 0x1400847f1
mov rax, rbx
mov qword [0x140121950], rax
test rcx, rcx
je 0x14008480d
lea rdx, str.WSAIoctl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov edx, 2
mov qword [0x1401219e8], rbx
mov ecx, edx
call fcn.140085160
mov rbx, qword [rsp + 0x20]
test al, al
jne 0x140084847
xor edx, edx
lea ecx, [rdx + 2]
call fcn.140085160
test al, al
jne 0x140084847
mov edx, 1
mov ecx, edx
call fcn.140085160
test al, al
je 0x14008486c
lea rcx, [0x140083600]
call fcn.14006be50
mov qword [0x140121920], rax
add rsp, 0x28
ret
lea rcx, str.Unable_to_load_any_WinSock_library
call fcn.14007e710
int3
lea rcx, str.Unable_to_initialise_WinSock
call fcn.14007e710
int3