Function at 0x1400f8820
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x208]
sub rsp, 0x308
mov rax, qword [0x1401bff00]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
movzx edi, word [rcx + 0x248]
xor r13d, r13d
movzx r14d, word [rcx + 0x24a]
mov rbx, rdx
mov qword [rsp + 0x38], rdx
mov rsi, rcx
mov rdx, qword [rcx + 0x818]
mov r15d, r9d
mov rcx, qword [rcx + 0x820]
mov r12, rdx
test rcx, rcx
mov qword [rsp + 0x60], r8
mov rax, qword [rsi + 0x828]
cmovne r12, rcx
mov qword [rsp + 0x40], r13
test rax, rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x48], rax
cmovne rdx, rax
mov qword [rsp + 0x50], rdx
test r12, r12
jne 0x1400f88bf
test rdx, rdx
jne 0x1400f88bf
test di, di
je 0x1400f8cb1
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
test r12, r12
je 0x1400f8be9
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r12 + rax], r13b
jne 0x1400f88f3
cmp rax, 0xff
jae 0x1400f8be9
xor edx, edx
mov byte [rbp - 0x10], r13b
mov r8d, 0xff
lea rcx, [rbp - 0xf]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x48]
mov ebx, r13d
mov dword [rsp + 0x30], ebx
test rax, rax
jne 0x1400f89ca
mov edx, dword [rbp + 0x270]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], 0x100
mov r9, r12
mov qword [rsp + 0x20], rax
mov ecx, r15d
mov rax, qword [rsp + 0x38]
mov r8d, dword [rax + 0x7d4]
call fcn.140082630
mov ecx, eax
test eax, eax
je 0x1400f89c5
sub ecx, 1
je 0x1400f8ad9
cmp ecx, 1
jne 0x1400f89a2
lea rax, [rbp - 0x10]
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x10]
mov qword [rsp + 0x50], rax
mov r8, r12
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i
mov rcx, rsi
call fcn.1400f07d0
mov ebx, 1
mov dword [rsp + 0x30], ebx
cmp qword [rsp + 0x58], r13
je 0x1400f8a1c
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x1400f8a1c
mov r12d, dword [rsp + 0x30]
test ebx, ebx
je 0x1400f8b8d
jmp 0x1400f8ae9
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x58], rbx
je 0x1400f8a1c
test rax, rax
jne 0x1400f8a1c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xf0]
mov ecx, eax
mov dword [rsi + 0xcac], eax
mov ebx, eax
call fcn.1400d4920
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8, r12
lea rdx, str.Couldnt_bind_to_interface__s_with_errno__d:__s
mov rcx, rsi
call fcn.1400f06e0
mov eax, 0x2d
jmp 0x1400f8cb3
mov rax, qword [rsp + 0x38]
movzx ebx, byte [rax + 0x7df]
cmp r15d, 2
jne 0x1400f8a37
mov byte [rax + 0x7df], 1
jmp 0x1400f8a44
cmp r15d, 0x17
jne 0x1400f8a44
mov byte [rax + 0x7df], 2
mov r12, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rsi
lea r8d, [r9 + 0x50]
call fcn.1401042b0
cmp eax, 1
jne 0x1400f8a77
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400e2170
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov byte [rax + 0x7df], bl
test rcx, rcx
je 0x1400f8b9c
mov rcx, qword [rcx]
lea rdx, [rbp - 0x10]
mov r8d, 0x100
mov ebx, dword [rcx + 4]
call fcn.140104270
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov rcx, rsi
mov r9d, r15d
mov r8, r12
call fcn.1400f07d0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1401048b0
cmp r15d, ebx
je 0x1400f8ae3
mov eax, 1
jmp 0x1400f8cb3
mov r12d, 1
cmp r15d, 0x17
jne 0x1400f8b58
lea edx, [r15 + 0xe]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_strchr
mov rbx, rax
test rax, rax
je 0x1400f8b0a
mov byte [rax], r13b
inc rbx
mov r15d, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x78]
mov ecx, r15d
lea rdx, [rbp - 0x10]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400f8b50
movzx ecx, di
mov word [rsp + 0x70], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x72], ax
test rbx, rbx
je 0x1400f8b50
xor edx, edx
lea r8d, [r15 - 0xd]
mov rcx, rbx
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov dword [rbp - 0x78], eax
mov r13d, 0x1c
jmp 0x1400f8b8d
cmp r15d, 2
jne 0x1400f8b8d
mov ebx, r15d
lea r8, [rsp + 0x74]
mov ecx, ebx
lea rdx, [rbp - 0x10]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400f8b8d
movzx ecx, di
mov word [rsp + 0x70], bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x72], ax
lea r13d, [r15 + 0xe]
cmp r12d, 1
jae 0x1400f8c2b
mov r12, qword [rsp + 0x50]
mov byte [rsi + 0x131f], 0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xf0]
mov ecx, eax
mov dword [rsi + 0xcac], eax
mov ebx, eax
call fcn.1400d4920
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8, r12
lea rdx, str.Couldnt_bind_to__s_with_errno__d:__s
mov rcx, rsi
call fcn.1400f06e0
mov eax, 0x2d
jmp 0x1400f8cb3
cmp r15d, 0x17
jne 0x1400f8c09
movzx ecx, di
mov word [rsp + 0x70], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x72], ax
lea r13d, [r15 + 5]
jmp 0x1400f8c30
cmp r15d, 2
jne 0x1400f8c30
mov ebx, r15d
movzx ecx, di
mov word [rsp + 0x70], bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x72], ax
mov r13d, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x38]
mov r15, qword [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov rcx, r15
mov r8d, r13d
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x1400f8c97
nop word [rax + rax]
dec r14d
test r14d, r14d
jle 0x1400f8cd6
add di, 1
je 0x1400f8cd6
movzx r8d, di
lea rdx, str.Bind_to_local_port__d_failed__trying_next
dec r8d
mov rcx, rsi
call fcn.1400f07d0
movzx ecx, di
call qword [sym.imp.WS2_32.dll_ntohs]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r15
mov word [rsp + 0x72], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x1400f8c50
movzx r8d, di
lea rdx, str.Local_port:__hu
mov rcx, rsi
call fcn.1400f07d0
mov byte [rbx + 0x3cc], 1
xor eax, eax
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140159c90
add rsp, 0x308
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xf0]
mov ecx, eax
mov dword [rsi + 0xcac], eax
mov ebx, eax
call fcn.1400d4920
mov r9, rax
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400f06e0
mov eax, 0x2d
jmp 0x1400f8cb3