Function at 0x140018310
Capabilities:
Initialize winsock library
Link many functions at runtime

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x330
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1400a5de0]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov rdi, rcx
mov dword [rcx + 0x2c], 0x1c
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x28], bl
xor r8d, r8d
lea edx, [rbx + 0x15]
lea rcx, [rsp + 0x20]
call fcn.140005e80
lea rcx, [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
cmovae rcx, qword [rsp + 0x28]
lea r9d, [rbx + 0x15]
lea r8, str.GetNumberOfInterfaces
call fcn.140052f70
mov qword [rsp + 0x38], 0x15
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rax, qword [rsp + 0x28]
mov byte [rax + 0x15], bl
mov rcx, qword [rdi + 0x10]
test rcx, rcx
jne 0x1400183be
mov rsi, rbx
jmp 0x140018405
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x140018405
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x1400183eb
mov rsi, rbx
jmp 0x140018405
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
cmp qword [rsp + 0x40], 0x10
jb 0x140018417
mov rcx, qword [rsp + 0x28]
call fcn.1400278fc
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x28], bl
test rsi, rsi
jne 0x140018433
mov dword [rdi + 0x28], ebx
jmp 0x140018439
lea rcx, [rdi + 0x28]
call rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x28], bl
mov r9d, SafeArrayGetDim
lea r8, str.IcmpCreateFile
lea edx, [r9 + 1]
lea rcx, [rsp + 0x28]
call fcn.140052f70
mov qword [rsp + 0x38], SafeArrayGetDim
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rax, qword [rsp + 0x28]
mov byte [rax + 0xe], bl
mov rcx, qword [rdi + 0x10]
test rcx, rcx
jne 0x140018491
mov rsi, rbx
jmp 0x1400184d8
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400184d8
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x1400184be
mov rsi, rbx
jmp 0x1400184d8
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
cmp qword [rsp + 0x40], 0x10
jb 0x1400184ea
mov rcx, qword [rsp + 0x28]
call fcn.1400278fc
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x28], bl
test rsi, rsi
jne 0x140018507
mov qword [rdi + 0x18], rbx
jmp 0x14001850d
call rsi
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rbx
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0x60]
call fcn.140057420
mov dword [rsp + 0x60], 0x11c
mov dword [rsp + 0x64], 5
mov dword [rsp + 0x68], 1
mov word [rsp + 0x174], 2
mov word [rsp + 0x176], bx
mov r8b, 3
mov edx, 2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8, rax
mov edx, reloc.WS2_32.dll_gethostbyaddr
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140018678
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x28], bl
mov r9d, reloc.WS2_32.dll_ntohs
lea r8, str.Icmp6CreateFile
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.140052f70
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rax, qword [rsp + 0x28]
mov byte [rax + 0xf], bl
mov rcx, qword [rdi + 0x10]
test rcx, rcx
jne 0x140018602
mov rsi, rbx
jmp 0x140018649
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x140018649
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x14001862f
mov rsi, rbx
jmp 0x140018649
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
cmp qword [rsp + 0x40], 0x10
jb 0x14001865b
mov rcx, qword [rsp + 0x28]
call fcn.1400278fc
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x28], bl
test rsi, rsi
je 0x140018678
call rsi
mov qword [rdi + 0x20], rax
lea rdx, [rsp + 0x180]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400186ac
call fcn.14000d730
mov rcx, rax
lea rdx, str.Cant_start_WSAStartup
call fcn.14000d860
mov eax, 8
jmp 0x1400188fb
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x28], bl
mov r9d, SafeArrayGetDim
lea r8, str.GetIpAddrTable
lea edx, [r9 + 1]
lea rcx, [rsp + 0x28]
call fcn.140052f70
mov qword [rsp + 0x38], SafeArrayGetDim
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rax, qword [rsp + 0x28]
mov byte [rax + 0xe], bl
mov rcx, qword [rdi + 0x10]
test rcx, rcx
jne 0x140018704
mov rsi, rbx
jmp 0x14001874b
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x14001874b
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x140018731
mov rsi, rbx
jmp 0x14001874b
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
cmp qword [rsp + 0x40], 0x10
jb 0x14001875d
mov rcx, qword [rsp + 0x28]
call fcn.1400278fc
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x28], bl
test rsi, rsi
jne 0x140018780
mov qword [rdi + 0x80], rbx
jmp 0x14001882b
mov edx, dword [rdi + 0x2c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rdi + 0x80], rax
xor r8d, r8d
lea rdx, [rdi + 0x2c]
mov rcx, rax
call rsi
mov dword [rdi + 0x88], eax
test eax, eax
je 0x1400187e4
cmp eax, 0x7a
jne 0x1400187e4
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [rdi + 0x2c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rdi + 0x80], rax
xor r8d, r8d
lea rdx, [rdi + 0x2c]
mov rcx, rax
call rsi
mov dword [rdi + 0x88], eax
cmp dword [rdi + 0x88], ebx
jne 0x14001882b
mov esi, ebx
mov rax, qword [rdi + 0x80]
cmp dword [rax], ebx
jbe 0x14001882b
mov rbp, rbx
lea r12, [rdi + 0x30]
mov rax, qword [rdi + 0x80]
mov ecx, dword [rax + rbp + 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [r12], rax
add esi, 1
add r12, 8
add rbp, 0x18
mov rax, qword [rdi + 0x80]
cmp esi, dword [rax]
jb 0x140018800
mov rsi, qword [0x1400ae080]
test rsi, rsi
jne 0x1400188ea
mov ecx, 0x310
call fcn.1400278b8
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400188e0
call fcn.14002790c
mov rcx, rax
test rax, rax
setne bl
test ebx, ebx
jne 0x140018873
mov ecx, 0x80004005
call fcn.140007e00
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov word [rsi + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x14008a5b0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14008a5b0]
mov rcx, rsi
call fcn.140008260
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsi + 0x26c]
mov word [rcx], 0
lea r8, [0x14008a5b8]
mov edx, 0x50
call fcn.140052920
nop
jmp 0x1400188e3
mov rsi, rbx
mov qword [0x1400ae080], rsi
lea rdx, str.Network_started_
mov rcx, rsi
call fcn.14000d860
xor eax, eax
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1400524a0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret