Function at 0x180082638
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x180375980]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rbx, qword [rcx + 0x18]
mov rsi, r8
mov r14, qword [r8 + 0xc28]
mov rdi, rdx
mov qword [rsp + 0x38], rcx
movabs rax, 0x6e776f6e6b6e75
xor edx, edx
mov qword [rsp + 0x48], rbx
mov r8d, 0xf8
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x78]
call fcn.1800e44e0
mov r12b, byte [rbx + 0xd4]
mov rcx, qword [rdi + 0x18]
cmp r12b, 5
sete byte [rsp + 0x30]
call fcn.1800bc0f0
mov ecx, dword [rdi]
xor edx, edx
movzx r15d, byte [rsi + 0x69b]
xor ebx, ebx
xor r13b, r13b
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rdx
mov r8, rax
cmp ecx, 9
jg 0x180082c09
je 0x180082939
sub ecx, 1
je 0x1800827c1
sub ecx, 1
je 0x180082788
sub ecx, 1
je 0x1800828ba
sub ecx, 1
je 0x1800828c6
sub ecx, 2
je 0x1800829a3
sub ecx, 1
je 0x180082a78
cmp ecx, 1
jne 0x180082c89
mov rbx, qword [rsp + 0x38]
lea rax, str.SOCKS5_sub_negotiation_response
mov r9d, send
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.18008307c
test eax, eax
jne 0x18008302e
cmp qword [rdi + 8], 0
jne 0x180082983
movzx eax, byte [r14 + 1]
test al, al
je 0x180082928
movzx r8d, byte [r14]
lea rdx, str.User_was_rejected_by_the_SOCKS5_server___d__d_.
mov r9d, eax
mov rcx, rsi
call fcn.180067f94
mov eax, 0x21
jmp 0x18008302e
mov rcx, qword [rsp + 0x38]
lea rax, str.initial_SOCKS5_request
mov r9d, 0x1d
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, rdi
call fcn.180083114
test eax, eax
jne 0x18008302e
cmp qword [rdi + 8], rbx
jne 0x180082983
jmp 0x1800828ba
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x2c8], dl
je 0x1800827ea
mov r9d, dword [rdi + 0x20]
lea rdx, str.SOCKS5:_connecting_to_HTTP_proxy__s_port__d
mov r8, qword [rdi + 0x18]
mov rcx, rsi
call fcn.180068060
mov r8, qword [rsp + 0x58]
cmp r12b, 5
je 0x18008280d
cmp r8, 0xff
jbe 0x18008280d
lea rdx, str.SOCKS5:_server_resolving_disabled_for_hostnames_of_length___255__actual_len_zu_
mov rcx, rsi
call fcn.180068060
mov byte [rsp + 0x30], 1
mov r8d, r15d
test r15d, 0xfffffffa
je 0x180082828
lea rdx, str.warning:_unsupported_value_passed_to_CURLOPT_SOCKS5_AUTH:__u
mov rcx, rsi
call fcn.180068060
test r15b, 1
jne 0x180082832
and qword [rdi + 0x28], rbx
test r15b, 4
mov byte [r14], 5
mov byte [r14 + 2], bl
mov ecx, 3
setne r13b
test r15b, 4
je 0x180082857
mov byte [r14 + 3], 1
mov ecx, 4
cmp qword [rdi + 0x28], rbx
je 0x180082866
mov eax, ecx
inc ecx
mov byte [rax + r14], 2
lea eax, [rcx - 2]
mov r9d, 0x1d
mov byte [r14 + 1], al
mov r8, rsi
mov eax, ecx
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
mov qword [rdi + 8], rax
lea rax, str.initial_SOCKS5_request
mov qword [rsp + 0x20], rax
mov qword [rdi + 0x10], r14
call fcn.180083114
test eax, eax
jne 0x18008302e
cmp qword [rdi + 8], rbx
jne 0x180082983
lea r8d, [rax + 4]
mov rdx, rsi
mov rcx, rdi
call fcn.1800831ac
mov qword [rdi + 8], 2
mov qword [rdi + 0x10], r14
mov rbx, qword [rsp + 0x38]
lea rax, str.initial_SOCKS5_response
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_ntohs
mov r8, rsi
mov rdx, rdi
call fcn.18008307c
test eax, eax
jne 0x18008302e
cmp qword [rdi + 8], 0
jne 0x180082983
lea r15d, [rax + 5]
cmp byte [r14], r15b
je 0x180082920
lea rdx, str.Received_invalid_version_in_initial_SOCKS5_response.
mov rcx, rsi
call fcn.180067f94
mov eax, 2
jmp 0x18008302e
mov al, byte [r14 + 1]
test al, al
jne 0x18008298a
mov r8d, 9
mov rdx, rsi
mov rcx, rdi
call fcn.1800831ac
mov al, byte [rsp + 0x30]
test al, al
je 0x180082ca1
mov r8d, dword [rdi + 0x20]
lea rax, [rsp + 0x40]
mov rdx, qword [rdi + 0x18]
mov r9b, 1
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.18006ef78
cmp eax, 0xffffffff
je 0x180083029
mov rdx, rsi
mov rcx, rdi
cmp eax, 1
jne 0x180082b59
lea r8d, [rax + 9]
call fcn.1800831ac
xor eax, eax
jmp 0x18008302e
cmp al, 2
jne 0x180082ad0
mov r8d, 6
mov rdx, rsi
mov rcx, rdi
call fcn.1800831ac
mov rcx, qword [rdi + 0x28]
lea r12, [rdi + 0x30]
test rcx, rcx
je 0x1800829cd
cmp qword [r12], 0
je 0x1800829cd
call fcn.1800bc0f0
mov rcx, qword [r12]
mov rbx, rax
call fcn.1800bc0f0
mov r15, rax
jmp 0x1800829d2
xor ebx, ebx
xor r15d, r15d
mov byte [r14], 1
mov byte [r14 + 1], bl
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x180082a16
test rbx, rbx
je 0x180082a16
cmp rbx, 0xff
jbe 0x180082a0a
lea rdx, str.Excessive_user_name_length_for_proxy_auth
mov rcx, rsi
call fcn.180067f94
mov eax, listen
jmp 0x18008302e
lea rcx, [r14 + 2]
mov r8, rbx
call fcn.1800e3e40
mov byte [rbx + r14 + 2], r15b
add rbx, 3
mov rdx, qword [r12]
test rdx, rdx
je 0x180082a5b
test r15, r15
je 0x180082a5b
cmp r15, 0xff
jbe 0x180082a4f
lea rdx, str.Excessive_password_length_for_proxy_auth
mov rcx, rsi
call fcn.180067f94
mov eax, 0xa
jmp 0x18008302e
lea rcx, [rbx + r14]
mov r8, r15
call fcn.1800e3e40
mov r8d, 7
mov rdx, rsi
mov rcx, rdi
call fcn.1800831ac
lea rax, [r15 + rbx]
mov qword [rdi + 0x10], r14
mov qword [rdi + 8], rax
mov rbx, qword [rsp + 0x38]
lea rax, str.SOCKS5_sub_negotiation_request
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r9d, 0x1c
mov r8, rsi
mov rdx, rdi
call fcn.180083114
test eax, eax
jne 0x18008302e
cmp qword [rdi + 8], 0
jne 0x180082983
lea r8d, [rax + 8]
mov qword [rdi + 0x10], r14
mov rdx, rsi
mov qword [rdi + 8], 2
mov rcx, rdi
call fcn.1800831ac
jmp 0x180082728
cmp al, 1
jne 0x180082b23
test r13b, r13b
je 0x180082b0c
mov r8d, r15d
mov rdx, rsi
mov rcx, rdi
call fcn.1800831ac
mov rcx, rbx
call fcn.180089da8
test eax, eax
je 0x180082b40
lea rdx, str.Unable_to_negotiate_SOCKS5_GSS_API_context.
mov rcx, rsi
call fcn.180067f94
mov eax, 4
jmp 0x18008302e
lea rdx, str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
mov rcx, rsi
call fcn.180067f94
mov eax, r15d
jmp 0x18008302e
cmp al, 0xff
jne 0x180082b40
lea rdx, str.No_authentication_method_was_acceptable.
mov rcx, rsi
call fcn.180067f94
mov eax, recv
jmp 0x18008302e
lea rdx, str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
mov rcx, rsi
call fcn.180067f94
mov eax, 0x20
jmp 0x18008302e
mov r8d, recv
call fcn.1800831ac
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x180083016
mov r15, qword [rdx]
test r15, r15
je 0x180083016
mov ebx, 0x100
lea rdx, [rsp + 0x70]
mov r8d, ebx
mov rcx, r15
call fcn.18006ef38
lea rcx, [rsp + 0x70]
call fcn.1800bc0f0
mov r9d, dword [rdi + 0x20]
lea rcx, [rsp + 0x70]
sub rbx, rax
lea r8, [0x1803536fc]
add rcx, rax
mov rdx, rbx
call fcn.180056b08
mov word [r14], 0x105
mov ebx, 3
mov byte [r14 + 2], 0
cmp dword [r15 + 4], 2
jne 0x180082de8
mov ebx, 8
mov byte [r14 + 3], 1
mov rdx, qword [r15 + 0x20]
lea rcx, [r14 + 4]
sub rdx, r14
lea r8d, [rbx - 4]
mov al, byte [rdx + rcx]
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x180082bef
lea rdx, str.SOCKS5_connect_to_IPv4__s__locally_resolved_
jmp 0x180082e1e
sub ecx, 0xa
je 0x180082d77
sub ecx, 1
je 0x180082b69
sub ecx, 1
je 0x180082c9d
sub ecx, 1
je 0x180082e4e
sub ecx, 1
je 0x180082e92
sub ecx, 1
je 0x180082ef9
cmp ecx, 1
jne 0x180082c89
mov rbx, qword [rsp + 0x38]
lea rax, str.SOCKS5_connect_request_address
mov r9d, reloc.WS2_32.dll_listen
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.18008307c
test eax, eax
jne 0x18008302e
cmp qword [rdi + 8], 0
jne 0x180082983
mov r8d, send
mov rdx, rsi
mov rcx, rdi
call fcn.1800831ac
lea rdx, str.SOCKS5_request_granted.
mov rcx, rsi
call fcn.180068060
jmp 0x180082983
mov al, byte [rsp + 0x30]
mov word [r14], 0x105
mov ebx, 3
mov byte [r14 + 2], 0
test al, al
jne 0x180082e4e
mov rax, qword [rsp + 0x48]
mov rdx, qword [rdi + 0x18]
cmp byte [rax + 0x2d3], 0
je 0x180082d08
lea r8, [rsp + 0x58]
lea ecx, [rbx + 0x14]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x180082ce8
mov eax, 1
jmp 0x18008302e
lea rcx, [r14 + 4]
mov byte [r14 + 3], 4
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x58]
call fcn.1800e3e40
mov ebx, socket
jmp 0x180082d5b
lea r8, [rsp + 0x50]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x180082d3a
lea r8d, [rax + 3]
mov byte [r14 + 3], al
lea rdx, [rsp + 0x50]
lea rcx, [r14 + 4]
call fcn.1800e3e40
mov ebx, 8
jmp 0x180082d5b
mov r15, qword [rsp + 0x58]
lea rcx, [r14 + 5]
mov byte [r14 + 3], bl
mov r8, r15
mov byte [r14 + 4], r15b
mov rdx, qword [rdi + 0x18]
call fcn.1800e3e40
lea rbx, [r15 + 5]
mov r9d, dword [rdi + 0x20]
lea rdx, str.SOCKS5_connect_to__s:_d__remotely_resolved_
mov r8, qword [rdi + 0x18]
mov rcx, rsi
call fcn.180068060
jmp 0x180082e4e
mov r8d, dword [rdi + 0x20]
mov rcx, rsi
mov rdx, qword [rdi + 0x18]
call fcn.18006e844
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180082dc0
mov qword [rsi + 0xd78], rax
lea rdx, str.SOCKS5:_hostname__s_found
mov byte [rsi + 0xd98], 1
mov rcx, rsi
mov r8, qword [rdi + 0x18]
call fcn.180068060
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x180082b72
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.18006f234
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x180082b72
test eax, eax
je 0x180082983
jmp 0x180083029
cmp dword [r15 + 4], 0x17
jne 0x180082e2d
mov ebx, socket
mov byte [r14 + 3], 4
mov rdx, qword [r15 + 0x20]
lea rcx, [r14 + 4]
sub rdx, r14
lea r8d, [rbx - 4]
mov al, byte [rdx + rcx + 4]
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x180082e08
lea rdx, str.SOCKS5_connect_to_IPv6__s__locally_resolved_
lea r8, [rsp + 0x70]
mov rcx, rsi
call fcn.180068060
jmp 0x180082e41
lea r8, [rsp + 0x70]
mov rcx, rsi
lea rdx, str.SOCKS5_connection_to__s_not_supported
call fcn.180067f94
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.18006f284
mov eax, dword [rdi + 0x20]
mov r15, qword [rsp + 0x48]
sar eax, 8
mov byte [rbx + r14], al
mov al, byte [rdi + 0x20]
mov byte [rbx + r14 + 1], al
cmp dword [r15 + 0x5fc], 0
jne 0x180083000
lea rax, [rbx + 2]
mov qword [rdi + 0x10], r14
mov r8d, send
mov qword [rdi + 8], rax
mov rdx, rsi
mov rcx, rdi
call fcn.1800831ac
jmp 0x180082e97
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
lea rax, str.SOCKS5_connect_request
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r9d, 0x1e
mov r8, rsi
mov rdx, rdi
call fcn.180083114
test eax, eax
jne 0x18008302e
cmp qword [rdi + 8], 0
jne 0x180082983
cmp dword [r15 + 0x5fc], eax
jne 0x180083000
lea r8d, [rax + 0xf]
mov qword [rdi + 8], 0xa
mov rdx, rsi
mov qword [rdi + 0x10], r14
mov rcx, rdi
call fcn.1800831ac
jmp 0x180082f03
mov rbx, qword [rsp + 0x38]
mov r15, qword [rsp + 0x48]
lea rax, str.SOCKS5_connect_request_ack
mov r9d, reloc.WS2_32.dll_recv
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.18008307c
test eax, eax
jne 0x18008302e
cmp qword [rdi + 8], 0
jne 0x180082983
cmp byte [r14], 5
je 0x180082f48
lea rdx, str.SOCKS5_reply_has_wrong_version__version_should_be_5.
jmp 0x18008290e
movzx eax, byte [r14 + 1]
test al, al
je 0x180082f87
mov r8, qword [rdi + 0x18]
lea rdx, str.Cant_complete_SOCKS5_connection_to__s.___d_
mov r9d, eax
mov rcx, rsi
mov r14d, 0x19
mov ebx, eax
call fcn.180067f94
cmp ebx, 9
jae 0x180082f7f
lea rcx, [0x180352f70]
mov r14d, dword [rcx + rbx*4]
mov eax, r14d
jmp 0x18008302e
mov al, byte [r14 + 3]
cmp al, 3
jne 0x180082f9a
movzx eax, byte [r14 + 4]
add rax, 7
jmp 0x180082fae
cmp al, 4
jne 0x180082fa5
mov eax, socket
jmp 0x180082fae
cmp al, 1
jne 0x180082fec
mov eax, 0xa
cmp dword [r15 + 0x5fc], 0
jne 0x180082c45
cmp rax, 0xa
jbe 0x180082c78
add rax, 0xfffffffffffffff6
mov r8d, reloc.WS2_32.dll_recv
mov qword [rdi + 8], rax
mov rdx, rsi
lea rax, [r14 + 0xa]
mov rcx, rdi
mov qword [rdi + 0x10], rax
call fcn.1800831ac
jmp 0x180082c45
lea rdx, str.SOCKS5_reply_has_wrong_address_type.
mov rcx, rsi
call fcn.180067f94
jmp 0x180082cde
lea rdx, str.SOCKS5_GSS_API_protection_not_yet_implemented.
mov rcx, rsi
call fcn.180067f94
mov eax, 6
jmp 0x18008302e
mov r8, qword [rdi + 0x18]
lea rdx, str.Failed_to_resolve___s__for_SOCKS5_connect.
mov rcx, rsi
call fcn.180067f94
mov eax, 0x1b
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1800af730
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret