Function at 0x1400389f4
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x730
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x230], rsi
mov qword [rbp + 0x228], rbx
mov qword [rbp + 0xd8], rcx
mov qword [rbp + 0xe0], rdx
mov qword [rbp + 0xe8], r8
mov qword [rbp + 0xf0], r9
mov qword [rbp + 0x700], rcx
mov dword [rbp + 0x708], edx
mov dword [rbp + 0x710], r8d
mov qword [rbp + 0x718], r9
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0x6e0], rax
mov dword [rbp + 4], 0
mov dword [rbp + 8], 0
mov qword [rbp + 0xf8], 0
mov qword [rbp + 0x100], 0xffffffffffffffff
mov dword [rbp + 0xc], 0x10
mov dword [rbp + 0x10], 0
mov dword [rbp + 0x14], 0
mov dword [rbp + 0x18], 1
mov word [rbp], 0
mov eax, dword [rbp + 0x708]
cmp eax, 0xffffffff
je 0x140038ab7
mov eax, dword [rbp + 0x710]
cmp eax, 0xffffffff
jne 0x140038b4a
mov rax, qword [rbp + 0x700]
lea rdx, str.prvf
lea rcx, str.7508
mov ebx, 0
mov qword [rsp + 0x20], 0
lea rsi, str.CVU00509
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], 0
mov qword [rbp + 0x160], rcx
mov rcx, rax
mov rax, qword [rbp + 0x160]
mov r8, rax
mov r9d, ebx
call fcn.14002d0f9
mov dword [rbp + 0x1c], eax
mov rax, qword [rbp + 0x700]
lea rdx, str.sprvnc_ICMPPing
mov ecx, 0x2eec
lea rbx, str.bad_ip_param
mov dword [rbp + 0x168], ecx
mov rcx, rax
mov eax, dword [rbp + 0x168]
mov r8d, eax
mov r9, rbx
call fcn.14002d4d0
mov dword [rbp + 0x20], eax
jmp 0x1400395cb
mov eax, 0x102
lea rdx, [rbp + 0x340]
mov rcx, qword [sym.imp.orauts.dll_WSAStartup]
mov qword [rbp + 0x170], rcx
mov ecx, eax
mov rax, qword [rbp + 0x170]
call rax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
test eax, eax
je 0x140038bd2
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x700]
lea rdx, [0x1400c0e14]
mov ecx, dword [rbp + 0x2c]
mov ebx, 0
lea rsi, str.CVU00510
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x178], ecx
mov rcx, rax
mov eax, dword [rbp + 0x178]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0x34], eax
jmp 0x1400395cb
mov eax, 2
mov edx, 3
mov ecx, 1
mov ebx, 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov rsi, qword [sym.imp.orauts.dll_WSASocketA]
mov dword [rbp + 0x180], ecx
mov ecx, eax
mov eax, dword [rbp + 0x180]
mov r8d, eax
mov r9, rbx
call rsi
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x108]
mov qword [rbp + 0x100], rax
mov rax, qword [rbp + 0x100]
cmp rax, 0xffffffffffffffff
jne 0x140038c8e
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x38], eax
mov rax, qword [rbp + 0x700]
lea rdx, str.WSASocket
mov ecx, dword [rbp + 0x38]
mov ebx, 0
lea rsi, str.sprvnc_ICMPPing
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x188], ecx
mov rcx, rax
mov eax, dword [rbp + 0x188]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0x40], eax
jmp 0x1400395cb
mov rax, qword [rbp + 0x100]
mov edx, 0x8004667e
lea rcx, [rbp + 0x18]
mov rbx, qword [sym.imp.orauts.dll_ioctlsocket]
mov qword [rbp + 0x190], rcx
mov rcx, rax
mov rax, qword [rbp + 0x190]
mov r8, rax
call rbx
mov dword [rbp + 0x3c], eax
mov eax, dword [rbp + 0x3c]
test eax, eax
je 0x140038d1e
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 0x700]
lea rdx, [0x1400c0e38]
mov ecx, dword [rbp + 0x44]
mov ebx, 0
lea rsi, str.sprvnc_ICMPPing
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x198], ecx
mov rcx, rax
mov eax, dword [rbp + 0x198]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0x48], eax
jmp 0x1400395cb
lea rax, [rbp + 0x258]
mov edx, 0
mov ecx, 0x10
mov qword [rbp + 0x1a0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1a0]
mov r8, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x110], rax
lea rax, [rbp + 0x708]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x118]
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x120]
mov eax, dword [rax]
mov dword [rbp + 0x25c], eax
mov word [rbp + 0x258], 2
mov word [rbp + 0x25a], 0
mov rax, qword [rbp + 0x100]
lea rdx, [rbp + 0x258]
mov ecx, 0x10
mov rbx, qword [sym.imp.WS2_32.dll_bind]
mov dword [rbp + 0x1a8], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1a8]
mov r8d, eax
call rbx
mov dword [rbp + 0x4c], eax
mov eax, dword [rbp + 0x4c]
cmp eax, 0xffffffff
jne 0x140038e1e
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x50], eax
mov rax, qword [rbp + 0x700]
lea rdx, str.bind
mov ecx, dword [rbp + 0x50]
mov ebx, 0
lea rsi, str.sprvnc_ICMPPing
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x1b0], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1b0]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0x5c], eax
jmp 0x1400395cb
mov dword [rbp + 0x54], 0x2710
mov rax, qword [rbp + 0x100]
mov edx, 0xffff
mov ecx, 0x1006
lea rbx, [rbp + 0x54]
mov dword [rsp + 0x20], 4
mov rsi, qword [sym.imp.orauts.dll_setsockopt]
mov dword [rbp + 0x1b8], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1b8]
mov r8d, eax
mov r9, rbx
call rsi
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x58]
mov dword [rbp + 0x60], eax
mov eax, dword [rbp + 0x60]
cmp eax, 0xffffffff
jne 0x140038eca
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x700]
lea rdx, [0x1400c0e4c]
mov ecx, dword [rbp + 0x64]
mov ebx, 0
lea rsi, str.sprvnc_ICMPPing
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x1c0], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1c0]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0x6c], eax
jmp 0x1400395cb
mov dword [rbp + 0x54], 0x2710
mov rax, qword [rbp + 0x100]
mov edx, 0xffff
mov ecx, 0x1005
lea rbx, [rbp + 0x54]
mov dword [rsp + 0x20], 4
mov rsi, qword [sym.imp.orauts.dll_setsockopt]
mov dword [rbp + 0x1c8], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1c8]
mov r8d, eax
mov r9, rbx
call rsi
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x68]
mov dword [rbp + 0x60], eax
mov eax, dword [rbp + 0x60]
cmp eax, 0xffffffff
jne 0x140038f76
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x70], eax
mov rax, qword [rbp + 0x700]
lea rdx, [0x1400c0e4c]
mov ecx, dword [rbp + 0x70]
mov ebx, 0
lea rsi, str.sprvnc_ICMPPing
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x1d0], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1d0]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0x74], eax
jmp 0x1400395cb
mov eax, dword [rbp + 0x710]
mov dword [rbp + 0x23c], eax
mov word [rbp + 0x238], 2
mov eax, dword [rbp + 0x23c]
mov rdx, qword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
call rdx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x130], rax
mov dword [rbp + 0x78], 0x20
mov eax, reloc.WS2_32.dll_inet_ntoa
add eax, dword [rbp + 0x78]
mov dword [rbp + 0x78], eax
mov eax, 0x400
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.1400aab80
sub rsp, rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x138], rax
mov rax, qword [rbp + 0x138]
mov qword [rbp + 0x140], rax
mov eax, 0x400
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.1400aab80
sub rsp, rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x150], rax
mov rax, qword [rbp + 0x140]
test rax, rax
je 0x14003903d
mov rax, qword [rbp + 0x150]
test rax, rax
jne 0x1400390d0
mov dword [rbp + 0x268], 0
lea rax, [rbp + 0x29a]
mov byte [rax], 0
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x7c], eax
lea rax, [rbp + 0x268]
mov edx, 0x2ee2
mov ecx, dword [rbp + 0x7c]
lea rbx, str._alloca
lea rsi, str.sprvnc_ICMPPing
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x1d8], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1d8]
mov r8d, eax
mov r9, rbx
call sub.oracore.dll_slosFillErr
mov rax, qword [rbp + 0x700]
lea rdx, [rbp + 0x268]
mov ecx, 0
mov qword [rbp + 0x1e0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1e0]
mov r8, rax
call fcn.14002d2fe
mov dword [rbp + 0x80], eax
jmp 0x1400395cb
mov rax, qword [rbp + 0x140]
mov edx, 0
mov ecx, 0x400
mov qword [rbp + 0x1e8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1e8]
mov r8, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x140]
mov edx, dword [rbp + 0x78]
mov rcx, rax
call fcn.1400388b8
mov dword [rbp + 0x14], 0
mov eax, dword [rbp + 0x14]
mov rdx, qword [rbp + 0x718]
mov edx, dword [rdx + 4]
cmp eax, edx
jb 0x14003913d
jmp 0x1400395cb
mov eax, 1
add eax, dword [rbp + 0x14]
mov dword [rbp + 0x14], eax
jmp 0x14003911a
mov rax, qword [rbp + 0x140]
mov word [rax + 2], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x140]
mov edx, dword [rbp + 0x84]
mov dword [rax + 8], edx
mov rax, qword [rbp + 0x140]
movzx edx, word [rbp]
mov word [rax + 6], dx
movzx eax, word [rbp]
movzx eax, ax
inc eax
mov word [rbp], ax
mov rax, qword [rbp + 0x140]
mov edx, dword [rbp + 0x78]
mov rcx, rax
call fcn.1400385aa
mov word [rbp + 2], ax
mov rax, qword [rbp + 0x140]
movzx edx, word [rbp + 2]
mov word [rax + 2], dx
mov rax, qword [rbp + 0x100]
mov rdx, qword [rbp + 0x140]
mov ecx, dword [rbp + 0x78]
mov ebx, 0
lea rsi, [rbp + 0x238]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 0x10
mov rsi, qword [sym.imp.orauts.dll_sendto]
mov dword [rbp + 0x1f0], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1f0]
mov r8d, eax
mov r9d, ebx
call rsi
mov dword [rbp + 0x88], eax
mov eax, dword [rbp + 0x88]
mov dword [rbp + 0x8c], eax
mov eax, dword [rbp + 0x8c]
cmp eax, 0xffffffff
jne 0x140039295
mov rax, qword [sym.imp.orauts.dll_WSAGetLastError]
call rax
mov dword [rbp + 0x90], eax
mov eax, dword [rbp + 0x90]
cmp eax, 0x274c
je 0x140039130
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x98], eax
mov rax, qword [rbp + 0x700]
lea rdx, [0x1400c0e60]
mov ecx, dword [rbp + 0x98]
mov ebx, 0
lea rsi, str.sprvnc_ICMPPing
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x1f8], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1f8]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0xa0], eax
jmp 0x1400395cb
mov dword [rbp + 0x94], 0
mov eax, dword [rbp + 0x94]
cmp eax, 5
jl 0x1400392c2
jmp 0x1400394e1
mov eax, 1
add eax, dword [rbp + 0x94]
mov dword [rbp + 0x94], eax
jmp 0x14003929f
mov rax, qword [rbp + 0x100]
mov rdx, qword [rbp + 0x150]
mov ecx, 0x400
mov ebx, 0
lea rsi, [rbp + 0x248]
mov qword [rsp + 0x20], rsi
lea rsi, [rbp + 0xc]
mov qword [rsp + 0x28], rsi
mov rsi, qword [sym.imp.orauts.dll_recvfrom]
mov dword [rbp + 0x200], ecx
mov rcx, rax
mov eax, dword [rbp + 0x200]
mov r8d, eax
mov r9d, ebx
call rsi
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x9c]
mov dword [rbp + 0x60], eax
mov eax, dword [rbp + 0x60]
cmp eax, 0xffffffff
jne 0x1400394e1
mov rax, qword [sym.imp.orauts.dll_WSAGetLastError]
call rax
mov dword [rbp + 0xac], eax
mov eax, dword [rbp + 0xac]
mov dword [rbp + 0xb4], eax
mov eax, dword [rbp + 0xb4]
cmp eax, 0x2733
jne 0x1400394e1
mov rax, qword [rbp + 0x718]
mov eax, dword [rax]
mov dword [rbp + 0xb8], eax
mov dword [rbp + 0xbc], 0
mov dword [rbp + 0x4d8], 0
mov dword [rbp + 0xc0], 0
mov eax, dword [rbp + 0xc0]
mov edx, dword [rbp + 0x4d8]
cmp eax, edx
jae 0x1400393c7
lea rax, [rbp + 0x4e0]
mov edx, dword [rbp + 0xc0]
imul rdx, rdx, 8
add rax, rdx
mov rax, qword [rax]
mov rdx, qword [rbp + 0x100]
cmp rax, rdx
je 0x1400393c7
mov eax, 1
add eax, dword [rbp + 0xc0]
mov dword [rbp + 0xc0], eax
jmp 0x140039381
mov eax, dword [rbp + 0xc0]
mov edx, dword [rbp + 0x4d8]
cmp eax, edx
jne 0x140039411
mov eax, dword [rbp + 0x4d8]
cmp eax, 0x40
jae 0x140039411
lea rax, [rbp + 0x4e0]
mov edx, dword [rbp + 0xc0]
imul rdx, rdx, 8
add rax, rdx
mov rdx, qword [rbp + 0x100]
mov qword [rax], rdx
mov eax, 1
add eax, dword [rbp + 0x4d8]
mov dword [rbp + 0x4d8], eax
mov eax, 0
test eax, eax
jne 0x140039377
mov eax, 0
lea rdx, [rbp + 0x4d8]
mov ecx, 0
mov ebx, 0
lea rsi, [rbp + 0xb8]
mov qword [rsp + 0x20], rsi
mov rsi, qword [sym.imp.orauts.dll_select]
mov qword [rbp + 0x208], rcx
mov ecx, eax
mov rax, qword [rbp + 0x208]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 0xc4]
mov dword [rbp + 0xc8], eax
mov eax, dword [rbp + 0xc8]
test eax, eax
jne 0x1400392af
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0xcc], eax
mov rax, qword [rbp + 0x700]
lea rdx, str.recvfom
mov ecx, dword [rbp + 0xcc]
mov ebx, 0
lea rsi, str.sprvnc_ICMPPing
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x210], ecx
mov rcx, rax
mov eax, dword [rbp + 0x210]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0xd0], eax
jmp 0x1400395cb
mov eax, dword [rbp + 0x60]
cmp eax, 0xffffffff
je 0x140039538
mov rax, qword [rbp + 0x700]
mov rdx, qword [rbp + 0x150]
mov ecx, dword [rbp + 0x60]
lea rbx, [rbp + 0x248]
mov dword [rbp + 0x218], ecx
mov rcx, rax
mov eax, dword [rbp + 0x218]
mov r8d, eax
mov r9, rbx
call fcn.140038020
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x1400395cb
jmp 0x140039597
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0xa8], eax
mov rax, qword [rbp + 0x700]
lea rdx, str.recvfom
mov ecx, dword [rbp + 0xa8]
mov ebx, 0
lea rsi, str.sprvnc_ICMPPing
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x220], ecx
mov rcx, rax
mov eax, dword [rbp + 0x220]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0xb0], eax
jmp 0x1400395cb
mov eax, 1
add eax, dword [rbp + 0x14]
mov rdx, qword [rbp + 0x718]
mov edx, dword [rdx + 4]
cmp eax, edx
jae 0x140039130
mov rax, qword [rbp + 0x718]
mov eax, dword [rax + 8]
mov rdx, qword [sym.imp.orauts.dll_Sleep]
mov ecx, eax
call rdx
jmp 0x140039130
mov rax, qword [rbp + 0x100]
cmp rax, 0xffffffffffffffff
je 0x140039606
mov rax, qword [rbp + 0x100]
cmp rax, 0xffffffffffffffff
jb 0x140039606
mov rax, qword [rbp + 0x100]
mov rdx, qword [sym.imp.orauts.dll_closesocket]
mov rcx, rax
call rdx
mov dword [rbp + 0x30], eax
mov qword [rbp + 0x100], 0xffffffffffffffff
mov rax, qword [sym.imp.orauts.dll_WSACleanup]
call rax
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 4]
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp + 0x6e0]
mov qword [rbp + 0x6e0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0xd4]
mov rbx, qword [rbp + 0x228]
mov rsi, qword [rbp + 0x230]
lea rsp, [rbp + 0x6f0]
pop rbp
ret