Function at 0x1400782a0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [0x14013bc28], 0
mov edi, ecx
jne 0x1400782d7
lea rcx, str.LM_NO_NETWORK
call fcn.1400b45a0
xor edx, edx
mov dword [0x14013bc28], 1
test rax, rax
setne dl
mov dword [0x14013bc2c], edx
jmp 0x1400782dd
mov edx, dword [0x14013bc2c]
test edx, edx
je 0x1400782e9
xor eax, eax
add rsp, 0x20
pop rdi
ret
cmp qword [0x14013bc10], 0x20
jb 0x140078325
cmp dword [0x14013bc20], 0
jne 0x14007831a
movzx ecx, word [0x1401434f8]
lea rdx, [0x140143360]
call qword [0x14013bc70]
mov dword [0x14013bc20], 1
mov eax, 1
add rsp, 0x20
pop rdi
ret
mov ecx, 0x8000
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x14007836a
lea rcx, str.WS2_32.Dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14013bc10], rax
cmp rax, 0x20
jb 0x14007836a
mov dword [0x14013bc08], 1
jmp 0x14007839d
lea rcx, str.WSOCK32.Dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14013bc10], rax
cmp rax, 0x20
jae 0x140078393
mov dword [0x140143500], 0
jmp 0x140078ad4
mov dword [0x14013bc08], 0
lea rcx, str.icmp.Dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14013bc18], rax
cmp rax, 0x20
jae 0x1400783c3
mov dword [0x1401434fc], 0
jmp 0x140078410
lea rdx, str.IcmpCreateFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc18]
lea rdx, str.IcmpSendEcho
mov qword [0x14013bd68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc18]
lea rdx, str.IcmpCloseHandle
mov qword [0x14013bd70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013bd78], rax
mov rcx, qword [0x14013bc10]
lea rdx, str.send
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.ioctlsocket
mov qword [0x14013bc30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.WSAGetLastError
mov qword [0x14013bc38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.recv
mov qword [0x14013bc40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.closesocket
mov qword [0x14013bc48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.getservbyname
mov qword [0x14013bc50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.gethostbyname
mov qword [0x14013bc58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.gethostname
mov qword [0x14013bc60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.WSAStartup
mov qword [0x14013bc68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.WSACleanup
mov qword [0x14013bc70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.htons
mov qword [0x14013bc78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.ntohl
mov qword [0x14013bc80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.connect
mov qword [0x14013bc88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.socket
mov qword [0x14013bc90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.select
mov qword [0x14013bc98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.ntohs
mov qword [0x14013bca0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.__WSAFDIsSet
mov qword [0x14013bcb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.bind
mov qword [0x14013bcb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.getsockname
mov qword [0x14013bcc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.accept
mov qword [0x14013bcc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.listen
mov qword [0x14013bcd0], rax
mov rcx, qword [0x14013bc10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.WSASetLastError
mov qword [0x14013bcd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.setsockopt
mov qword [0x14013bce0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.sendto
mov qword [0x14013bce8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.recvfrom
mov qword [0x14013bcf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.htonl
mov qword [0x14013bcf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.shutdown
mov qword [0x14013bd08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.getsockopt
mov qword [0x14013bd00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.gethostbyaddr
mov qword [0x14013bd10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.EnumProtocolsA
mov qword [0x14013bd18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.GetAddressByNameA
mov qword [0x14013bd20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10d, dword [0x14013bc08]
mov rdx, rax
mov qword [0x14013bd28], rax
test r10d, r10d
je 0x14007885e
mov rax, qword [0x14013bca0]
mov rcx, qword [0x14013bc10]
lea rdx, str.WSACreateEvent
mov qword [0x14013bca8], rax
mov eax, 2
mov word [0x1401434f8], ax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.WSAEventSelect
mov qword [0x14013bd30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.WSAWaitForMultipleEvents
mov qword [0x14013bd38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.WSAEnumNetworkEvents
mov qword [0x14013bd40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.WSALookupServiceBeginA
mov qword [0x14013bd48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.WSALookupServiceNextA
mov qword [0x14013bd50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013bc10]
lea rdx, str.WSALookupServiceEnd
mov qword [0x14013bd58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx r8d, word [0x1401434f8]
mov r10d, dword [0x14013bc08]
mov rdx, qword [0x14013bd28]
mov rcx, qword [0x14013bca8]
mov qword [0x14013bd60], rax
jmp 0x140078881
mov rcx, qword [0x14013bca0]
mov rax, qword [0x14013bd60]
mov r8d, 0x101
mov qword [0x14013bca8], rcx
mov word [0x1401434f8], r8w
cmp qword [0x14013bc30], 0
je 0x140078aad
cmp qword [0x14013bc38], 0
je 0x140078aad
cmp qword [0x14013bc40], 0
je 0x140078aad
cmp qword [0x14013bc48], 0
je 0x140078aad
cmp qword [0x14013bc50], 0
je 0x140078aad
cmp qword [0x14013bc58], 0
je 0x140078aad
cmp qword [0x14013bc60], 0
je 0x140078aad
cmp qword [0x14013bc68], 0
je 0x140078aad
mov r9, qword [0x14013bc70]
test r9, r9
je 0x140078aad
cmp qword [0x14013bc78], 0
je 0x140078aad
cmp qword [0x14013bc80], 0
je 0x140078aad
cmp qword [0x14013bc90], 0
je 0x140078aad
cmp qword [0x14013bc98], 0
je 0x140078aad
test rcx, rcx
je 0x140078aad
cmp qword [0x14013bcb8], 0
je 0x140078aad
cmp qword [0x14013bcb0], 0
je 0x140078aad
cmp qword [0x14013bcc0], 0
je 0x140078aad
cmp qword [0x14013bcc8], 0
je 0x140078aad
cmp qword [0x14013bc88], 0
je 0x140078aad
cmp qword [0x14013bcd0], 0
je 0x140078aad
cmp qword [0x14013bcd8], 0
je 0x140078aad
cmp qword [0x14013bce0], 0
je 0x140078aad
cmp qword [0x14013bce8], 0
je 0x140078aad
cmp qword [0x14013bcf8], 0
je 0x140078aad
cmp qword [0x14013bcf0], 0
je 0x140078aad
cmp qword [0x14013bd08], 0
je 0x140078aad
cmp qword [0x14013bd00], 0
je 0x140078aad
cmp qword [0x14013bd10], 0
je 0x140078aad
cmp qword [0x14013bd18], 0
je 0x140078aad
test r10d, r10d
jne 0x140078a2c
cmp qword [0x14013bd20], 0
je 0x140078aad
test rdx, rdx
jmp 0x140078a6b
cmp qword [0x14013bd30], 0
je 0x140078aad
cmp qword [0x14013bd38], 0
je 0x140078aad
cmp qword [0x14013bd40], 0
je 0x140078aad
cmp qword [0x14013bd48], 0
je 0x140078aad
cmp qword [0x14013bd50], 0
je 0x140078aad
cmp qword [0x14013bd58], 0
je 0x140078aad
test rax, rax
je 0x140078aad
lea rdx, [0x140143360]
movzx ecx, r8w
mov dword [0x140143500], 1
call r9
inc dword [0x14013bc0c]
mov ecx, ebx
mov dword [0x14013bc20], 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
test edi, edi
je 0x140078ad4
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r8, qword [str.FlexNet_WINSOCK_error]
mov rdx, qword [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.]
mov rcx, rax
mov r9d, 0x10010
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret