Function at 0x7ff7aa6959b0
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f8]
sub rsp, 0x2f8
mov rax, qword [0x7ff7aa74f840]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
movzx ebx, word [rcx + 0x238]
xor r12d, r12d
movzx esi, word [rcx + 0x23a]
mov r13, rdx
mov qword [rsp + 0x38], rdx
mov rdi, rcx
mov rdx, qword [rcx + 0x808]
mov r14d, r9d
mov rcx, qword [rcx + 0x810]
mov r15, rdx
test rcx, rcx
mov qword [rsp + 0x58], r8
mov rax, qword [rdi + 0x818]
cmovne r15, rcx
mov qword [rsp + 0x30], r12
test rax, rax
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x40], rax
cmovne rdx, rax
mov qword [rsp + 0x48], rdx
test r15, r15
jne 0x7ff7aa695a4e
test rdx, rdx
jne 0x7ff7aa695a4e
test bx, bx
je 0x7ff7aa695e50
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
test r15, r15
je 0x7ff7aa695d88
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r15 + rax], r12b
jne 0x7ff7aa695a83
cmp rax, 0xff
jae 0x7ff7aa695d88
xor edx, edx
mov byte [rbp - 0x20], r12b
mov r8d, 0xff
lea rcx, [rbp - 0x1f]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x40]
mov r13d, r12d
test rax, rax
jne 0x7ff7aa695b4f
mov edx, dword [rbp + 0x260]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], 0x100
mov r9, r15
mov qword [rsp + 0x20], rax
mov ecx, r14d
mov rax, qword [rsp + 0x38]
mov r8d, dword [rax + 0x7c4]
call fcn.7ff7aa563e70
mov ecx, eax
test eax, eax
je 0x7ff7aa695b4a
sub ecx, 1
je 0x7ff7aa695c73
cmp ecx, 1
jne 0x7ff7aa695b2b
lea rax, [rbp - 0x20]
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x20]
mov qword [rsp + 0x48], rax
mov r8, r15
lea rdx, [0x7ff7aa6e8620]
mov rcx, rdi
call fcn.7ff7aa68d6f0
mov r13d, 1
cmp qword [rsp + 0x50], r12
je 0x7ff7aa695ba1
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x7ff7aa695ba1
test r13d, r13d
je 0x7ff7aa695d2c
jmp 0x7ff7aa695c83
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x50], r12
je 0x7ff7aa695ba1
test rax, rax
jne 0x7ff7aa695ba1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xe0]
mov ecx, eax
mov dword [rdi + 0xc9c], eax
mov ebx, eax
call fcn.7ff7aa6a5810
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8, r15
lea rdx, [0x7ff7aa6e85e8]
mov rcx, rdi
call fcn.7ff7aa68d600
mov eax, 0x2d
jmp 0x7ff7aa695e52
mov rax, qword [rsp + 0x38]
movzx r15d, byte [rax + 0x7cf]
cmp r14d, 2
jne 0x7ff7aa695bbd
mov byte [rax + 0x7cf], 1
jmp 0x7ff7aa695bca
cmp r14d, 0x17
jne 0x7ff7aa695bca
mov byte [rax + 0x7cf], 2
mov r13, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov rdx, r13
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x50
mov rcx, rdi
call fcn.7ff7aa69bc90
cmp eax, 1
jne 0x7ff7aa695bff
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.7ff7aa67e270
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov byte [rax + 0x7cf], r15b
test rcx, rcx
je 0x7ff7aa695d3b
mov rcx, qword [rcx]
lea rdx, [rbp - 0x20]
mov r8d, 0x100
call fcn.7ff7aa69bc50
mov rax, qword [rsp + 0x30]
lea rdx, [0x7ff7aa6e8658]
mov r9d, r14d
mov r8, r13
mov rcx, qword [rax]
mov eax, dword [rcx + 4]
mov rcx, rdi
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
call fcn.7ff7aa68d6f0
mov rdx, qword [rsp + 0x30]
mov rcx, rdi
call fcn.7ff7aa69c2a0
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
cmp r14d, dword [rdx + 4]
je 0x7ff7aa695c7d
mov eax, 1
jmp 0x7ff7aa695e52
mov r13d, 1
cmp r14d, 0x17
jne 0x7ff7aa695cf6
mov edx, 0x25
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_strchr
mov r14, rax
test rax, rax
je 0x7ff7aa695ca5
mov byte [rax], r12b
inc r14
mov r15d, 0x17
lea r8, [rsp + 0x68]
mov ecx, r15d
lea rdx, [rbp - 0x20]
call qword [sym.imp.ws2_32.dll_inet_pton]
test eax, eax
jle 0x7ff7aa695cee
movzx ecx, bx
mov word [rsp + 0x60], r15w
call qword [sym.imp.ws2_32.dll_htons]
mov word [rsp + 0x62], ax
test r14, r14
je 0x7ff7aa695cee
xor edx, edx
mov r8d, 0xa
mov rcx, r14
call sub.ucrtbase.dll_strtoul
mov dword [rsp + 0x78], eax
mov r12d, 0x1c
jmp 0x7ff7aa695d2c
cmp r14d, 2
jne 0x7ff7aa695d2c
lea r8, [rsp + 0x64]
mov ecx, r14d
lea rdx, [rbp - 0x20]
call qword [sym.imp.ws2_32.dll_inet_pton]
test eax, eax
jle 0x7ff7aa695d2c
movzx ecx, bx
mov word [rsp + 0x60], r14w
call qword [sym.imp.ws2_32.dll_htons]
mov word [rsp + 0x62], ax
mov r12d, 0x10
cmp r13d, 1
jae 0x7ff7aa695dcf
mov r13, qword [rsp + 0x48]
mov byte [rdi + 0x129f], 0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xe0]
mov ecx, eax
mov dword [rdi + 0xc9c], eax
mov ebx, eax
call fcn.7ff7aa6a5810
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8, r13
lea rdx, [0x7ff7aa6e8688]
mov rcx, rdi
call fcn.7ff7aa68d600
mov eax, 0x2d
jmp 0x7ff7aa695e52
cmp r14d, 0x17
jne 0x7ff7aa695dad
mov r15d, r14d
movzx ecx, bx
mov word [rsp + 0x60], r15w
call qword [sym.imp.ws2_32.dll_htons]
mov word [rsp + 0x62], ax
mov r12d, 0x1c
jmp 0x7ff7aa695dd4
cmp r14d, 2
jne 0x7ff7aa695dd4
movzx ecx, bx
mov word [rsp + 0x60], r14w
call qword [sym.imp.ws2_32.dll_htons]
mov word [rsp + 0x62], ax
mov r12d, 0x10
jmp 0x7ff7aa695dd4
mov r13, qword [rsp + 0x38]
mov r14, qword [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov rcx, r14
mov r8d, r12d
call qword [sym.imp.ws2_32.dll_bind]
test eax, eax
jns 0x7ff7aa695e35
nop
dec esi
test esi, esi
jle 0x7ff7aa695e75
add bx, 1
je 0x7ff7aa695e75
movzx r8d, bx
lea rdx, [0x7ff7aa6e86c0]
dec r8d
mov rcx, rdi
call fcn.7ff7aa68d6f0
movzx ecx, bx
call qword [sym.imp.ws2_32.dll_htons_1]
mov r8d, r12d
lea rdx, [rsp + 0x60]
mov rcx, r14
mov word [rsp + 0x62], ax
call qword [sym.imp.ws2_32.dll_bind]
test eax, eax
js 0x7ff7aa695df0
movzx r8d, bx
lea rdx, [0x7ff7aa6e86b0]
mov rcx, rdi
call fcn.7ff7aa68d6f0
mov byte [r13 + 0x3b5], 1
xor eax, eax
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.7ff7aa6d76b0
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xe0]
mov ecx, eax
mov dword [rdi + 0xc9c], eax
mov ebx, eax
call fcn.7ff7aa6a5810
mov r9, rax
lea rdx, [0x7ff7aa6e86f0]
mov r8d, ebx
mov rcx, rdi
call fcn.7ff7aa68d600
mov eax, 0x2d
jmp 0x7ff7aa695e52