Function at 0x100085c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x1007aa88
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x100ae124], eax
test eax, eax
jne 0x1000862e
lea eax, [ebp - 4]
push eax
push 1
push str.ws2_32.dll
call fcn.1000d010
add esp, 0xc
test eax, eax
jns 0x10008611
lea eax, [ebp - 4]
push eax
push 1
push str.wsock32.dll
call fcn.1000d010
add esp, 0xc
test eax, eax
js 0x100088bd
mov byte [0x100adfac], 1
push dword [ebp - 4]
call fcn.1000ceb0
push dword [ebp - 4]
mov dword [0x100ae124], eax
call fcn.10002f30
mov eax, dword [0x100ae124]
add esp, 8
push str.WSAStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACleanup
push dword [0x100ae124]
mov dword [0x100ae128], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAGetLastError
push dword [0x100ae124]
mov dword [0x100ae12c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSASetLastError
push dword [0x100ae124]
mov dword [0x100ae130], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACreateEvent
push dword [0x100ae124]
mov dword [0x100ae134], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACloseEvent
push dword [0x100ae124]
mov dword [0x100ae138], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSASetEvent
push dword [0x100ae124]
mov dword [0x100ae13c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAEventSelect
push dword [0x100ae124]
mov dword [0x100ae140], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAEnumNetworkEvents
push dword [0x100ae124]
mov dword [0x100ae144], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSASocketW
push dword [0x100ae124]
mov dword [0x100ae148], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSASend
push dword [0x100ae124]
mov dword [0x100ae14c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.socket
push dword [0x100ae124]
mov dword [0x100ae150], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.closesocket
push dword [0x100ae124]
mov dword [0x100ae154], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.recv
push dword [0x100ae124]
mov dword [0x100ae158], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.send
push dword [0x100ae124]
mov dword [0x100ae15c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.recvfrom
push dword [0x100ae124]
mov dword [0x100ae160], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sendto
push dword [0x100ae124]
mov dword [0x100ae164], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.bind
push dword [0x100ae124]
mov dword [0x100ae168], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.listen
push dword [0x100ae124]
mov dword [0x100ae16c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.accept
push dword [0x100ae124]
mov dword [0x100ae170], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ae174], eax
push str.connect
push dword [0x100ae124]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.shutdown
push dword [0x100ae124]
mov dword [0x100ae178], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getsockopt
push dword [0x100ae124]
mov dword [0x100ae17c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.setsockopt
push dword [0x100ae124]
mov dword [0x100ae180], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ioctlsocket
push dword [0x100ae124]
mov dword [0x100ae184], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getpeername
push dword [0x100ae124]
mov dword [0x100ae188], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getsockname
push dword [0x100ae124]
mov dword [0x100ae18c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.__WSAFDIsSet
push dword [0x100ae124]
mov dword [0x100ae190], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.select
push dword [0x100ae124]
mov dword [0x100ae194], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.gethostbyname
push dword [0x100ae124]
mov dword [0x100ae198], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ae19c], eax
mov esp, ebp
pop ebp
ret