Function at 0x14012fd30
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1401e7890]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor eax, eax
test eax, eax
jne 0x14012fd58
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xb8]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x14012fd86
mov eax, reloc.WLDAP32.dll_Ordinal_14
jmp 0x1401300ab
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xb8]
movsx eax, byte [rcx + rax]
cmp eax, 0x5b
jne 0x140130079
lea rax, str.0123456789abcdefABCDEF:.
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0xc0], 4
jae 0x14012fdc5
mov eax, socket
jmp 0x1401300ab
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xc0]
sub rax, 2
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strspn]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0xc0], rax
je 0x14012ffad
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
cmp eax, 0x25
jne 0x14012ffa3
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x30]
lea rax, [rax + rcx + 1]
mov qword [rsp + 0x28], rax
mov r8d, 2
lea rdx, [0x1401e3844]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14012feb9
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x14012feb9
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movsx eax, byte [rcx + rax]
cmp eax, 0x5d
je 0x14012feb9
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
test eax, eax
je 0x14012ff03
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x5d
je 0x14012ff03
cmp dword [rsp + 0x20], 0xf
jge 0x14012ff03
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx]
mov byte [rsp + rax + 0x48], cl
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x14012feb9
cmp dword [rsp + 0x20], 0
je 0x14012ff17
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x5d
je 0x14012ff21
mov eax, socket
jmp 0x1401300ab
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0x10
jae 0x14012ff35
jmp 0x14012ff3a
call fcn.1401577ac
mov rax, qword [rsp + 0x38]
mov byte [rsp + rax + 0x48], 0
lea rcx, [rsp + 0x48]
call qword [0x1401d9020]
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x28], 0
jne 0x14012ff74
mov eax, 7
jmp 0x1401300ab
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov byte [rax], 0x5d
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov byte [rax + 1], 0
jmp 0x14012ffad
mov eax, socket
jmp 0x1401300ab
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov byte [rax], 0
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0xb8]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x14012ffed
mov eax, socket
jmp 0x1401300ab
mov r9d, reloc.WLDAP32.dll_Ordinal_46
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x58]
mov ecx, reloc.WS2_32.dll_socket
call fcn.140155f72
test rax, rax
je 0x14013005e
lea rcx, [rsp + 0x68]
call fcn.140158210
cmp rax, qword [rsp + 0xc0]
jae 0x14013005e
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xb8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
lea rcx, [rsp + 0x68]
call fcn.140158210
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov byte [rax + 1], 0
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov byte [rax], 0x5d
jmp 0x1401300a9
lea rdx, str.__r_n_t_:_______________
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0xc0], rax
je 0x1401300a9
mov eax, reloc.WS2_32.dll_setsockopt
jmp 0x1401300ab
xor eax, eax
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140156eb0
add rsp, 0xa8
ret