Function at 0x140038080
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, r9d
mov r14, r8
mov r15, rdx
mov rdi, rcx
test rcx, rcx
je 0x140037b6a
call fcn.14003ca90
test rax, rax
je 0x140037b6a
call fcn.14003c7d0
cmp qword [rax], 0
je 0x140037b6a
cmp qword [rax + 0x10], 0
je 0x140037b6a
mov r9d, ebp
mov r8, r14
mov rdx, r15
mov rcx, rdi
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
jmp 0x140038080
mov eax, dword [rsp + 0x70]
test eax, eax
jle 0x140037b94
mov edx, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x140037b9d
xor eax, eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
jns 0x140037b9d
mov edx, 0x80
jmp 0x140037b74
mov qword [rsp + 0x50], rbx
mov edx, 0xb8
mov qword [rsp + 0x58], r12
mov r12d, 1
mov ecx, r12d
call fcn.14002db80
mov rbx, rax
test rax, rax
je 0x140037c21
mov qword [rbx + 0x10], r15
lea rax, [0x140072d80]
mov qword [rbx], rax
mov qword [rbx + 0x20], r14
mov dword [rbx + 0x28], ebp
mov word [rbx + 0x2c], r12w
test bpl, 0x10
je 0x140037bee
mov ecx, r12d
call fcn.140034680
mov qword [rbx + 8], rax
mov r8, qword [rsp + 0x78]
lea rax, [0x140038400]
mov r9d, reloc.WS2_32.dll_select
mov qword [rsp + 0x28], rbx
lea rcx, [rbx + 0x38]
mov qword [rsp + 0x20], rax
mov rdx, rdi
call fcn.14002c0a0
mov rcx, rbx
call fcn.140037e20
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x1400a3708]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov ebp, r9d
mov dword [rsp + 0x20], 0x80
or ebp, 0x10
mov r15, r8
mov r14, rdx
mov rsi, rcx
test rcx, rcx
je 0x1400382af
call fcn.14003ca90
test rax, rax
je 0x1400382af
mov eax, dword [rsp + 0x110]
mov rdi, qword [rsp + 0x118]
test eax, eax
jle 0x1400380f0
mov edx, eax
jmp 0x1400380f7
jns 0x140038108
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x1400382af
lea r8, [rsp + 0x20]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140038133
lea rdx, str.getsockname
mov rcx, rdi
call fcn.140033ff0
jmp 0x1400382af
mov r12d, 1
mov edx, 0x60
mov ecx, r12d
call fcn.14002db80
mov rbx, rax
test rax, rax
jne 0x14003815f
lea rcx, [0x1400a0a1c]
call fcn.140033f50
jmp 0x1400382af
or dword [rbx + 0x30], r12d
lea rax, [0x140072d50]
mov rcx, rsi
mov qword [rbx], rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x20], r15
mov dword [rbx + 0x28], ebp
mov word [rbx + 0x2c], r12w
call fcn.14003ca90
mov r8, r12
mov qword [rbx + 0x48], rax
mov rdx, rdi
mov qword [rbx + 0x38], rdi
mov rcx, rax
mov qword [rbx + 0x40], rsi
call fcn.14003c960
test eax, eax
js 0x1400382a7
mov ecx, r12d
call fcn.140034680
mov ecx, 4
mov qword [rbx + 8], rax
mov word [rbx + 0x50], cx
lea edx, [rcx + 4]
call fcn.14002db80
mov qword [rbx + 0x58], rax
test rax, rax
jne 0x1400381de
lea rcx, str.calloc
call fcn.140033f50
jmp 0x140038296
xor edi, edi
cmp di, word [rbx + 0x50]
jge 0x140038232
mov esi, edi
nop dword [rax + rax]
movzx edx, word [rsp + 0x30]
mov rcx, rbx
call fcn.140038a10
mov rcx, qword [rbx + 0x58]
mov qword [rsi + rcx], rax
mov rax, qword [rbx + 0x58]
mov rcx, qword [rsi + rax]
test rcx, rcx
je 0x140038281
test r14, r14
je 0x140038220
call fcn.140038b20
test eax, eax
js 0x14003824d
inc word [rbx + 0x2c]
inc edi
movsx eax, word [rbx + 0x50]
add rsi, 8
cmp edi, eax
jl 0x1400381f0
mov eax, dword [rbx + 0x54]
test al, 2
jne 0x140038248
mov rcx, qword [rbx + 0x40]
or eax, 2
mov dword [rbx + 0x54], eax
call fcn.14002e3a0
mov rax, rbx
jmp 0x1400382b1
lea rcx, str.Couldnt_start_accepting_on_socket
call fcn.140034080
mov rcx, qword [rbx + 0x58]
movsxd rax, edi
lea rdi, [rax*8]
mov rcx, qword [rdi + rcx]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x58]
mov rcx, qword [rdi + rcx]
call fcn.140038ae0
jmp 0x14003828d
lea rcx, str.Couldnt_create_accepting_socket
call fcn.140034080
mov rcx, qword [rbx + 0x58]
call fcn.14002dc70
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400382a7
mov edx, r12d
call fcn.1400346a0
mov rcx, rbx
call fcn.14002dc70
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140042500
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret