Function at 0x18007e774
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 [0x180364978]
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.1800ade70
mov r12b, byte [rbx + 0xd4]
mov rcx, qword [rdi + 0x18]
cmp r12b, 5
sete byte [rsp + 0x30]
call fcn.1800bb450
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 0x18007ed45
je 0x18007ea75
sub ecx, 1
je 0x18007e8fd
sub ecx, 1
je 0x18007e8c4
sub ecx, 1
je 0x18007e9f6
sub ecx, 1
je 0x18007ea02
sub ecx, 2
je 0x18007eadf
sub ecx, 1
je 0x18007ebb4
cmp ecx, 1
jne 0x18007edc5
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.18007f1b8
test eax, eax
jne 0x18007f16a
cmp qword [rdi + 8], 0
jne 0x18007eabf
movzx eax, byte [r14 + 1]
test al, al
je 0x18007ea64
movzx r8d, byte [r14]
lea rdx, str.User_was_rejected_by_the_SOCKS5_server___d__d_.
mov r9d, eax
mov rcx, rsi
call fcn.1800640d0
mov eax, 0x21
jmp 0x18007f16a
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.18007f250
test eax, eax
jne 0x18007f16a
cmp qword [rdi + 8], rbx
jne 0x18007eabf
jmp 0x18007e9f6
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x2c8], dl
je 0x18007e926
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.18006419c
mov r8, qword [rsp + 0x58]
cmp r12b, 5
je 0x18007e949
cmp r8, 0xff
jbe 0x18007e949
lea rdx, str.SOCKS5:_server_resolving_disabled_for_hostnames_of_length___255__actual_len_zu_
mov rcx, rsi
call fcn.18006419c
mov byte [rsp + 0x30], 1
mov r8d, r15d
test r15d, 0xfffffffa
je 0x18007e964
lea rdx, str.warning:_unsupported_value_passed_to_CURLOPT_SOCKS5_AUTH:__u
mov rcx, rsi
call fcn.18006419c
test r15b, 1
jne 0x18007e96e
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 0x18007e993
mov byte [r14 + 3], 1
mov ecx, 4
cmp qword [rdi + 0x28], rbx
je 0x18007e9a2
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.18007f250
test eax, eax
jne 0x18007f16a
cmp qword [rdi + 8], rbx
jne 0x18007eabf
lea r8d, [rax + 4]
mov rdx, rsi
mov rcx, rdi
call fcn.18007f2e8
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.18007f1b8
test eax, eax
jne 0x18007f16a
cmp qword [rdi + 8], 0
jne 0x18007eabf
lea r15d, [rax + 5]
cmp byte [r14], r15b
je 0x18007ea5c
lea rdx, str.Received_invalid_version_in_initial_SOCKS5_response.
mov rcx, rsi
call fcn.1800640d0
mov eax, 2
jmp 0x18007f16a
mov al, byte [r14 + 1]
test al, al
jne 0x18007eac6
mov r8d, 9
mov rdx, rsi
mov rcx, rdi
call fcn.18007f2e8
mov al, byte [rsp + 0x30]
test al, al
je 0x18007eddd
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.18006b0b4
cmp eax, 0xffffffff
je 0x18007f165
mov rdx, rsi
mov rcx, rdi
cmp eax, 1
jne 0x18007ec95
lea r8d, [rax + 9]
call fcn.18007f2e8
xor eax, eax
jmp 0x18007f16a
cmp al, 2
jne 0x18007ec0c
mov r8d, 6
mov rdx, rsi
mov rcx, rdi
call fcn.18007f2e8
mov rcx, qword [rdi + 0x28]
lea r12, [rdi + 0x30]
test rcx, rcx
je 0x18007eb09
cmp qword [r12], 0
je 0x18007eb09
call fcn.1800bb450
mov rcx, qword [r12]
mov rbx, rax
call fcn.1800bb450
mov r15, rax
jmp 0x18007eb0e
xor ebx, ebx
xor r15d, r15d
mov byte [r14], 1
mov byte [r14 + 1], bl
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x18007eb52
test rbx, rbx
je 0x18007eb52
cmp rbx, 0xff
jbe 0x18007eb46
lea rdx, str.Excessive_user_name_length_for_proxy_auth
mov rcx, rsi
call fcn.1800640d0
mov eax, listen
jmp 0x18007f16a
lea rcx, [r14 + 2]
mov r8, rbx
call fcn.1800ad7c0
mov byte [rbx + r14 + 2], r15b
add rbx, 3
mov rdx, qword [r12]
test rdx, rdx
je 0x18007eb97
test r15, r15
je 0x18007eb97
cmp r15, 0xff
jbe 0x18007eb8b
lea rdx, str.Excessive_password_length_for_proxy_auth
mov rcx, rsi
call fcn.1800640d0
mov eax, 0xa
jmp 0x18007f16a
lea rcx, [rbx + r14]
mov r8, r15
call fcn.1800ad7c0
mov r8d, 7
mov rdx, rsi
mov rcx, rdi
call fcn.18007f2e8
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.18007f250
test eax, eax
jne 0x18007f16a
cmp qword [rdi + 8], 0
jne 0x18007eabf
lea r8d, [rax + 8]
mov qword [rdi + 0x10], r14
mov rdx, rsi
mov qword [rdi + 8], 2
mov rcx, rdi
call fcn.18007f2e8
jmp 0x18007e864
cmp al, 1
jne 0x18007ec5f
test r13b, r13b
je 0x18007ec48
mov r8d, r15d
mov rdx, rsi
mov rcx, rdi
call fcn.18007f2e8
mov rcx, rbx
call fcn.180085ee4
test eax, eax
je 0x18007ec7c
lea rdx, str.Unable_to_negotiate_SOCKS5_GSS_API_context.
mov rcx, rsi
call fcn.1800640d0
mov eax, 4
jmp 0x18007f16a
lea rdx, str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
mov rcx, rsi
call fcn.1800640d0
mov eax, r15d
jmp 0x18007f16a
cmp al, 0xff
jne 0x18007ec7c
lea rdx, str.No_authentication_method_was_acceptable.
mov rcx, rsi
call fcn.1800640d0
mov eax, recv
jmp 0x18007f16a
lea rdx, str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
mov rcx, rsi
call fcn.1800640d0
mov eax, 0x20
jmp 0x18007f16a
mov r8d, recv
call fcn.18007f2e8
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x18007f152
mov r15, qword [rdx]
test r15, r15
je 0x18007f152
mov ebx, 0x100
lea rdx, [rsp + 0x70]
mov r8d, ebx
mov rcx, r15
call fcn.18006b074
lea rcx, [rsp + 0x70]
call fcn.1800bb450
mov r9d, dword [rdi + 0x20]
lea rcx, [rsp + 0x70]
sub rbx, rax
lea r8, [0x18034138c]
add rcx, rax
mov rdx, rbx
call fcn.180052c44
mov word [r14], 0x105
mov ebx, 3
mov byte [r14 + 2], 0
cmp dword [r15 + 4], 2
jne 0x18007ef24
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 0x18007ed2b
lea rdx, str.SOCKS5_connect_to_IPv4__s__locally_resolved_
jmp 0x18007ef5a
sub ecx, 0xa
je 0x18007eeb3
sub ecx, 1
je 0x18007eca5
sub ecx, 1
je 0x18007edd9
sub ecx, 1
je 0x18007ef8a
sub ecx, 1
je 0x18007efce
sub ecx, 1
je 0x18007f035
cmp ecx, 1
jne 0x18007edc5
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.18007f1b8
test eax, eax
jne 0x18007f16a
cmp qword [rdi + 8], 0
jne 0x18007eabf
mov r8d, send
mov rdx, rsi
mov rcx, rdi
call fcn.18007f2e8
lea rdx, str.SOCKS5_request_granted.
mov rcx, rsi
call fcn.18006419c
jmp 0x18007eabf
mov al, byte [rsp + 0x30]
mov word [r14], 0x105
mov ebx, 3
mov byte [r14 + 2], 0
test al, al
jne 0x18007ef8a
mov rax, qword [rsp + 0x48]
mov rdx, qword [rdi + 0x18]
cmp byte [rax + 0x2d3], 0
je 0x18007ee44
lea r8, [rsp + 0x58]
lea ecx, [rbx + 0x14]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x18007ee24
mov eax, 1
jmp 0x18007f16a
lea rcx, [r14 + 4]
mov byte [r14 + 3], 4
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x58]
call fcn.1800ad7c0
mov ebx, socket
jmp 0x18007ee97
lea r8, [rsp + 0x50]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x18007ee76
lea r8d, [rax + 3]
mov byte [r14 + 3], al
lea rdx, [rsp + 0x50]
lea rcx, [r14 + 4]
call fcn.1800ad7c0
mov ebx, 8
jmp 0x18007ee97
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.1800ad7c0
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.18006419c
jmp 0x18007ef8a
mov r8d, dword [rdi + 0x20]
mov rcx, rsi
mov rdx, qword [rdi + 0x18]
call fcn.18006a980
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18007eefc
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.18006419c
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x18007ecae
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.18006b370
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x18007ecae
test eax, eax
je 0x18007eabf
jmp 0x18007f165
cmp dword [r15 + 4], 0x17
jne 0x18007ef69
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 0x18007ef44
lea rdx, str.SOCKS5_connect_to_IPv6__s__locally_resolved_
lea r8, [rsp + 0x70]
mov rcx, rsi
call fcn.18006419c
jmp 0x18007ef7d
lea r8, [rsp + 0x70]
mov rcx, rsi
lea rdx, str.SOCKS5_connection_to__s_not_supported
call fcn.1800640d0
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.18006b3c0
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 0x18007f13c
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.18007f2e8
jmp 0x18007efd3
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.18007f250
test eax, eax
jne 0x18007f16a
cmp qword [rdi + 8], 0
jne 0x18007eabf
cmp dword [r15 + 0x5fc], eax
jne 0x18007f13c
lea r8d, [rax + 0xf]
mov qword [rdi + 8], 0xa
mov rdx, rsi
mov qword [rdi + 0x10], r14
mov rcx, rdi
call fcn.18007f2e8
jmp 0x18007f03f
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.18007f1b8
test eax, eax
jne 0x18007f16a
cmp qword [rdi + 8], 0
jne 0x18007eabf
cmp byte [r14], 5
je 0x18007f084
lea rdx, str.SOCKS5_reply_has_wrong_version__version_should_be_5.
jmp 0x18007ea4a
movzx eax, byte [r14 + 1]
test al, al
je 0x18007f0c3
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.1800640d0
cmp ebx, 9
jae 0x18007f0bb
lea rcx, [0x180340c00]
mov r14d, dword [rcx + rbx*4]
mov eax, r14d
jmp 0x18007f16a
mov al, byte [r14 + 3]
cmp al, 3
jne 0x18007f0d6
movzx eax, byte [r14 + 4]
add rax, 7
jmp 0x18007f0ea
cmp al, 4
jne 0x18007f0e1
mov eax, socket
jmp 0x18007f0ea
cmp al, 1
jne 0x18007f128
mov eax, 0xa
cmp dword [r15 + 0x5fc], 0
jne 0x18007ed81
cmp rax, 0xa
jbe 0x18007edb4
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.18007f2e8
jmp 0x18007ed81
lea rdx, str.SOCKS5_reply_has_wrong_address_type.
mov rcx, rsi
call fcn.1800640d0
jmp 0x18007ee1a
lea rdx, str.SOCKS5_GSS_API_protection_not_yet_implemented.
mov rcx, rsi
call fcn.1800640d0
mov eax, 6
jmp 0x18007f16a
mov r8, qword [rdi + 0x18]
lea rdx, str.Failed_to_resolve___s__for_SOCKS5_connect.
mov rcx, rsi
call fcn.1800640d0
mov eax, 0x1b
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1800ac760
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret