Function at 0x140009ac0
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 0x140009b3d
mov ebx, 1
jmp 0x140009b5a
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.140009230
mov r14, qword [rsp + 0x498]
cmp eax, 0xffffffff
je 0x140009e10
mov r8d, 3
mov word [rbp - 0x80], 0x105
lea rdx, [rbp - 0x80]
mov byte [rbp - 0x7e], 0
mov ecx, eax
call fcn.140009900
cmp eax, 0xffffffff
je 0x140009e10
mov r8d, 2
lea rdx, [rbp - 0x80]
mov ecx, eax
call fcn.1400099e0
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140009e10
cmp byte [rbp - 0x80], 5
jne 0x140009df6
cmp byte [rbp - 0x7f], 0
jne 0x140009df6
mov byte [rbp - 0x7d], bl
mov r8d, 4
mov word [rbp - 0x80], 0x105
mov byte [rbp - 0x7e], 0
sub ebx, 1
je 0x140009c27
sub ebx, 2
je 0x140009bfc
cmp ebx, 1
jne 0x140009c4d
movups xmm0, xmmword [rsp + 0x28]
lea r8d, [rbx + 0x13]
movups xmmword [rbp - 0x7c], xmm0
jmp 0x140009c4d
movzx eax, byte [rsi]
test al, al
je 0x140009c4d
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 0x140009c10
jmp 0x140009c4d
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.140009900
mov ebx, eax
cmp eax, 0xffffffff
je 0x140009e10
mov r9, rsi
lea r8, [0x14002d390]
mov edx, 0x100
lea rcx, [0x140033580]
call fcn.140008740
mov r9d, r15d
lea r8, [0x14002d75c]
mov edx, 8
lea rcx, [0x140033568]
call fcn.140008740
mov r8d, 4
lea rdx, [rbp - 0x80]
mov ecx, ebx
call fcn.1400099e0
movsxd rbx, eax
cmp ebx, 0xffffffff
jne 0x140009cd7
lea rcx, str.connect_timeout_r_n
call fcn.14000a030
jmp 0x140009e10
movzx edx, byte [rbp - 0x7d]
sub edx, 1
je 0x140009d35
cmp edx, 3
je 0x140009cfe
lea rdx, str.____SOCKS5:_unknown_response_n
mov ecx, 1
call fcn.14000a300
mov rcx, rbx
jmp 0x140009e0a
mov r8d, reloc.WS2_32.dll_select
lea rdx, [rbp - 0x7c]
mov ecx, ebx
call fcn.1400099e0
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 0x140009d66
mov r8d, 6
lea rdx, [rbp - 0x7c]
mov ecx, ebx
call fcn.1400099e0
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, [0x14002d75c]
mov edx, 8
lea rcx, [rsp + 0x38]
call fcn.140008740
cmp edi, 0xffffffff
je 0x140009e10
cmp byte [rbp - 0x80], 5
je 0x140009dae
lea rdx, str.____SOCKS5:_unknown_response_n
mov ecx, 1
call fcn.14000a300
jmp 0x140009dcb
movzx eax, byte [rbp - 0x7f]
test al, al
je 0x140009dd7
movzx r8d, al
lea rdx, str.____SOCKS5:_error__u_n
mov ecx, 1
call fcn.14000a300
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.14000a300
mov eax, edi
jmp 0x140009e13
lea rdx, str.____SOCKS5:_bad_connect_response_n
mov ecx, 1
call fcn.14000a300
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14000a520
add rsp, 0x4a0
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret