Function at 0x1400078e0
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor eax, eax
mov qword [rsp + 0x498], r14
mov rsi, r8
mov byte [rsp + 0x20], 0
mov r14d, edx
mov word [rsp + 0x21], ax
mov rdi, rcx
mov byte [rsp + 0x23], al
lea ecx, [rax + 2]
mov byte [rsp + 0x28], al
lea r8, [rsp + 0x20]
mov qword [rsp + 0x29], rax
mov rdx, rsi
mov dword [rsp + 0x31], eax
mov r15d, r9d
mov word [rsp + 0x35], ax
mov byte [rsp + 0x37], al
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14000795d
mov ebx, 1
jmp 0x14000797a
lea r8, [rsp + 0x28]
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
xor ebx, ebx
test eax, eax
setne bl
add ebx, 3
mov edx, r14d
mov rcx, rdi
call fcn.140006e40
mov r14, qword [rsp + 0x498]
cmp eax, 0xffffffff
je 0x140007c30
mov r8d, 3
mov word [rbp - 0x80], 0x105
lea rdx, [rbp - 0x80]
mov byte [rbp - 0x7e], 0
mov ecx, eax
call fcn.140007600
cmp eax, 0xffffffff
je 0x140007c30
mov r8d, 2
lea rdx, [rbp - 0x80]
mov ecx, eax
call fcn.140007770
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140007c30
cmp byte [rbp - 0x80], 5
jne 0x140007c16
cmp byte [rbp - 0x7f], 0
jne 0x140007c16
mov byte [rbp - 0x7d], bl
mov r8d, 4
mov word [rbp - 0x80], 0x105
mov byte [rbp - 0x7e], 0
sub ebx, 1
je 0x140007a47
sub ebx, 2
je 0x140007a1c
cmp ebx, 1
jne 0x140007a6d
movups xmm0, xmmword [rsp + 0x28]
lea r8d, [rbx + 0x13]
movups xmmword [rbp - 0x7c], xmm0
jmp 0x140007a6d
movzx eax, byte [rsi]
test al, al
je 0x140007a6d
lea rdx, [rbp - 0x7c]
mov rcx, rsi
sub rcx, rdx
nop dword [rax]
mov byte [rbp + r8 - 0x80], al
inc r8
lea rax, [rcx + r8]
movzx eax, byte [rbp + rax - 0x80]
test al, al
jne 0x140007a30
jmp 0x140007a6d
movzx eax, byte [rsp + 0x20]
mov r8d, 8
mov byte [rbp - 0x7c], al
movzx eax, byte [rsp + 0x21]
mov byte [rbp - 0x7b], al
movzx eax, byte [rsp + 0x22]
mov byte [rbp - 0x7a], al
movzx eax, byte [rsp + 0x23]
mov byte [rbp - 0x79], al
mov eax, r15d
lea rdx, [rbp - 0x80]
shr eax, 8
mov ecx, edi
mov byte [rbp + r8 - 0x80], al
mov byte [rbp + r8 - 0x7f], r15b
add r8, 2
call fcn.140007600
mov ebx, eax
cmp eax, 0xffffffff
je 0x140007c30
mov r9, rsi
lea r8, [0x140024c20]
mov edx, 0x100
lea rcx, [0x14002b600]
call fcn.140006280
mov r9d, r15d
lea r8, [0x14002503c]
mov edx, 8
lea rcx, [0x14002b5e8]
call fcn.140006280
mov r8d, 4
lea rdx, [rbp - 0x80]
mov ecx, ebx
call fcn.140007770
movsxd rbx, eax
cmp ebx, 0xffffffff
jne 0x140007af7
lea rcx, str.UNKNOWN___connect_timeout_r_n
call fcn.140007ea0
jmp 0x140007c30
movzx edx, byte [rbp - 0x7d]
sub edx, 1
je 0x140007b55
cmp edx, 3
je 0x140007b1e
lea rdx, str.____SOCKS5:_unknown_response_n
mov ecx, 1
call fcn.140008230
mov rcx, rbx
jmp 0x140007c2a
mov r8d, reloc.WS2_32.dll_select
lea rdx, [rbp - 0x7c]
mov ecx, ebx
call fcn.140007770
movups xmm0, xmmword [rbp - 0x7c]
movzx ebx, byte [rbp - 0x6c]
lea rdx, [rsp + 0x28]
movzx r10d, byte [rbp - 0x6b]
mov edi, eax
shl ebx, 8
mov ecx, reloc.WS2_32.dll_socket
movups xmmword [rsp + 0x28], xmm0
or ebx, r10d
jmp 0x140007b86
mov r8d, 6
lea rdx, [rbp - 0x7c]
mov ecx, ebx
call fcn.140007770
movzx ebx, byte [rbp - 0x78]
lea rdx, [rsp + 0x20]
mov edi, eax
shl ebx, 8
mov eax, dword [rbp - 0x7c]
mov ecx, 2
mov dword [rsp + 0x20], eax
movzx eax, byte [rbp - 0x77]
or ebx, eax
mov r9d, 0x40
lea r8, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_inet_ntop]
mov r9d, ebx
lea r8, [0x14002503c]
mov edx, 8
lea rcx, [rsp + 0x38]
call fcn.140006280
cmp edi, 0xffffffff
je 0x140007c30
cmp byte [rbp - 0x80], 5
je 0x140007bce
lea rdx, str.____SOCKS5:_unknown_response_n
mov ecx, 1
call fcn.140008230
jmp 0x140007beb
movzx eax, byte [rbp - 0x7f]
test al, al
je 0x140007bf7
movzx r8d, al
lea rdx, str.____SOCKS5:_error__u_n
mov ecx, 1
call fcn.140008230
movsxd rcx, edi
call qword [sym.imp.WS2_32.dll_closesocket]
or edi, 0xffffffff
lea r9, [rsp + 0x38]
mov ecx, 1
lea r8, [rsp + 0x40]
lea rdx, str.___SOCKS5:_connecting_through___s_:_s_n
call fcn.140008230
mov eax, edi
jmp 0x140007c33
lea rdx, str.____SOCKS5:_bad_connect_response_n
mov ecx, 1
call fcn.140008230
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400083c0
add rsp, 0x4a0
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret