Function at 0x1404b3430
Capabilities:
Convert ip address from string

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x5f0
lea rdi, [rsp + 0x30]
mov ecx, 0x170
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x600]
mov rax, qword [0x140814ac0]
xor rax, rsp
mov qword [rsp + 0x5e8], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xd0], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xf8], 0
mov rax, qword [rsp + 0x600]
movzx eax, word [rax + 0x238]
mov word [rsp + 0x104], ax
mov rax, qword [rsp + 0x600]
movzx eax, word [rax + 0x23a]
mov dword [rsp + 0x108], eax
mov eax, 8
imul rax, rax, 0x1e
mov rcx, qword [rsp + 0x600]
mov rax, qword [rcx + rax + 0x718]
mov qword [rsp + 0x110], rax
mov eax, 8
imul rax, rax, 0x1f
mov rcx, qword [rsp + 0x600]
mov rax, qword [rcx + rax + 0x718]
mov qword [rsp + 0x118], rax
mov eax, 8
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x600]
mov rax, qword [rcx + rax + 0x718]
mov qword [rsp + 0x120], rax
cmp qword [rsp + 0x118], 0
je 0x1404b3562
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x5d0], rax
jmp 0x1404b3572
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x5d0], rax
mov rax, qword [rsp + 0x5d0]
mov qword [rsp + 0x128], rax
cmp qword [rsp + 0x120], 0
je 0x1404b359f
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x5d8], rax
jmp 0x1404b35af
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x5d8], rax
mov rax, qword [rsp + 0x5d8]
mov qword [rsp + 0x130], rax
cmp qword [rsp + 0x128], 0
jne 0x1404b35e8
cmp qword [rsp + 0x130], 0
jne 0x1404b35e8
movzx eax, word [rsp + 0x104]
test eax, eax
jne 0x1404b35e8
xor eax, eax
jmp 0x1404b3d2c
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1401dbfd6
cmp qword [rsp + 0x128], 0
je 0x1404b3b45
mov rcx, qword [rsp + 0x128]
call fcn.1401d91f0
cmp rax, 0xff
jae 0x1404b3b45
movzx eax, byte [0x14081fb60]
mov byte [rsp + 0x150], al
lea rax, [rsp + 0x151]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov dword [rsp + 0x254], 0
mov dword [rsp + 0x258], 0
cmp qword [rsp + 0x120], 0
jne 0x1404b36ac
mov qword [rsp + 0x28], 0x100
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x128]
mov rax, qword [rsp + 0x608]
mov r8d, dword [rax + 0x7d4]
mov edx, dword [rsp + 0x620]
mov ecx, dword [rsp + 0x618]
call fcn.1401dd412
mov dword [rsp + 0x258], eax
mov eax, dword [rsp + 0x258]
mov dword [rsp + 0x5e0], eax
cmp dword [rsp + 0x5e0], 0
je 0x1404b36e5
cmp dword [rsp + 0x5e0], 1
je 0x1404b376c
cmp dword [rsp + 0x5e0], 2
je 0x1404b3776
jmp 0x1404b37c0
cmp qword [rsp + 0x118], 0
je 0x1404b376a
cmp qword [rsp + 0x120], 0
jne 0x1404b376a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x138], eax
mov rax, qword [rsp + 0x600]
mov ecx, dword [rsp + 0x138]
mov dword [rax + 0xca4], ecx
mov r8d, 0x100
lea rdx, [rsp + 0x270]
mov ecx, dword [rsp + 0x138]
call fcn.1401dc477
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x138]
mov r8, qword [rsp + 0x128]
lea rdx, str.Couldnt_bind_to_interface__s_with_errno__d:__s
mov rcx, qword [rsp + 0x600]
call fcn.1401df2ad
mov eax, 0x2d
jmp 0x1404b3d2c
jmp 0x1404b37c0
mov eax, 1
jmp 0x1404b3d2c
lea rax, [rsp + 0x150]
mov qword [rsp + 0x130], rax
mov eax, dword [rsp + 0x618]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x130]
mov r8, qword [rsp + 0x128]
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i
mov rcx, qword [rsp + 0x600]
call fcn.1401dd854
mov dword [rsp + 0x254], 1
cmp qword [rsp + 0x118], 0
je 0x1404b37da
cmp qword [rsp + 0x120], 0
je 0x1404b394a
mov rax, qword [rsp + 0x608]
movzx eax, byte [rax + 0x7df]
mov byte [rsp + 0x374], al
cmp dword [rsp + 0x618], 2
jne 0x1404b380b
mov rax, qword [rsp + 0x608]
mov byte [rax + 0x7df], 1
jmp 0x1404b3824
cmp dword [rsp + 0x618], 0x17
jne 0x1404b3824
mov rax, qword [rsp + 0x608]
mov byte [rax + 0x7df], 2
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x50
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x600]
call fcn.1401d74d6
mov dword [rsp + 0x378], eax
cmp dword [rsp + 0x378], 1
jne 0x1404b3876
lea rdx, [rsp + 0xf8]
mov rcx, qword [rsp + 0x600]
call fcn.1401dbe14
nop
mov rax, qword [rsp + 0x608]
movzx ecx, byte [rsp + 0x374]
mov byte [rax + 0x7df], cl
cmp qword [rsp + 0xf8], 0
je 0x1404b393f
mov r8d, 0x100
lea rdx, [rsp + 0x150]
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rax]
call fcn.1401dbc66
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
mov eax, dword [rax + 4]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x618]
mov r8, qword [rsp + 0x130]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov rcx, qword [rsp + 0x600]
call fcn.1401dd854
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x600]
call fcn.1401debff
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x618], eax
je 0x1404b3932
mov eax, 1
jmp 0x1404b3d2c
mov dword [rsp + 0x254], 1
jmp 0x1404b394a
mov dword [rsp + 0x254], 0xffffffff
cmp dword [rsp + 0x254], 0
jle 0x1404b3ab8
cmp dword [rsp + 0x618], 0x17
jne 0x1404b3a53
mov edx, 0x25
lea rcx, [rsp + 0x150]
call fcn.1401d57d5
mov qword [rsp + 0x380], rax
cmp qword [rsp + 0x380], 0
je 0x1404b39a9
mov rax, qword [rsp + 0x380]
mov byte [rax], 0
mov rax, qword [rsp + 0x380]
inc rax
mov qword [rsp + 0x380], rax
mov rax, qword [rsp + 0xe0]
add rax, 8
mov r8, rax
lea rdx, [rsp + 0x150]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1404b3a46
mov eax, reloc.WS2_32.dll_socket
mov rcx, qword [rsp + 0xe0]
mov word [rcx], ax
movzx ecx, word [rsp + 0x104]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0xe0]
mov word [rcx + 2], ax
cmp qword [rsp + 0x380], 0
je 0x1404b3a46
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x380]
call fcn.1401d6da1
mov dword [rsp + 0x388], eax
cmp dword [rsp + 0x388], 0xffffffff
jbe 0x1404b3a34
mov eax, 1
jmp 0x1404b3d2c
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x388]
mov dword [rax + 0x18], ecx
mov dword [rsp + 0xd0], 0x1c
jmp 0x1404b3ab8
cmp dword [rsp + 0x618], 2
jne 0x1404b3ab8
mov rax, qword [rsp + 0xd8]
add rax, 4
mov r8, rax
lea rdx, [rsp + 0x150]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1404b3ab8
mov eax, 2
mov rcx, qword [rsp + 0xd8]
mov word [rcx], ax
movzx ecx, word [rsp + 0x104]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0xd8]
mov word [rcx + 2], ax
mov dword [rsp + 0xd0], reloc.WS2_32.dll_recv
cmp dword [rsp + 0x254], 1
jge 0x1404b3b40
mov rax, qword [rsp + 0x600]
mov byte [rax + 0x12b0], 0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x138], eax
mov rax, qword [rsp + 0x600]
mov ecx, dword [rsp + 0x138]
mov dword [rax + 0xca4], ecx
mov r8d, 0x100
lea rdx, [rsp + 0x3a0]
mov ecx, dword [rsp + 0x138]
call fcn.1401dc477
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x138]
mov r8, qword [rsp + 0x130]
lea rdx, str.Couldnt_bind_to__s_with_errno__d:__s
mov rcx, qword [rsp + 0x600]
call fcn.1401df2ad
mov eax, 0x2d
jmp 0x1404b3d2c
jmp 0x1404b3bc5
cmp dword [rsp + 0x618], 0x17
jne 0x1404b3b86
mov eax, reloc.WS2_32.dll_socket
mov rcx, qword [rsp + 0xe0]
mov word [rcx], ax
movzx ecx, word [rsp + 0x104]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0xe0]
mov word [rcx + 2], ax
mov dword [rsp + 0xd0], 0x1c
jmp 0x1404b3bc5
cmp dword [rsp + 0x618], 2
jne 0x1404b3bc5
mov eax, 2
mov rcx, qword [rsp + 0xd8]
mov word [rcx], ax
movzx ecx, word [rsp + 0x104]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0xd8]
mov word [rcx + 2], ax
mov dword [rsp + 0xd0], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x610]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x1404b3c1c
movzx eax, word [rsp + 0x104]
mov r8d, eax
lea rdx, str.Local_port:__hu
mov rcx, qword [rsp + 0x600]
call fcn.1401dd854
mov rax, qword [rsp + 0x608]
mov byte [rax + 0x3b5], 1
xor eax, eax
jmp 0x1404b3d2c
mov eax, dword [rsp + 0x108]
dec eax
mov dword [rsp + 0x108], eax
cmp dword [rsp + 0x108], 0
jle 0x1404b3cc4
movzx eax, word [rsp + 0x104]
inc ax
mov word [rsp + 0x104], ax
movzx eax, word [rsp + 0x104]
test eax, eax
jne 0x1404b3c5b
jmp 0x1404b3ccb
movzx eax, word [rsp + 0x104]
dec eax
mov r8d, eax
lea rdx, str.Bind_to_local_port__d_failed__trying_next
mov rcx, qword [rsp + 0x600]
call fcn.1401dd854
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax]
cmp eax, 2
jne 0x1404b3ca8
movzx ecx, word [rsp + 0x104]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0xd8]
mov word [rcx + 2], ax
jmp 0x1404b3cc2
movzx ecx, word [rsp + 0x104]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0xe0]
mov word [rcx + 2], ax
jmp 0x1404b3cc6
jmp 0x1404b3ccb
jmp 0x1404b3bc5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x138], eax
mov rax, qword [rsp + 0x600]
mov ecx, dword [rsp + 0x138]
mov dword [rax + 0xca4], ecx
mov r8d, 0x100
lea rdx, [rsp + 0x4c0]
mov ecx, dword [rsp + 0x138]
call fcn.1401dc477
mov r9, rax
mov r8d, dword [rsp + 0x138]
lea rdx, str.bind_failed_with_errno__d:__s
mov rcx, qword [rsp + 0x600]
call fcn.1401df2ad
nop
mov eax, 0x2d
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_getsockname
call fcn.1401dcb34
mov rax, rdi
mov rcx, qword [rsp + 0x5e8]
xor rcx, rsp
call fcn.1401d9736
add rsp, 0x5f0
pop rdi
ret