Function at 0x1400975c0
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r13, qword [rcx]
mov r14d, r8d
mov rdi, rcx
lea r8, [rsp + 0x20]
mov r15d, 2
mov r12, r9
mov ecx, r15d
mov rbp, rdx
mov rsi, qword [r13 + 0x1160]
mov dword [r9], 0
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x14007e82f
mov r9d, r14d
lea rdx, [rsp + 0x20]
mov r8, rbp
mov ecx, r15d
call fcn.140097220
jmp 0x14007ea77
mov qword [rsp + 0x88], rbx
lea r8, [rsp + 0x58]
mov ebx, reloc.WS2_32.dll_socket
mov rdx, rbp
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x14007e867
mov r9d, r14d
lea rdx, [rsp + 0x58]
mov r8, rbp
mov ecx, ebx
call fcn.140097220
jmp 0x14007ea6f
mov ecx, dword [rdi + 0x3f8]
sub ecx, 1
je 0x14007e886
cmp ecx, 1
je 0x14007e879
xor ebx, ebx
call fcn.140080020
test al, al
cmove ebx, r15d
jmp 0x14007e889
mov ebx, r15d
xor eax, eax
lea r8, [0x1400cb438]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov r15d, reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x38], rax
mov r9d, r14d
mov qword [rsp + 0x40], rax
mov edx, r15d
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov eax, dword [rdi + 0xbc]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x2c], ebx
call fcn.140077ef0
lea rcx, [rsp + 0x58]
call fcn.14008b600
lea edx, [r15 + 0x6c]
movups xmm0, xmmword [rax]
lea ecx, [rdx - 0x77]
movups xmmword [rsi], xmm0
call qword [case.0x14007e6a9.1]
mov qword [rdi + 0x778], rax
mov rsi, rax
test rax, rax
je 0x14007ea55
and dword [rdi + 0x780], 0xfffffffe
lea r8d, [r15 + 0x54]
xor eax, eax
mov dword [rdi + 0x760], r14d
mov dword [rdi + 0x770], eax
lea rcx, [rsi + 0x18]
mov qword [rdi + 0x768], rax
xor edx, edx
mov qword [rsi], rax
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [rsp + 0x28]
lea ecx, [r15 + 0x1c]
mov qword [rsi + 0x70], rsi
movups xmm1, xmmword [rsp + 0x38]
mov dword [rsi + 0x30], r14d
movups xmmword [rsi + 0x40], xmm0
mov dword [rsi + 0x20], 1
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x50], xmm1
movups xmmword [rsi + 0x60], xmm0
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsi + 0x18], rax
test rax, rax
je 0x14007ea02
xor edx, edx
lea r8d, [r15 - 0xb]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
xor r14d, r14d
mov rcx, rbp
mov dword [rsi + 0x34], r14d
call qword [case.0x14007e6a9.0]
mov qword [rsi + 0x28], rax
test rax, rax
je 0x14007ea05
mov rcx, qword [rdi + 0x758]
call qword [fcn.1400bd8ac]
mov rcx, rbp
call qword [case.0x14007e6a9.0]
mov qword [rdi + 0x758], rax
test rax, rax
je 0x14007e9ea
lea rdx, [rsi + 0x18]
mov dword [rsi + 0x20], r14d
lea rcx, [0x14007ee00]
call fcn.1400975d0
mov qword [rsi], rax
test rax, rax
jne 0x14007e9f8
mov dword [rsi + 0x20], 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r15d, dword [rax]
lea rcx, [rdi + 0x758]
call fcn.14007ed10
jmp 0x14007ea55
mov dword [r12], 1
jmp 0x14007ea6d
xor r14d, r14d
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14007ea1e
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsi + 0x18]
call qword [fcn.1400bd8ac]
mov rcx, qword [rsi + 0x28]
call qword [fcn.1400bd8ac]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14007ea36
call fcn.140096ff0
xor edx, edx
lea rcx, [rsi + 0x18]
lea r8d, [rdx + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rcx, rsi
mov qword [rdi + 0x778], r14
call qword [fcn.1400bd8ac]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, r13
mov dword [rax], r15d
call fcn.140076dd0
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005f850
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
jmp 0x14007e7c0