Function at 0x14002e820
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 + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1400e2e38]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov rbx, rcx
mov dword [rcx + 0x2c], 0x1c
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x28], r12b
xor r8d, r8d
lea edx, [r12 + 0x15]
lea rcx, [rsp + 0x20]
call fcn.140006a80
lea rcx, [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
cmovae rcx, qword [rsp + 0x28]
lea r9d, [r12 + 0x15]
lea r8, str.GetNumberOfInterfaces
call fcn.14007d8e0
mov qword [rsp + 0x38], reloc.WS2_32.dll_setsockopt
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rax, qword [rsp + 0x28]
mov byte [rax + 0x15], r12b
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x14002e8d4
mov rdi, r12
jmp 0x14002e91b
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x14002e91b
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x14002e901
mov rdi, r12
jmp 0x14002e91b
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
cmp qword [rsp + 0x40], 0x10
jb 0x14002e92d
mov rcx, qword [rsp + 0x28]
call fcn.140051bc8
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x28], r12b
test rdi, rdi
jne 0x14002e94b
mov dword [rbx + 0x28], r12d
jmp 0x14002e951
lea rcx, [rbx + 0x28]
call rdi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x28], r12b
mov r9d, SafeArrayGetDim
lea r8, str.IcmpCreateFile
lea edx, [r9 + 1]
lea rcx, [rsp + 0x28]
call fcn.14007d8e0
mov qword [rsp + 0x38], SafeArrayGetDim
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rax, qword [rsp + 0x28]
mov byte [rax + 0xe], r12b
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x14002e9ab
mov rdi, r12
jmp 0x14002e9f2
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x14002e9f2
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x14002e9d8
mov rdi, r12
jmp 0x14002e9f2
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
cmp qword [rsp + 0x40], 0x10
jb 0x14002ea04
mov rcx, qword [rsp + 0x28]
call fcn.140051bc8
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x28], r12b
test rdi, rdi
jne 0x14002ea22
mov qword [rbx + 0x18], r12
jmp 0x14002ea28
call rdi
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], r12
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0x60]
call fcn.140082240
mov dword [rsp + 0x60], 0x11c
mov dword [rsp + 0x64], 5
mov dword [rsp + 0x68], 1
mov word [rsp + 0x174], 2
mov word [rsp + 0x176], r12w
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 0x14002eb97
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x28], r12b
mov r9d, reloc.WS2_32.dll_ntohs
lea r8, str.Icmp6CreateFile
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.14007d8e0
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], r12b
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x14002eb20
mov rdi, r12
jmp 0x14002eb67
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x14002eb67
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x14002eb4d
mov rdi, r12
jmp 0x14002eb67
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
cmp qword [rsp + 0x40], 0x10
jb 0x14002eb79
mov rcx, qword [rsp + 0x28]
call fcn.140051bc8
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x28], r12b
test rdi, rdi
je 0x14002eb97
call rdi
mov qword [rbx + 0x20], rax
lea rdx, [rsp + 0x180]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14002ebfa
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x14002ebe1
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14002ebd7
mov rcx, rax
call fcn.140023810
jmp 0x14002ebda
mov rax, r12
mov qword [0x1400ec150], rax
lea rdx, str.Cant_start_WSAStartup
mov rcx, rax
call fcn.140023be0
mov eax, 8
jmp 0x14002edc4
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x28], r12b
mov r9d, SafeArrayGetDim
lea r8, str.GetIpAddrTable
lea edx, [r9 + 1]
lea rcx, [rsp + 0x28]
call fcn.14007d8e0
mov qword [rsp + 0x38], SafeArrayGetDim
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rax, qword [rsp + 0x28]
mov byte [rax + 0xe], r12b
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x14002ec54
mov rdi, r12
jmp 0x14002ec9b
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x14002ec9b
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x14002ec81
mov rdi, r12
jmp 0x14002ec9b
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
cmp qword [rsp + 0x40], 0x10
jb 0x14002ecad
mov rcx, qword [rsp + 0x28]
call fcn.140051bc8
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x28], r12b
test rdi, rdi
jne 0x14002ecd1
mov qword [rbx + 0x80], r12
jmp 0x14002ed7f
mov edx, dword [rbx + 0x2c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0x80], rax
xor r8d, r8d
lea rdx, [rbx + 0x2c]
mov rcx, rax
call rdi
mov dword [rbx + 0x88], eax
test eax, eax
je 0x14002ed35
cmp eax, 0x7a
jne 0x14002ed35
mov rcx, qword [rbx + 0x80]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [rbx + 0x2c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0x80], rax
xor r8d, r8d
lea rdx, [rbx + 0x2c]
mov rcx, rax
call rdi
mov dword [rbx + 0x88], eax
cmp dword [rbx + 0x88], r12d
jne 0x14002ed7f
mov edi, r12d
mov rax, qword [rbx + 0x80]
cmp dword [rax], r12d
jbe 0x14002ed7f
mov rsi, r12
lea rbp, [rbx + 0x30]
mov rax, qword [rbx + 0x80]
mov ecx, dword [rsi + rax + 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rbp], rax
add edi, 1
add rbp, 8
add rsi, 0x18
mov rax, qword [rbx + 0x80]
cmp edi, dword [rax]
jb 0x14002ed54
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x14002edb3
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14002eda9
mov rcx, rax
call fcn.140023810
jmp 0x14002edac
mov rax, r12
mov qword [0x1400ec150], rax
lea rdx, str.Network_started_
mov rcx, rax
call fcn.140023be0
xor eax, eax
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14007d3d0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret