Function at 0x180059900
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rbx, rcx
xor esi, esi
mov ecx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x21], rcx
mov byte [rbp - 0x39], sil
mov qword [rbp - 0x29], select
xor eax, eax
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x31], eax
mov word [rbp - 0x2d], ax
lea rdx, [rbp - 0x39]
mov byte [rbp + 0x6f], 0xf7
movzx eax, byte [rbp + 0x6f]
lea r8, [0x1800fcec0]
movzx eax, byte [rax + r8]
mov byte [rdx + 0xc], al
mov byte [rbp + 0x6f], WSAGetLastError
movzx eax, byte [rbp + 0x6f]
movzx eax, byte [rax + r8]
mov byte [rdx + 0xb], al
mov byte [rbp + 0x6f], 0x62
movzx eax, byte [rbp + 0x6f]
movzx eax, byte [rax + r8]
mov byte [rdx + 0xa], al
mov byte [rbp + 0x6f], 7
movzx eax, byte [rbp + 0x6f]
movzx eax, byte [rax + r8]
mov byte [rdx + 9], al
mov byte [rbp + 0x6f], 0x48
movzx eax, byte [rbp + 0x6f]
movzx eax, byte [rax + r8]
mov byte [rdx + 8], al
mov byte [rbp + 0x6f], WSAGetLastError
movzx eax, byte [rbp + 0x6f]
movzx eax, byte [rax + r8]
mov byte [rdx + 7], al
mov byte [rbp + 0x6f], 7
movzx eax, byte [rbp + 0x6f]
movzx eax, byte [rax + r8]
mov byte [rdx + 6], al
mov byte [rbp + 0x6f], 0xf7
movzx eax, byte [rbp + 0x6f]
movzx eax, byte [rax + r8]
mov byte [rdx + 5], al
mov byte [rbp + 0x6f], inet_ntoa
movzx eax, byte [rbp + 0x6f]
movzx eax, byte [rax + r8]
mov byte [rdx + 4], al
mov byte [rbp + 0x6f], 7
movzx eax, byte [rbp + 0x6f]
movzx eax, byte [rax + r8]
mov byte [rdx + 3], al
mov byte [rbp + 0x6f], 0x46
movzx eax, byte [rbp + 0x6f]
movzx eax, byte [rax + r8]
mov byte [rdx + 2], al
mov byte [rbp + 0x6f], WSAGetLastError
movzx eax, byte [rbp + 0x6f]
movzx eax, byte [rax + r8]
mov byte [rdx + 1], al
mov byte [rbp + 0x6f], 0x62
movzx eax, byte [rbp + 0x6f]
movzx eax, byte [rax + r8]
mov byte [rdx], al
mov ecx, dword [rbx + 4]
test ecx, ecx
jle 0x180059a2c
call fcn.180013ac0
mov dword [rbx + 4], esi
call fcn.180013a50
mov edi, eax
mov dword [rbx + 4], eax
mov dword [rbp + 0x6f], 0x2710
lea r9, [rbp + 0x6f]
mov r8d, reloc.WS2_32.dll_ntohl
mov ecx, eax
call fcn.180013ae0
mov dword [rbp + 0x77], 0x100000
lea r9, [rbp + 0x77]
mov r8d, 5
mov ecx, edi
call fcn.180013ae0
mov dword [rbp + 0x7f], 0x400
lea r9, [rbp + 0x7f]
xor r8d, r8d
mov ecx, edi
call fcn.180013ae0
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov edi, 2
mov word [rbp - 0x49], di
mov ecx, 0x698a
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x47], ax
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rdx, qword [rbp - 0x39]
lea r8, [rbp - 0x45]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
lea rdx, [rbp - 0x49]
mov ecx, dword [rbx + 4]
call fcn.180013a90
cmp eax, 0xffffffff
jne 0x180059afb
call fcn.180013bd0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.WS2_32.dll_htonl]
mov ecx, dword [rbx + 4]
call fcn.180013ac0
call fcn.180013a50
mov dword [rbx + 4], eax
mov ecx, eax
call fcn.18005a090
lea rdx, [rbp - 0x49]
mov ecx, dword [rbx + 4]
call fcn.180013a90
cmp eax, 0xffffffff
je 0x180059ac5
lea rcx, [rbp + 7]
call fcn.18005b740
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rsi
mov qword [rbp - 1], rsi
mov r14, qword [rbp + 0x17]
lea rdx, [r14 + 1]
lea rcx, [rbp - 0x19]
call fcn.18002b230
lea rdx, [rbp + 7]
mov r13, qword [rbp + 0x1f]
cmp r13, 0x10
setae r12b
mov r15, qword [rbp + 7]
cmovae rdx, r15
mov rdi, qword [rbp - 0x19]
mov rsi, qword [rbp - 1]
lea rcx, [rdi + rsi]
mov r8, r14
call fcn.18008c6d0
lea rax, [r14 + rdi]
mov byte [rax + rsi], 0
lea rax, [r14 + 1]
add rsi, rax
mov qword [rbp - 1], rsi
mov r9b, 1
lea r8, [rbp - 0x19]
mov dl, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.180059d90
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x180059bb2
mov rdx, qword [rbp - 9]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180059bac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180059c42
call fcn.18008a564
nop
test r12b, r12b
je 0x180059be4
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x180059bdc
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180059c48
mov rcx, r15
call fcn.18008a564
call fcn.180059c50
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x180059c21
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180059c1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180059c3c
call fcn.18008a564
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180090f98
nop
call fcn.180090f98
nop
call fcn.180090f98
int3