Function at 0x1400a5040
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x200
lea rdi, [rsp + 0x20]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x210]
mov rax, qword [0x14013be00]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
cmp qword [rsp + 0x210], 0
je 0x1400a50a1
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x210]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x1400a50a8
xor al, al
jmp 0x1400a56f5
cmp qword [rsp + 0x218], 0
je 0x1400a56f3
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x218]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x1400a56f3
mov rax, qword [rsp + 0x218]
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0xc8], 0
mov rdx, qword [rsp + 0x218]
lea rcx, [0x140130218]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400a510e
mov al, 1
jmp 0x1400a56f5
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x210]
movsx eax, byte [rcx + rax]
cmp eax, 0x5b
jne 0x1400a5206
mov edx, 0x5d
mov rcx, qword [rsp + 0x210]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
jne 0x1400a5158
xor al, al
jmp 0x1400a56f5
mov rax, qword [rsp + 0x210]
inc rax
mov qword [rsp + 0x210], rax
mov rax, qword [rsp + 0x210]
mov rcx, qword [rsp + 0xd0]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0x80
jb 0x1400a519e
xor al, al
jmp 0x1400a56f5
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x210]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
nop
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x1d0], rax
cmp qword [rsp + 0x1d0], 0x80
jae 0x1400a51d9
jmp 0x1400a51df
call fcn.1400d0768
nop
mov rax, qword [rsp + 0x1d0]
mov byte [rsp + rax + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x210], rax
mov dword [rsp + 0xc8], 2
jmp 0x1400a527a
mov rcx, qword [rsp + 0x210]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0xc0], rax
lea r8, [rsp + 0xe4]
mov rdx, qword [rsp + 0x210]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1400a5248
mov dword [rsp + 0xc8], 1
jmp 0x1400a527a
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x210]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax - 1]
cmp eax, 0x2e
jne 0x1400a527a
mov rax, qword [rsp + 0xc0]
dec rax
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax]
test eax, eax
je 0x1400a56f3
mov qword [rsp + 0x100], 0
mov byte [rsp + 0x108], 0
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax]
test eax, eax
je 0x1400a52e5
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax]
cmp eax, 0x20
je 0x1400a52d0
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax]
cmp eax, 9
jne 0x1400a52e5
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
jmp 0x1400a52a1
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax]
test eax, eax
je 0x1400a535c
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax]
cmp eax, 0x20
je 0x1400a535c
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax]
cmp eax, 9
je 0x1400a535c
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax]
cmp eax, 0x2c
je 0x1400a535c
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x100]
inc rax
mov qword [rsp + 0x100], rax
jmp 0x1400a52f5
cmp qword [rsp + 0x100], 0
je 0x1400a5682
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x1e0], eax
cmp dword [rsp + 0x1e0], 0
je 0x1400a53a4
cmp dword [rsp + 0x1e0], 1
je 0x1400a5542
cmp dword [rsp + 0x1e0], 2
je 0x1400a5542
jmp 0x1400a5672
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xf8]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax - 1]
cmp eax, 0x2e
jne 0x1400a53d6
mov rax, qword [rsp + 0x100]
dec rax
mov qword [rsp + 0x100], rax
cmp qword [rsp + 0x100], 0
je 0x1400a5417
mov rax, qword [rsp + 0xf8]
movsx eax, byte [rax]
cmp eax, 0x2e
jne 0x1400a5417
mov rax, qword [rsp + 0xf8]
inc rax
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x100]
dec rax
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rsp + 0x100], rax
jne 0x1400a5476
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x210]
mov rcx, qword [rsp + 0xf8]
call fcn.140049c40
test eax, eax
jne 0x1400a5457
mov dword [rsp + 0x1e4], 0
jmp 0x1400a5462
mov dword [rsp + 0x1e4], 1
movzx eax, byte [rsp + 0x1e4]
mov byte [rsp + 0x108], al
jmp 0x1400a553d
mov rax, qword [rsp + 0xc0]
cmp qword [rsp + 0x100], rax
jae 0x1400a553d
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xc0]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x210]
movsx eax, byte [rcx + rax - 1]
cmp eax, 0x2e
jne 0x1400a5501
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xc0]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x210]
add rcx, rax
mov rax, rcx
mov r8, qword [rsp + 0x100]
mov rdx, rax
mov rcx, qword [rsp + 0xf8]
call fcn.140049c40
test eax, eax
je 0x1400a5501
mov dword [rsp + 0x1e8], 1
jmp 0x1400a550c
mov dword [rsp + 0x1e8], 0
cmp dword [rsp + 0x1e8], 0
jne 0x1400a5523
mov dword [rsp + 0x1ec], 0
jmp 0x1400a552e
mov dword [rsp + 0x1ec], 1
movzx eax, byte [rsp + 0x1ec]
mov byte [rsp + 0x108], al
jmp 0x1400a5672
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x120], 0
cmp qword [rsp + 0x100], 0x80
jb 0x1400a5570
jmp 0x1400a5672
mov r8, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x140]
call sub.VCRUNTIME140.dll_memcpy
nop
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x1d8], rax
cmp qword [rsp + 0x1d8], 0x80
jae 0x1400a55ae
jmp 0x1400a55b4
call fcn.1400d0768
nop
mov rax, qword [rsp + 0x1d8]
mov byte [rsp + rax + 0x140], 0
lea rax, [rsp + 0x140]
mov qword [rsp + 0x110], rax
mov edx, 0x2f
mov rcx, qword [rsp + 0x110]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0x118], rax
cmp qword [rsp + 0x118], 0
je 0x1400a561e
mov rax, qword [rsp + 0x118]
inc rax
mov rcx, rax
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
mov dword [rsp + 0x120], eax
mov rax, qword [rsp + 0x118]
mov byte [rax], 0
cmp dword [rsp + 0xc8], 2
jne 0x1400a564e
mov r8d, dword [rsp + 0x120]
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x210]
call fcn.1400a5890
mov byte [rsp + 0x108], al
jmp 0x1400a5672
mov r8d, dword [rsp + 0x120]
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x210]
call fcn.1400a5730
mov byte [rsp + 0x108], al
movzx eax, byte [rsp + 0x108]
test eax, eax
je 0x1400a5682
mov al, 1
jmp 0x1400a56f5
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax]
cmp eax, 0x20
je 0x1400a56a2
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax]
cmp eax, 9
jne 0x1400a56b7
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
jmp 0x1400a5682
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax]
cmp eax, 0x2c
je 0x1400a56c9
jmp 0x1400a56f3
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax]
cmp eax, 0x2c
jne 0x1400a56ee
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
jmp 0x1400a56c9
jmp 0x1400a527a
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400d050c
mov rax, rdi
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1400d0280
add rsp, 0x200
pop rdi
ret