Function at 0x140527c40
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
lea rdi, [rsp + 0x20]
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x100]
mov rax, qword [0x140812ac0]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x108]
movsx eax, byte [rax]
cmp eax, 0x5b
je 0x140527cad
mov r8d, 0x243
lea rdx, [0x140806c50]
lea rcx, str.hostname___
call fcn.1401d4924
xor eax, eax
cmp qword [rsp + 0x110], 4
jae 0x140527cc2
mov eax, socket
jmp 0x140527f97
mov rax, qword [rsp + 0x108]
inc rax
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x110]
sub rax, 2
mov qword [rsp + 0x110], rax
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, qword [rsp + 0x108]
call fcn.1401d6963
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x110], rax
je 0x140527ebf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x108]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
cmp eax, 0x25
jne 0x140527eb5
mov dword [rsp + 0x54], 0
mov rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x20]
lea rax, [rax + rcx + 1]
mov qword [rsp + 0x58], rax
mov r8d, 2
lea rdx, [0x140806d24]
mov rcx, qword [rsp + 0x58]
call fcn.1401db9d1
test eax, eax
jne 0x140527db6
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x140527db6
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
cmp eax, 0x5d
je 0x140527db6
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax]
test eax, eax
je 0x140527e00
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax]
cmp eax, 0x5d
je 0x140527e00
cmp dword [rsp + 0x54], 0xf
jge 0x140527e00
movsxd rax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx]
mov byte [rsp + rax + 0x38], cl
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
jmp 0x140527db6
cmp dword [rsp + 0x54], 0
je 0x140527e14
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax]
cmp eax, 0x5d
je 0x140527e1e
mov eax, socket
jmp 0x140527f97
movsxd rax, dword [rsp + 0x54]
mov qword [rsp + 0xe0], rax
cmp qword [rsp + 0xe0], 0x10
jae 0x140527e38
jmp 0x140527e3e
call fcn.1401daaf9
nop
mov rax, qword [rsp + 0xe0]
mov byte [rsp + rax + 0x38], 0
lea r8, [0x140806d30]
mov edx, 0x25b
lea rcx, [rsp + 0x38]
call fcn.1401dbc8d
mov rcx, qword [rsp + 0x100]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x28], 0
jne 0x140527e86
mov eax, 7
jmp 0x140527f97
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x108]
add rcx, rax
mov rax, rcx
mov byte [rax], 0x5d
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x108]
add rcx, rax
mov rax, rcx
mov byte [rax + 1], 0
jmp 0x140527ebf
mov eax, socket
jmp 0x140527f97
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x108]
add rcx, rax
mov rax, rcx
mov byte [rax], 0
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x108]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x140527eff
mov eax, socket
jmp 0x140527f97
mov r9d, 0x2e
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x68]
mov ecx, reloc.WS2_32.dll_socket
call fcn.1401d937f
test rax, rax
je 0x140527f7c
lea rcx, [rsp + 0x98]
call fcn.1401d81eb
cmp rax, qword [rsp + 0x110]
jae 0x140527f7c
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x108]
call fcn.1401d7039
lea rcx, [rsp + 0x98]
call fcn.1401d81eb
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x108]
add rcx, rax
mov rax, rcx
mov byte [rax + 1], 0
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x108]
add rcx, rax
mov rax, rcx
mov byte [rax], 0x5d
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401dbb48
mov rax, rdi
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1401d8740
add rsp, 0xf0
pop rdi
ret