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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
lea rdi, [rsp + 0x40]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x140]
mov rax, qword [0x140575740]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x94], 0x1c
mov rax, qword [rsp + 0x158]
movzx eax, word [rax]
cmp eax, 1
jne 0x1401286e8
xor eax, eax
jmp 0x140128c77
movsxd rax, dword [rsp + 0x190]
mov rdx, rax
mov ecx, 0xc0
call fcn.140137490
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
lea rcx, [0x140129440]
mov qword [rax], rcx
mov rax, qword [rsp + 0xa8]
lea rcx, [0x140129560]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0xa8]
lea rcx, [0x140129920]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x140]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x160]
mov qword [rax + 0x78], rcx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x168]
mov qword [rax + 0x80], rcx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x178]
mov qword [rax + 0x88], rcx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x180]
mov qword [rax + 0x90], rcx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x170]
mov qword [rax + 0x70], rcx
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x148]
mov dword [rax + 0x40], ecx
movsxd rax, dword [rsp + 0x148]
shl rax, 3
mov r9d, 0x28c
lea r8, [0x140555b30]
mov edx, 1
mov rcx, rax
call fcn.1403ba980
mov rcx, qword [rsp + 0xa8]
mov qword [rcx + 0x48], rax
mov rax, qword [rsp + 0xa8]
cmp qword [rax + 0x48], 0
jne 0x140128850
mov edx, 1
mov rcx, qword [rsp + 0xa8]
call fcn.1403ba8b0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfd
mov r8d, 0x28d
lea rdx, [0x140555b80]
xor ecx, ecx
call fcn.14014da80
nop
xor eax, eax
jmp 0x140128c77
mov rax, qword [rsp + 0x158]
movzx eax, word [rax]
cmp eax, 1
jne 0x1401288ce
xor r8d, r8d
mov edx, 1
mov ecx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x110]
mov qword [rax + 0x58], rcx
cmp qword [rsp + 0x110], 0xffffffffffffffff
jne 0x1401288c9
mov edx, 1
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x48]
call fcn.1403ba8b0
mov edx, 1
mov rcx, qword [rsp + 0xa8]
call fcn.1403ba8b0
xor eax, eax
jmp 0x140128c77
jmp 0x1401289e6
mov rax, qword [rsp + 0x158]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0xa8]
mov word [rcx + 0x60], ax
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa8]
movzx ecx, word [rcx + 0x60]
mov word [rax + 0x62], cx
mov rax, qword [rsp + 0x158]
movzx eax, word [rax]
mov r8d, 6
mov edx, 1
mov ecx, eax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x118]
mov qword [rax + 0x58], rcx
cmp qword [rsp + 0x118], 0xffffffffffffffff
jne 0x140128978
mov edx, 1
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x48]
call fcn.1403ba8b0
mov edx, 1
mov rcx, qword [rsp + 0xa8]
call fcn.1403ba8b0
xor eax, eax
jmp 0x140128c77
mov rax, qword [rsp + 0x158]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x1401289e6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x74]
mov r8d, 0x1b
mov edx, 0x29
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1401289e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, 0x29c
lea rdx, [0x140555bd0]
xor ecx, ecx
call fcn.14014da80
mov ecx, 0xfd
call fcn.14038e600
nop
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 0xfffffffb
mov edx, 0xffff
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140128a44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, 0x2a7
lea rdx, str.C:UsersyfjvyDownloadsMeshAgent_mastermicrostackILibAsyncServerSocket.c
xor ecx, ecx
call fcn.14014da80
mov ecx, 0xfd
call fcn.14038e600
nop
mov rax, qword [rsp + 0x158]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x140128a62
mov qword [rsp + 0x120], 0x1c
jmp 0x140128a6e
mov qword [rsp + 0x120], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0x120]
mov rdx, qword [rsp + 0x158]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140128ad5
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_closesocket]
mov edx, 1
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x48]
call fcn.1403ba8b0
mov edx, 1
mov rcx, qword [rsp + 0xa8]
call fcn.1403ba8b0
xor eax, eax
jmp 0x140128c77
lea r8, [rsp + 0x94]
lea rdx, [rsp + 0xb8]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_getsockname]
mov rax, qword [rsp + 0x158]
movzx eax, word [rax]
cmp eax, 1
je 0x140128b4a
movzx eax, word [rsp + 0xb8]
cmp eax, 0x17
jne 0x140128b30
movzx ecx, word [rsp + 0xba]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0xa8]
mov word [rcx + 0x60], ax
jmp 0x140128b4a
movzx ecx, word [rsp + 0xba]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0xa8]
mov word [rcx + 0x60], ax
mov dword [rsp + 0x40], 0
jmp 0x140128b5e
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x148]
cmp dword [rsp + 0x40], eax
jge 0x140128bf0
mov eax, dword [rsp + 0x198]
mov dword [rsp + 0x30], eax
lea rax, [0x140129330]
mov qword [rsp + 0x28], rax
lea rax, [0x140129290]
mov qword [rsp + 0x20], rax
lea r9, [0x1401291f0]
lea r8, [0x1401290c0]
mov edx, dword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
call fcn.14012a440
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xa8]
mov rdx, qword [rdx + 0x48]
mov qword [rdx + rcx*8], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx + 0x48]
lea rdx, [0x1401299b0]
mov rcx, qword [rcx + rax*8]
call fcn.14012a220
nop
jmp 0x140128b54
mov dword [rsp + 0xf4], 1
lea r8, [rsp + 0xf4]
mov edx, 0x8004667e
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rsp + 0xa8]
mov dword [rax + 0x64], 1
mov edx, 4
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_listen]
xor edx, edx
lea rcx, str.ILibAsyncServerSocket
call fcn.140137750
mov rcx, qword [rsp + 0xa8]
mov qword [rcx + 0x30], rax
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x140]
call fcn.14013c810
mov rax, qword [rsp + 0xa8]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140432f20]
call fcn.14037c300
mov rax, rdi
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.14037c650
add rsp, 0x130
pop rdi
ret