Function at 0x14013e430
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 - 0x27]
sub rsp, 0x90
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rax, qword [rcx + 0x18]
mov rsi, r8
mov rdi, qword [r8 + 0xbd8]
mov rbx, rdx
mov qword [rbp - 0x39], rcx
mov rcx, qword [rdx + 0x18]
mov r15b, byte [rax + 0xd4]
cmp r15b, 5
mov qword [rbp - 0x29], rax
sete r12b
call fcn.140155580
mov ecx, dword [rbx]
xor r14d, r14d
xor edx, edx
mov r13, rax
mov qword [rbp - 0x31], rdx
lea r8d, [r14 + 1]
cmp ecx, 9
jg 0x14013e8ef
je 0x14013e632
sub ecx, r8d
je 0x14013e523
sub ecx, r8d
je 0x14013e4ea
sub ecx, r8d
je 0x14013e5b3
sub ecx, r8d
je 0x14013e5c5
sub ecx, 2
je 0x14013e690
sub ecx, r8d
je 0x14013e75a
cmp ecx, r8d
je 0x14013e7a5
xor eax, eax
jmp 0x14013ec4f
mov r14, qword [rbp - 0x39]
lea rax, str.initial_SOCKS5_request
mov rcx, r14
mov qword [rsp + 0x20], rax
mov r9d, 0x1d
mov r8, rsi
mov rdx, rbx
call fcn.14013ed20
test eax, eax
jne 0x14013ec4f
cmp qword [rbx + 8], 0
je 0x14013e5b7
jmp 0x14013e4e3
cmp r15b, 5
je 0x14013e538
cmp r13, 0xff
movzx r12d, r12b
cmova r12d, r8d
test byte [rsi + 0x66b], r8b
jne 0x14013e545
and qword [rbx + 0x28], rdx
mov byte [rdi], 5
mov ecx, 3
mov byte [rdi + 2], dl
cmp qword [rbx + 0x28], rdx
je 0x14013e55f
mov byte [rdi + 3], 2
mov ecx, 4
mov r14, qword [rbp - 0x39]
lea eax, [rcx - 2]
mov byte [rdi + 1], al
mov r9d, 0x1d
mov eax, ecx
mov r8, rsi
mov qword [rbx + 8], rax
mov rdx, rbx
lea rax, str.initial_SOCKS5_request
mov qword [rbx + 0x10], rdi
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14013ed20
test eax, eax
jne 0x14013ec4f
cmp qword [rbx + 8], 0
jne 0x14013e4e3
cmp dword [rbx], 4
je 0x14013e5b7
mov dword [rbx], 4
jmp 0x14013e5b7
mov r14, qword [rbp - 0x39]
mov qword [rbx + 8], 2
mov qword [rbx + 0x10], rdi
jmp 0x14013e5c9
mov r14, qword [rbp - 0x39]
lea rax, str.initial_SOCKS5_response
mov r9d, reloc.WS2_32.dll_ntohs
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call fcn.14013ec80
test eax, eax
jne 0x14013ec4f
cmp qword [rbx + 8], 0
jne 0x14013e4e3
cmp byte [rdi], 5
je 0x14013e61a
lea rdx, str.Received_invalid_version_in_initial_SOCKS5_response.
mov rcx, rsi
call fcn.140132250
mov eax, 2
jmp 0x14013ec4f
mov al, byte [rdi + 1]
test al, al
jne 0x14013e67d
cmp dword [rbx], 9
mov r8d, 1
je 0x14013e632
mov dword [rbx], 9
test r12b, r12b
je 0x14013e92f
mov rdx, qword [rbx + 0x18]
lea rax, [rbp - 0x31]
mov r9b, r8b
mov qword [rsp + 0x20], rax
mov r8d, dword [rbx + 0x20]
mov rcx, rsi
call fcn.140124b90
cmp eax, 0xffffffff
je 0x14013ec4a
cmp eax, 1
jne 0x14013e852
cmp dword [rbx], 0xa
je 0x14013e4e3
mov dword [rbx], 0xa
jmp 0x14013e4e3
cmp al, 2
jne 0x14013e805
cmp dword [rbx], 6
je 0x14013e690
mov dword [rbx], 6
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14013e6b6
cmp qword [rbx + 0x30], 0
je 0x14013e6b6
call fcn.140155580
mov rcx, qword [rbx + 0x30]
mov r14, rax
call fcn.140155580
mov r15, rax
jmp 0x14013e6bc
xor r14d, r14d
xor r15d, r15d
mov byte [rdi], 1
mov byte [rdi + 1], r14b
mov rdx, qword [rbx + 0x28]
test rdx, rdx
je 0x14013e6ff
test r14, r14
je 0x14013e6ff
cmp r14, 0xff
jbe 0x14013e6f3
lea rdx, str.Excessive_user_name_length_for_proxy_auth
mov rcx, rsi
call fcn.140132250
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x14013ec4f
lea rcx, [rdi + 2]
mov r8, r14
call fcn.140145200
mov byte [r14 + rdi + 2], r15b
add r14, 3
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x14013e744
test r15, r15
je 0x14013e744
cmp r15, 0xff
jbe 0x14013e738
lea rdx, str.Excessive_password_length_for_proxy_auth
mov rcx, rsi
call fcn.140132250
mov eax, 0xa
jmp 0x14013ec4f
lea rcx, [r14 + rdi]
mov r8, r15
call fcn.140145200
add r14, r15
cmp dword [rbx], 7
je 0x14013e752
mov dword [rbx], 7
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], rdi
mov rcx, qword [rbp - 0x39]
lea rax, str.SOCKS5_sub_negotiation_request
mov r9d, 0x1c
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, rbx
call fcn.14013ed20
test eax, eax
jne 0x14013ec4f
cmp qword [rbx + 8], 0
jne 0x14013e4e3
cmp dword [rbx], 8
mov qword [rbx + 0x10], rdi
mov qword [rbx + 8], 2
je 0x14013e7a5
mov dword [rbx], 8
mov rcx, qword [rbp - 0x39]
lea rax, str.SOCKS5_sub_negotiation_response
mov r9d, reloc.WS2_32.dll_ntohl
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, rbx
call fcn.14013ec80
test eax, eax
jne 0x14013ec4f
cmp qword [rbx + 8], 0
jne 0x14013e4e3
movzx eax, byte [rdi + 1]
test al, al
je 0x14013e621
movzx r8d, byte [rdi]
lea rdx, str.User_was_rejected_by_the_SOCKS5_server___d__d_.
mov r9d, eax
mov rcx, rsi
call fcn.140132250
mov eax, 0x21
jmp 0x14013ec4f
mov rcx, rsi
cmp al, 1
jne 0x14013e822
lea rdx, str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
call fcn.140132250
mov eax, 5
jmp 0x14013ec4f
cmp al, 0xff
jne 0x14013e83c
lea rdx, str.No_authentication_method_was_acceptable.
call fcn.140132250
mov eax, reloc.WS2_32.dll_inet_ntoa
jmp 0x14013ec4f
lea rdx, str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
call fcn.140132250
mov eax, 0x20
jmp 0x14013ec4f
cmp dword [rbx], 0xb
mov rdx, qword [rbp - 0x31]
je 0x14013e861
mov dword [rbx], reloc.WS2_32.dll_inet_addr
movabs rax, 0x6e776f6e6b6e75
xorps xmm0, xmm0
mov qword [rbp - 0x21], rax
xor eax, eax
mov dword [rbp + 7], eax
mov word [rbp + 0xb], ax
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
test rdx, rdx
je 0x14013ec37
mov r15, qword [rdx]
test r15, r15
je 0x14013ec37
lea r8d, [rax + 0x2e]
mov rcx, r15
lea rdx, [rbp - 0x21]
call fcn.140124b50
mov r9d, 1
mov word [rdi], 0x105
mov byte [rdi + 2], 0
cmp dword [r15 + 4], 2
lea r14d, [r9 + 2]
jne 0x14013ea45
mov byte [rdi + 3], r9b
lea rcx, [rdi + 4]
mov rdx, qword [r15 + 0x20]
lea r8d, [r9 + 3]
sub rdx, rdi
lea r14d, [r9 + 7]
mov al, byte [rdx + rcx]
mov byte [rcx], al
add rcx, r9
sub r8, r9
jne 0x14013e8dd
jmp 0x14013ea88
sub ecx, 0xa
je 0x14013e9f0
sub ecx, r8d
je 0x14013e861
sub ecx, r8d
je 0x14013e92f
sub ecx, r8d
je 0x14013ea94
sub ecx, r8d
je 0x14013eac5
sub ecx, r8d
je 0x14013eb10
cmp ecx, r8d
je 0x14013ebd2
jmp 0x14013e4e3
mov word [rdi], 0x105
mov r15d, 1
mov byte [rdi + 2], 0
lea r14d, [r15 + 2]
test r12b, r12b
jne 0x14013ea9a
mov rcx, qword [rbp - 0x29]
mov rdx, qword [rbx + 0x18]
cmp byte [rcx + 0x2d3], r12b
je 0x14013e999
lea r8, [rbp + 0xf]
lea ecx, [r15 + 0x16]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, r15d
je 0x14013e977
mov eax, r15d
jmp 0x14013ec4f
lea rcx, [rdi + 4]
mov byte [rdi + 3], 4
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0xf]
call fcn.140145200
mov r14d, reloc.WS2_32.dll_sendto
jmp 0x14013ea9a
lea r8, [rbp - 0x29]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, r15d
jne 0x14013e9cf
mov r8d, 4
mov byte [rdi + 3], r15b
lea rdx, [rbp - 0x29]
lea rcx, [rdi + 4]
call fcn.140145200
mov r14d, 8
jmp 0x14013ea9a
mov byte [rdi + 3], r14b
lea rcx, [rdi + 5]
mov byte [rdi + 4], r13b
mov r8, r13
mov rdx, qword [rbx + 0x18]
call fcn.140145200
lea r14, [r13 + 5]
jmp 0x14013ea9a
mov r8d, dword [rbx + 0x20]
mov rcx, rsi
mov rdx, qword [rbx + 0x18]
call fcn.1401244f0
mov qword [rbp - 0x31], rax
mov rdx, rax
test rax, rax
je 0x14013ea1f
mov qword [rsi + 0xd48], rax
mov byte [rsi + 0xd68], 1
jmp 0x14013e861
lea rdx, [rbp - 0x31]
mov rcx, rsi
call fcn.140124e90
mov rdx, qword [rbp - 0x31]
test rdx, rdx
jne 0x14013e861
test eax, eax
je 0x14013e4e3
jmp 0x14013ec4a
cmp dword [r15 + 4], 0x17
jne 0x14013ea75
mov r8d, reloc.WS2_32.dll_recv
mov byte [rdi + 3], 4
mov rdx, qword [r15 + 0x20]
lea rcx, [rdi + 4]
sub rdx, rdi
lea r14d, [r8 + 4]
mov al, byte [rdx + rcx + 4]
mov byte [rcx], al
add rcx, r9
sub r8, r9
jne 0x14013ea65
jmp 0x14013ea88
lea r8, [rbp - 0x21]
mov rcx, rsi
lea rdx, str.SOCKS5_connection_to__s_not_supported
call fcn.140132250
mov rdx, qword [rbp - 0x31]
mov rcx, rsi
call fcn.140124ed0
mov r15d, 1
mov eax, dword [rbx + 0x20]
sar eax, 8
mov byte [r14 + rdi], al
add r14, r15
mov al, byte [rbx + 0x20]
mov byte [r14 + rdi], al
lea rax, [r14 + 1]
cmp dword [rbx], 0xe
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rdi
je 0x14013eac5
mov dword [rbx], reloc.WS2_32.dll_ntohl
mov rcx, qword [rbp - 0x39]
lea rax, str.SOCKS5_connect_request
mov r9d, 0x1e
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, rbx
call fcn.14013ed20
test eax, eax
jne 0x14013ec4f
cmp qword [rbx + 8], 0
jne 0x14013e4e3
cmp dword [rbx], 0xf
mov qword [rbx + 8], 0xa
mov qword [rbx + 0x10], rdi
je 0x14013eb10
mov dword [rbx], reloc.WS2_32.dll_ntohs
mov rcx, qword [rbp - 0x39]
lea rax, str.SOCKS5_connect_request_ack
mov r9d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, rbx
call fcn.14013ec80
test eax, eax
jne 0x14013ec4f
cmp qword [rbx + 8], 0
jne 0x14013e4e3
cmp byte [rdi], 5
je 0x14013eb55
lea rdx, str.SOCKS5_reply_has_wrong_version__version_should_be_5.
jmp 0x14013e608
movzx eax, byte [rdi + 1]
test al, al
je 0x14013eb93
mov r8, qword [rbx + 0x18]
lea rdx, str.Cant_complete_SOCKS5_connection_to__s.___d_
mov r9d, eax
mov rcx, rsi
mov r14d, 0x19
mov edi, eax
call fcn.140132250
cmp edi, 9
jae 0x14013eb8b
lea rcx, [0x14018d5c8]
mov r14d, dword [rcx + rdi*4]
mov eax, r14d
jmp 0x14013ec4f
mov al, byte [rdi + 3]
cmp al, 3
jne 0x14013ebac
movzx eax, byte [rdi + 4]
mov ecx, dword [rbx]
add rax, 7
cmp rax, 0xa
jbe 0x14013ec0d
jmp 0x14013ebb7
cmp al, 4
jne 0x14013ec07
mov ecx, dword [rbx]
mov eax, reloc.WS2_32.dll_shutdown
add rax, 0xfffffffffffffff6
mov qword [rbx + 8], rax
lea rax, [rdi + 0xa]
mov qword [rbx + 0x10], rax
cmp ecx, 0x10
je 0x14013ebd2
mov dword [rbx], reloc.WS2_32.dll_recv
mov rcx, qword [rbp - 0x39]
lea rax, str.SOCKS5_connect_request_address
mov r9d, reloc.WS2_32.dll_listen
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, rbx
call fcn.14013ec80
test eax, eax
jne 0x14013ec4f
cmp qword [rbx + 8], 0
jne 0x14013e4e3
cmp dword [rbx], 0x11
jmp 0x14013ec10
cmp al, 1
jne 0x14013ec21
mov ecx, dword [rbx]
cmp ecx, 0x11
je 0x14013e4e3
mov dword [rbx], reloc.WS2_32.dll_recvfrom
jmp 0x14013e4e3
lea rdx, str.SOCKS5_reply_has_wrong_address_type.
mov rcx, rsi
call fcn.140132250
mov eax, 1
jmp 0x14013ec4f
mov r8, qword [rbx + 0x18]
lea rdx, str.Failed_to_resolve___s__for_SOCKS5_connect.
mov rcx, rsi
call fcn.140132250
mov eax, 0x1b
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140140c60
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret