Function at 0x65cca0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [0x795430], 0
jne 0x65ccd6
push str.LM_NO_NETWORK
call fcn.00689e80
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [0x795434], eax
mov dword [0x795430], 1
cmp dword [0x795434], 0
je 0x65cce6
xor eax, eax
jmp 0x65d410
cmp dword [0x79541c], 0x20
jb 0x65cd1f
cmp dword [0x795428], 0
jne 0x65cd15
push 0x7a04e0
movzx eax, word [0x7a0670]
push eax
call dword [0x7953dc]
mov dword [0x795428], 1
mov eax, 1
jmp 0x65d410
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x65cd5f
push str.WS2_32.Dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x79541c], eax
cmp dword [0x79541c], 0x20
jb 0x65cd5f
mov dword [0x795418], 1
jmp 0x65cd9f
push str.WSOCK32.Dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x79541c], eax
cmp dword [0x79541c], 0x20
jae 0x65cd95
mov dword [0x7a04c8], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
jmp 0x65d410
mov dword [0x795418], 0
push str.icmp.Dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x795420], eax
cmp dword [0x795420], 0x20
jae 0x65cdc4
mov dword [0x7a04c4], 0
jmp 0x65ce08
push str.IcmpCreateFile
mov edx, dword [0x795420]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795394], eax
push str.IcmpSendEcho
mov eax, dword [0x795420]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953bc], eax
push str.IcmpCloseHandle
mov ecx, dword [0x795420]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953a0], eax
push str.send
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795400], eax
push str.ioctlsocket
mov eax, dword [0x79541c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953b0], eax
push str.WSAGetLastError
mov ecx, dword [0x79541c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x79537c], eax
push str.recv
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953c0], eax
push str.closesocket
mov eax, dword [0x79541c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953d8], eax
push str.getservbyname
mov ecx, dword [0x79541c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953b8], eax
push str.gethostbyname
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795404], eax
push str.gethostname
mov eax, dword [0x79541c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953e0], eax
push str.WSAStartup
mov ecx, dword [0x79541c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953dc], eax
push str.WSACleanup
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795374], eax
push str.htons
mov eax, dword [0x79541c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953fc], eax
push str.ntohl
mov ecx, dword [0x79541c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953a8], eax
push str.connect
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953d0], eax
push str.socket
mov eax, dword [0x79541c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953ac], eax
push str.select
mov ecx, dword [0x79541c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953e4], eax
push str.ntohs
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953ec], eax
push str.__WSAFDIsSet
mov eax, dword [0x79541c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x79540c], eax
push str.bind
mov ecx, dword [0x79541c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795384], eax
push str.getsockname
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795380], eax
push str.accept
mov eax, dword [0x79541c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795408], eax
push str.listen
mov ecx, dword [0x79541c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953a4], eax
push str.WSASetLastError
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953f0], eax
push str.setsockopt
mov eax, dword [0x79541c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795378], eax
push str.sendto
mov ecx, dword [0x79541c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953e8], eax
push str.recvfrom
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795390], eax
push str.htonl
mov eax, dword [0x79541c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953c8], eax
push str.shutdown
mov ecx, dword [0x79541c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953d4], eax
push str.getsockopt
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795388], eax
push str.gethostbyaddr
mov eax, dword [0x79541c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953f8], eax
push str.EnumProtocolsA
mov ecx, dword [0x79541c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953b4], eax
push str.GetAddressByNameA
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x79538c], eax
cmp dword [0x795418], 0
je 0x65d18b
mov eax, dword [0x7953e4]
mov dword [0x7953cc], eax
mov ecx, 2
mov word [0x7a0670], cx
push str.WSACreateEvent
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953f4], eax
push str.WSAEventSelect
mov eax, dword [0x79541c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795414], eax
push str.WSAWaitForMultipleEvents
mov ecx, dword [0x79541c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795370], eax
push str.WSAEnumNetworkEvents
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7953c4], eax
push str.WSALookupServiceBeginA
mov eax, dword [0x79541c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795410], eax
push str.WSALookupServiceNextA
mov ecx, dword [0x79541c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x79539c], eax
push str.WSALookupServiceEnd
mov edx, dword [0x79541c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x795398], eax
jmp 0x65d1a1
mov eax, dword [0x7953e4]
mov dword [0x7953cc], eax
mov ecx, 0x101
mov word [0x7a0670], cx
cmp dword [0x795400], 0
je 0x65d312
cmp dword [0x7953b0], 0
je 0x65d312
cmp dword [0x79537c], 0
je 0x65d312
cmp dword [0x7953c0], 0
je 0x65d312
cmp dword [0x7953d8], 0
je 0x65d312
cmp dword [0x7953b8], 0
je 0x65d312
cmp dword [0x795404], 0
je 0x65d312
cmp dword [0x7953e0], 0
je 0x65d312
cmp dword [0x7953dc], 0
je 0x65d312
cmp dword [0x795374], 0
je 0x65d312
cmp dword [0x7953fc], 0
je 0x65d312
cmp dword [0x7953d0], 0
je 0x65d312
cmp dword [0x7953ac], 0
je 0x65d312
cmp dword [0x7953cc], 0
je 0x65d312
cmp dword [0x79540c], 0
je 0x65d312
cmp dword [0x7953ec], 0
je 0x65d312
cmp dword [0x795384], 0
je 0x65d312
cmp dword [0x795380], 0
je 0x65d312
cmp dword [0x7953a8], 0
je 0x65d312
cmp dword [0x795408], 0
je 0x65d312
cmp dword [0x7953a4], 0
je 0x65d312
cmp dword [0x7953f0], 0
je 0x65d312
cmp dword [0x795378], 0
je 0x65d312
cmp dword [0x7953e8], 0
je 0x65d312
cmp dword [0x795390], 0
je 0x65d312
cmp dword [0x7953c8], 0
je 0x65d312
cmp dword [0x7953d4], 0
je 0x65d312
cmp dword [0x795388], 0
je 0x65d312
cmp dword [0x7953f8], 0
je 0x65d312
cmp dword [0x795418], 0
jne 0x65d300
cmp dword [0x7953b4], 0
je 0x65d312
cmp dword [0x795418], 0
jne 0x65d348
cmp dword [0x79538c], 0
jne 0x65d348
cmp dword [ebp + 8], 0
je 0x65d337
push 0x10010
mov edx, dword [str.FlexNet_WINSOCK_error]
push edx
mov eax, dword [str.WINSOCK_usage_error_detected.__You_must_make_sure_your_license_file_does_only_node_locking__or_you_must_have_a_WINSOCK.DLL_in_order_to_communicate_with_FlexNet_license_server.]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
jmp 0x65d410
cmp dword [0x795418], 0
je 0x65d3c3
cmp dword [0x7953f4], 0
je 0x65d390
cmp dword [0x795414], 0
je 0x65d390
cmp dword [0x795370], 0
je 0x65d390
cmp dword [0x7953c4], 0
je 0x65d390
cmp dword [0x795410], 0
je 0x65d390
cmp dword [0x79539c], 0
je 0x65d390
cmp dword [0x795398], 0
jne 0x65d3c3
cmp dword [ebp + 8], 0
je 0x65d3b5
push 0x10010
mov edx, dword [str.FlexNet_WINSOCK_error]
push edx
mov eax, dword [str.WINSOCK_usage_error_detected.__You_must_make_sure_your_license_file_does_only_node_locking__or_you_must_have_a_WINSOCK.DLL_in_order_to_communicate_with_FlexNet_license_server.]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
jmp 0x65d410
mov dword [0x7a04c8], 1
push 0x7a04e0
movzx edx, word [0x7a0670]
push edx
call dword [0x7953dc]
mov dword [0x79409c], 0x400
mov eax, dword [0x795424]
add eax, 1
mov dword [0x795424], eax
mov dword [0x795428], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, 1
mov esp, ebp
pop ebp
ret