Function at 0x140035580
Capabilities:
Convert ip address from string

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2e8
mov r10, qword [rcx + 0x800]
movzx ebx, word [rcx + 0x228]
movzx r14d, word [rcx + 0x22a]
mov r11, qword [rcx + 0x7f8]
mov r13, qword [rcx + 0x808]
mov qword [rsp + 0x338], rdx
mov rsi, rcx
mov rbp, r8
mov r15d, r9d
mov qword [rsp + 0x58], 0
test r10, r10
je 0x140035a00
lea r12, [rsp + 0x60]
mov ecx, 0x10
test r13, r13
je 0x1400358a0
xor eax, eax
mov rdi, r12
rep stosq qword [rdi], rax
mov rcx, r10
call sym.strlen
cmp rax, 0xfe
ja 0x1400358d4
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x120], 0
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x140], 0
mov qword [rsp + 0x148], 0
mov qword [rsp + 0x150], 0
mov qword [rsp + 0x158], 0
mov qword [rsp + 0x160], 0
mov qword [rsp + 0x168], 0
mov qword [rsp + 0x170], 0
mov qword [rsp + 0x178], 0
mov qword [rsp + 0x180], 0
mov qword [rsp + 0x188], 0
mov qword [rsp + 0x190], 0
mov qword [rsp + 0x198], 0
mov qword [rsp + 0x1a0], 0
mov qword [rsp + 0x1a8], 0
mov qword [rsp + 0x1b0], 0
mov qword [rsp + 0x1b8], 0
mov qword [rsp + 0x1c0], 0
mov qword [rsp + 0x1c8], 0
mov qword [rsp + 0x1d0], 0
mov qword [rsp + 0x1d8], 0
mov rax, qword [rsp + 0x338]
movzx edi, byte [rax + 0x7af]
cmp r15d, 2
je 0x140035d36
cmp r15d, 0x17
je 0x140035d2a
lea r10, [rsp + 0x58]
xor r9d, r9d
mov rdx, r13
mov rcx, rsi
mov qword [rsp + 0x20], r10
mov r8d, 0x50
mov qword [rsp + 0x38], r10
call sym.Curl_resolv
mov r10, qword [rsp + 0x38]
cmp eax, 1
je 0x140035db0
mov rax, qword [rsp + 0x338]
mov byte [rax + 0x7af], dil
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140035cd7
mov rcx, qword [rax]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov qword [rsp + 0x38], rdx
call sym.Curl_printable_address
test byte [rsi + 0xa37], 0x10
je 0x140035861
mov rax, qword [rsi + 0x11e8]
test rax, rax
je 0x140035833
mov r10d, dword [rax + 8]
test r10d, r10d
jle 0x140035861
mov rax, qword [rsp + 0x58]
mov r9d, r15d
mov r8, r13
mov rcx, rsi
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov rax, qword [rax]
mov eax, dword [rax + 4]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
call sym.Curl_infof
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call sym.Curl_resolv_unlock
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
cmp dword [rax + 4], r15d
jne 0x140035d20
cmp r15d, 0x17
je 0x140035d42
cmp r15d, 2
je 0x140035aa2
xor r13d, r13d
jmp 0x1400358eb
mov rdi, r12
mov rax, r13
rep stosq qword [rdi], rax
mov rdi, r10
mov rcx, rdi
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x38], r11
call sym.strlen
mov r11, qword [rsp + 0x38]
mov r10, qword [rsp + 0x40]
cmp rax, 0xfe
jbe 0x140035ae5
cmp r15d, 0x17
je 0x140035a50
xor r13d, r13d
cmp r15d, 2
je 0x140035ac0
movzx edi, r14w
mov r15, qword [sym.imp.WS2_32.dll_ntohs]
mov r14, qword [sym.imp.WS2_32.dll_bind]
jmp 0x140035959
sub edi, 1
test edi, edi
jle 0x1400359c0
add bx, 1
je 0x1400359c0
movzx eax, bx
test byte [rsi + 0xa37], 0x10
je 0x14003594f
mov rdx, qword [rsi + 0x11e8]
test rdx, rdx
je 0x140035934
mov edx, dword [rdx + 8]
test edx, edx
jle 0x14003594f
lea r8d, [rax - 1]
lea rdx, str.Bind_to_local_port__d_failed__trying_next
mov rcx, rsi
mov dword [rsp + 0x38], eax
call sym.Curl_infof
mov eax, dword [rsp + 0x38]
mov ecx, eax
call r15
mov word [rsp + 0x62], ax
mov r8d, r13d
mov rdx, r12
mov rcx, rbp
call r14
test eax, eax
js 0x140035900
test byte [rsi + 0xa37], 0x10
je 0x140035998
mov rax, qword [rsi + 0x11e8]
test rax, rax
je 0x140035985
mov ecx, dword [rax + 8]
test ecx, ecx
jle 0x140035998
movzx r8d, bx
lea rdx, str.Local_port:__hu
mov rcx, rsi
call sym.Curl_infof
mov rax, qword [rsp + 0x338]
or byte [rax + 0x3a2], 0x20
xor eax, eax
add rsp, 0x2e8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x1e0]
mov r8d, 0x100
mov dword [rsi + 0xc64], eax
mov ecx, eax
mov ebx, eax
call sym.Curl_strerror
mov r8d, ebx
lea rdx, str.bind_failed_with_errno__d:__s
mov rcx, rsi
mov r9, rax
call sym.Curl_failf
mov eax, 0x2d
jmp 0x1400359a9
test r13, r13
je 0x140035a78
lea r12, [rsp + 0x60]
mov ecx, 0x20
xor eax, eax
mov r10, r11
mov rdi, r12
rep stosd dword [rdi], eax
test r11, r11
jne 0x1400355f5
jmp 0x1400358d4
mov rdx, r15
lea r8, [rsp + 0x68]
mov ecx, 0x17
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x140035a6a
nop word [rax + rax]
mov r9d, 0x17
movzx ecx, bx
mov word [rsp + 0x60], r9w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
mov r13d, 0x1c
jmp 0x1400358eb
test r11, r11
jne 0x140035e71
test bx, bx
je 0x1400359a7
lea r12, [rsp + 0x60]
mov ecx, 0x10
mov rax, r11
mov rdi, r12
rep stosq qword [rdi], rax
jmp 0x1400358d4
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x64]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x140035894
nop
mov r8d, 2
movzx ecx, bx
mov r13d, 0x10
mov word [rsp + 0x60], r8w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
jmp 0x1400358eb
lea rax, [rsp + 0xe0]
mov r9, rdi
mov qword [rsp + 0x40], r10
mov ecx, r15d
mov qword [rsp + 0x48], r11
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x120], 0
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x140], 0
mov qword [rsp + 0x148], 0
mov qword [rsp + 0x150], 0
mov qword [rsp + 0x158], 0
mov qword [rsp + 0x160], 0
mov qword [rsp + 0x168], 0
mov qword [rsp + 0x170], 0
mov qword [rsp + 0x178], 0
mov qword [rsp + 0x180], 0
mov qword [rsp + 0x188], 0
mov qword [rsp + 0x190], 0
mov qword [rsp + 0x198], 0
mov qword [rsp + 0x1a0], 0
mov qword [rsp + 0x1a8], 0
mov qword [rsp + 0x1b0], 0
mov qword [rsp + 0x1b8], 0
mov qword [rsp + 0x1c0], 0
mov qword [rsp + 0x1c8], 0
mov qword [rsp + 0x1d0], 0
mov edx, dword [rsp + 0x350]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x338]
mov qword [rsp + 0x28], 0x100
mov r8d, dword [rax + 0x7a4]
mov qword [rsp + 0x1d8], 0
call sym.Curl_if2ip
cmp eax, 1
je 0x140035d20
cmp eax, 2
mov r10, qword [rsp + 0x40]
je 0x140035e0f
test eax, eax
mov r11, qword [rsp + 0x48]
je 0x140035dc0
mov r13, r11
test r10, r10
je 0x140035789
and byte [rsi + 0x1264], 0xf7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x1e0]
mov r8d, 0x100
mov dword [rsi + 0xc64], eax
mov ecx, eax
mov ebx, eax
call sym.Curl_strerror
mov r9d, ebx
mov r8, r13
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea rdx, str.Couldnt_bind_to__s_with_errno__d:__s
call sym.Curl_failf
jmp 0x1400359f8
mov eax, 1
jmp 0x1400359a9
mov byte [rax + 0x7af], 2
jmp 0x1400357ac
mov byte [rax + 0x7af], 1
jmp 0x1400357ac
mov r15, qword [rsp + 0x38]
mov edx, 0x25
mov rcx, r15
call sym.strchr
mov rdi, rax
test rax, rax
je 0x140035a30
mov byte [rax], 0
lea r8, [rsp + 0x68]
mov rdx, r15
mov ecx, 0x17
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x140035a6a
mov eax, 0x17
movzx ecx, bx
mov word [rsp + 0x60], ax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rdi + 1]
mov r8d, 0xa
xor edx, edx
mov word [rsp + 0x62], ax
call sym.strtoul
mov dword [rsp + 0x78], eax
jmp 0x140035a6a
mov rdx, r10
mov rcx, rsi
call sym.Curl_resolver_wait_resolv
jmp 0x1400357dd
test r10, r10
jne 0x140035dcd
mov r13, r11
jmp 0x140035789
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x1e0]
mov r8d, 0x100
mov dword [rsi + 0xc64], eax
mov ecx, eax
mov ebx, eax
call sym.Curl_strerror
mov r9d, ebx
mov r8, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea rdx, str.Couldnt_bind_to_interface__s_with_errno__d:__s
call sym.Curl_failf
jmp 0x1400359f8
test byte [rsi + 0xa37], 0x10
je 0x140035e66
mov rax, qword [rsi + 0x11e8]
test rax, rax
je 0x140035e2d
mov r11d, dword [rax + 8]
test r11d, r11d
jle 0x140035e66
mov dword [rsp + 0x20], r15d
mov r9, qword [rsp + 0x38]
mov r8, rdi
mov rcx, rsi
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i
mov qword [rsp + 0x40], r10
call sym.Curl_infof
mov r10, qword [rsp + 0x40]
test r10, r10
jne 0x140035880
mov r13, qword [rsp + 0x38]
jmp 0x140035789
test r10, r10
jne 0x140035880
jmp 0x140035e5c
lea r12, [rsp + 0x60]
mov ecx, 0x10
mov rax, r10
mov rdi, r12
rep stosq qword [rdi], rax
mov rdi, r11
jmp 0x1400358ac