Function at 0x14004fd6c
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.ws2_32.dll
call fcn.14004f95d
mov qword [0x1400ac5c0], rax
mov qword [0x1400ac5c8], rax
test rax, rax
jne 0x14004fdab
lea rcx, str.wsock32.dll
call fcn.14004f95d
mov qword [0x1400ac5c0], rax
test rax, rax
je 0x140050520
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004fe38
mov rcx, qword [0x1400ac5c0]
test rcx, rcx
je 0x14004fea6
lea rdx, str.getaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac5d0], rax
test rcx, rcx
je 0x14004feb1
lea rdx, str.freeaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac5d8], rax
test rcx, rcx
je 0x14004feed
lea rdx, str.getnameinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac5e0], rax
jmp 0x14004fed9
lea rcx, str.wship6.dll
call fcn.14004f95d
mov qword [0x1400ac5f0], rax
test rax, rax
je 0x14004fef6
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ac5d0], rax
mov rcx, qword [0x1400ac5f0]
test rcx, rcx
je 0x14004febe
lea rdx, str.freeaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5f0]
mov qword [0x1400ac5d8], rax
test rcx, rcx
je 0x14004fec9
lea rdx, str.getnameinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x14004fecb
mov qword [0x1400ac5d0], 0
mov qword [0x1400ac5d8], 0
jmp 0x14004feed
mov qword [0x1400ac5d8], 0
xor eax, eax
mov qword [0x1400ac5e0], rax
mov rcx, qword [0x1400ac5c0]
test rcx, rcx
je 0x14004feed
lea rdx, str.gai_strerror
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x14004feef
xor eax, eax
mov qword [0x1400ac5e8], rax
mov rcx, qword [0x1400ac5c8]
test rcx, rcx
je 0x14004ff11
lea rdx, str.WSAAddressToStringA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x14004ff13
xor eax, eax
mov qword [0x1400ac5f8], rax
mov rcx, qword [0x1400ac5c0]
test rcx, rcx
je 0x140050350
lea rdx, str.WSAAsyncSelect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac600], rax
test rcx, rcx
je 0x14005035b
lea rdx, str.WSAEventSelect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac608], rax
test rcx, rcx
je 0x140050366
lea rdx, str.select
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac610], rax
test rcx, rcx
je 0x140050371
lea rdx, str.WSAGetLastError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac618], rax
test rcx, rcx
je 0x14005037c
lea rdx, str.WSAEnumNetworkEvents
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac620], rax
test rcx, rcx
je 0x140050387
lea rdx, str.WSAStartup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac628], rax
test rcx, rcx
je 0x140050392
lea rdx, str.WSACleanup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac630], rax
test rcx, rcx
je 0x14005039d
lea rdx, str.closesocket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac638], rax
test rcx, rcx
je 0x1400503a8
lea rdx, str.ntohl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac640], rax
test rcx, rcx
je 0x1400503b3
lea rdx, str.htonl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac648], rax
test rcx, rcx
je 0x1400503be
lea rdx, str.htons
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac650], rax
test rcx, rcx
je 0x1400503c9
lea rdx, str.ntohs
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac658], rax
test rcx, rcx
je 0x1400503d4
lea rdx, str.gethostname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac660], rax
test rcx, rcx
je 0x1400503df
lea rdx, str.gethostbyname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac668], rax
test rcx, rcx
je 0x1400503ea
lea rdx, str.getservbyname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac670], rax
test rcx, rcx
je 0x1400503f5
lea rdx, str.inet_addr
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac678], rax
test rcx, rcx
je 0x140050400
lea rdx, str.inet_ntoa
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac680], rax
test rcx, rcx
je 0x14005040b
lea rdx, str.inet_ntop
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac688], rax
test rcx, rcx
je 0x140050416
lea rdx, [0x1400933b5]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac690], rax
test rcx, rcx
je 0x140050421
lea rdx, str.bind
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac698], rax
test rcx, rcx
je 0x14005042c
lea rdx, str.setsockopt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac6a0], rax
test rcx, rcx
je 0x140050437
lea rdx, [0x140093071]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac6a8], rax
test rcx, rcx
je 0x140050442
lea rdx, str.listen
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac6b0], rax
test rcx, rcx
je 0x14005044d
lea rdx, str.send
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac6b8], rax
test rcx, rcx
je 0x140050458
lea rdx, [0x140094dcb]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac6c0], rax
test rcx, rcx
je 0x140050463
lea rdx, str.ioctlsocket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac6c8], rax
test rcx, rcx
je 0x14005046e
lea rdx, str.accept
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac6d0], rax
test rcx, rcx
je 0x140050479
lea rdx, str.getpeername
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac6d8], rax
test rcx, rcx
je 0x14005050e
lea rdx, str.recv
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ac5c0]
mov qword [0x1400ac6e0], rax
test rcx, rcx
je 0x140050519
lea rdx, str.WSAIoctl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140050489
mov qword [0x1400ac600], 0
mov qword [0x1400ac608], 0
mov qword [0x1400ac610], 0
mov qword [0x1400ac618], 0
mov qword [0x1400ac620], 0
mov qword [0x1400ac628], 0
mov qword [0x1400ac630], 0
mov qword [0x1400ac638], 0
mov qword [0x1400ac640], 0
mov qword [0x1400ac648], 0
mov qword [0x1400ac650], 0
mov qword [0x1400ac658], 0
mov qword [0x1400ac660], 0
mov qword [0x1400ac668], 0
mov qword [0x1400ac670], 0
mov qword [0x1400ac678], 0
mov qword [0x1400ac680], 0
mov qword [0x1400ac688], 0
mov qword [0x1400ac690], 0
mov qword [0x1400ac698], 0
mov qword [0x1400ac6a0], 0
mov qword [0x1400ac6a8], 0
mov qword [0x1400ac6b0], 0
mov qword [0x1400ac6b8], 0
mov qword [0x1400ac6c0], 0
mov qword [0x1400ac6c8], 0
mov qword [0x1400ac6d0], 0
xor eax, eax
mov qword [0x1400ac6d8], rax
mov qword [0x1400ac6e0], rax
mov qword [0x1400ac6e8], rax
lea rdx, [0x1400ac6f8]
mov cx, 0x202
call qword [0x1400ac628]
test eax, eax
jne 0x1400504ae
cmp byte [0x1400ac6f8], 2
je 0x1400504ea
lea rdx, [0x1400ac6f8]
mov cx, 2
call qword [0x1400ac628]
test eax, eax
jne 0x1400504cc
cmp byte [0x1400ac6f8], 2
je 0x1400504ea
lea rdx, [0x1400ac6f8]
mov cx, 0x101
call qword [0x1400ac628]
test eax, eax
jne 0x140050502
cmp byte [0x1400ac6f8], 1
jne 0x140050502
lea rcx, [0x14005052d]
call fcn.14004a0c8
mov qword [0x1400ac6f0], rax
add rsp, 0x28
ret
lea rcx, str.Unable_to_initialise_WinSock
call fcn.14000405c
mov qword [0x1400ac6e0], 0
xor eax, eax
jmp 0x140050489
lea rcx, str.Unable_to_load_any_WinSock_library
call fcn.14000405c
int3