Function at 0x140129a20
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x158
lea rdi, [rsp + 0x30]
mov ecx, 0x4a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x170]
mov rax, qword [0x140575740]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x84], 0x1c
mov r8d, 0x1c
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.140410c60
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x68], 2
je 0x140129b1a
call fcn.14014bbd0
test eax, eax
je 0x140129b1a
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0xa8], ax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x68], 0
je 0x140129ad8
lea rax, [0x14043ff38]
mov qword [rsp + 0x120], rax
jmp 0x140129ae7
lea rax, [0x14043ff28]
mov qword [rsp + 0x120], rax
lea rax, [rsp + 0xb0]
mov rdi, rax
mov rsi, qword [rsp + 0x120]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x30]
movzx ecx, word [rax + 0x62]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xaa], ax
jmp 0x140129b75
mov eax, 2
mov word [rsp + 0xa8], ax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x68], 0
je 0x140129b3f
mov dword [rsp + 0x128], 0x7f000001
jmp 0x140129b4a
mov dword [rsp + 0x128], 0
mov ecx, dword [rsp + 0x128]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0xac], eax
mov rax, qword [rsp + 0x30]
movzx ecx, word [rax + 0x62]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xaa], ax
movzx eax, word [rsp + 0xa8]
mov r8d, 6
mov edx, 1
mov ecx, eax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x130]
mov qword [rax + 0x58], rcx
cmp qword [rsp + 0x130], 0xffffffffffffffff
jne 0x140129bc6
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x58], 0xffffffffffffffff
jmp 0x140129d59
movzx eax, word [rsp + 0xa8]
cmp eax, 0x17
jne 0x140129c2e
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x64]
mov r8d, 0x1b
mov edx, 0x29
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140129c2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, 0x1f9
lea rdx, [0x140555a90]
xor ecx, ecx
call fcn.14014da80
mov ecx, 0xfd
call fcn.14038e600
nop
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x44]
mov r8d, 0xfffffffb
mov edx, 0xffff
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140129c89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, 0x201
lea rdx, [0x140555ae0]
xor ecx, ecx
call fcn.14014da80
mov ecx, 0xfd
call fcn.14038e600
nop
movzx eax, word [rsp + 0xa8]
cmp eax, 0x17
jne 0x140129ca4
mov qword [rsp + 0x138], 0x1c
jmp 0x140129cb0
mov qword [rsp + 0x138], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0x138]
lea rdx, [rsp + 0xa8]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140129cf1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x58], 0xffffffffffffffff
jmp 0x140129d59
lea r8, [rsp + 0x84]
lea rdx, [rsp + 0xe8]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_getsockname]
movzx eax, word [rsp + 0xe8]
cmp eax, 0x17
jne 0x140129d36
movzx ecx, word [rsp + 0xea]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0x30]
mov word [rcx + 0x60], ax
jmp 0x140129d4d
movzx ecx, word [rsp + 0xea]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0x30]
mov word [rcx + 0x60], ax
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x64], 0
mov rcx, rsp
lea rdx, [0x140433260]
call fcn.14037c300
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14037c650
add rsp, 0x158
pop rdi
pop rsi
ret