Function at 0x140024ca0
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3c0
mov rax, qword [0x14007c030]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov r15d, edx
mov r12, rcx
mov qword [rsp + 0x80], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x190], xmm0
mov qword [rsp + 0x1a0], rsi
mov qword [rsp + 0x1a8], rsi
mov r13d, 2
mov r8d, r13d
lea rdx, [0x140070e24]
lea rcx, [rsp + 0x190]
call fcn.14000b050
lea rdx, [rsp + 0x190]
mov rcx, r12
call fcn.14001f750
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x1e0], xmm0
movdqa xmm1, xmmword [0x140071340]
movdqu xmmword [rsp + 0x1f0], xmm1
mov byte [rsp + 0x1e0], sil
mov dword [rsp + 0x30], 0x20
cmp byte [rax], 3
jne 0x140025564
mov rdx, qword [rax + 8]
lea rcx, [rsp + 0x1e0]
call fcn.14001efb0
nop
mov edi, 0x18
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x1c0], xmm0
movups xmmword [rsp + 0x1d0], xmm0
lea rbx, [rsp + 0x1e0]
cmp qword [rsp + 0x1f8], 0x10
cmovae rbx, qword [rsp + 0x1e0]
mov qword [rsp + 0x1c0], rbx
mov dword [rsp + 0x1c8], r15d
mov qword [rsp + 0x1d0], rsi
mov qword [rsp + 0x1d8], 0x1000
mov ecx, 0x202
lea rdx, [rsp + 0x200]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140024df4
mov byte [rsp + 0x1cc], 0
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140024e8d
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
mov qword [rsp + 0x1d0], rax
mov word [rsp + 0x1b0], r13w
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x1b2], ax
lea r8, [rsp + 0x1b4]
mov rdx, rbx
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x1b0]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140024fae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [rsp + 0x1d0], rsi
mov byte [rsp + 0x1cc], 0
test ebx, ebx
je 0x140024fc0
xorps xmm0, xmm0
movups xmmword [rsp + 0x190], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x1a0], xmm1
mov r8d, 0xa
lea rdx, str.rs:connect
lea rcx, [rsp + 0x190]
call fcn.14000b050
nop
lea r8, [rsp + 0x190]
lea rdx, [rsp + 0x90]
call fcn.14002c6c0
mov rcx, qword [rax]
mov dword [rcx + 0x40], esi
mov rdx, qword [rsp + 0x1a8]
cmp rdx, 0x10
jb 0x140024f1d
inc rdx
mov rcx, qword [rsp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024f18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400255b2
call fcn.140035d80
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rsp + 0x1f8]
cmp rdx, 0x10
jb 0x140024f78
inc rdx
mov rcx, qword [rsp + 0x1e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024f73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002561b
call fcn.140035d80
movdqa xmm0, xmmword [0x140071340]
movdqu xmmword [rsp + 0x1f0], xmm0
mov byte [rsp + 0x1e0], 0
mov rcx, r12
call fcn.140009fd0
lea rcx, [r12 + 8]
movzx edx, byte [r12]
call fcn.140009b90
nop
jmp 0x140025537
mov byte [rsp + 0x1cc], 1
nop word [rax + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x190], xmm0
mov qword [rsp + 0x1a0], rsi
mov qword [rsp + 0x1a8], rsi
mov r8d, 0xa
lea rdx, str.rs:connect
lea rcx, [rsp + 0x190]
call fcn.14000b050
nop
lea r8, [rsp + 0x190]
lea rdx, [rsp + 0xa0]
call fcn.14002c6c0
mov rcx, qword [rax]
mov ebx, dword [rcx + 0x40]
mov rdx, qword [rsp + 0x1a8]
cmp rdx, 0x10
jb 0x140025054
inc rdx
mov rcx, qword [rsp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002504f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400255b8
call fcn.140035d80
test ebx, ebx
je 0x140025417
mov qword [rsp + 0x40], rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x180], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x1c0]
call fcn.140030450
nop
cmp qword [rsp + 0x188], 0
je 0x14002533d
mov rbx, qword [rsp + 0x40]
cmp rbx, 0x5f5e100
ja 0x14002533d
mov rdx, rbx
lea rcx, [rsp + 0x180]
call fcn.140007920
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140007230
nop
lea rdx, [0x14007f578]
lea rcx, [rsp + 0x48]
call fcn.14002bed0
test al, al
je 0x14002513d
lea rcx, [rsp + 0x48]
call fcn.140009fd0
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140009b90
nop
mov rcx, qword [rsp + 0x180]
mov rax, qword [rcx + 8]
mov qword [rax], rsi
mov rcx, qword [rcx]
test rcx, rcx
je 0x140025125
nop
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140035d80
mov rcx, rbx
test rbx, rbx
jne 0x140025110
mov edx, 0x20
mov rcx, qword [rsp + 0x180]
call fcn.140035d80
nop
jmp 0x140025417
mov qword [rsp + 0x38], rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov r8d, 3
lea rdx, [0x140070e34]
lea rcx, [rsp + 0x60]
call fcn.14000b050
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14001f750
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x190], xmm0
mov qword [rsp + 0x1a0], rsi
mov qword [rsp + 0x1a8], socket
mov byte [rsp + 0x190], 0
or edi, 4
mov dword [rsp + 0x30], edi
cmp byte [rax], 3
jne 0x1400255be
mov rdx, qword [rax + 8]
lea rcx, [rsp + 0x190]
call fcn.14001efb0
and edi, 0xfffffffb
or edi, 3
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.14002d6a0
mov rbx, rax
mov qword [rsp + 0xe8], rsi
lea r8, [rsp + 0xb0]
lea rcx, [rsp + 0x1b0]
call fcn.14002c2b0
nop
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x90]
call fcn.140008740
lea r9, [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, rax
call fcn.1400074a0
mov rbx, rax
mov r8, qword [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x1c0]
call fcn.140030480
mov rcx, rbx
call fcn.140035d80
mov rcx, qword [rsp + 0x58]
call fcn.140035d80
nop
lea rcx, [rsp + 0x1b0]
call fcn.140009fd0
movzx edx, byte [rsp + 0x1b0]
lea rcx, [rsp + 0x1b8]
call fcn.140009b90
nop
mov rdx, qword [rsp + 0x1a8]
cmp rdx, 0x10
jb 0x1400252c0
inc rdx
mov rcx, qword [rsp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400252bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002560f
call fcn.140035d80
mov qword [rsp + 0x1a0], rsi
mov qword [rsp + 0x1a8], socket
mov byte [rsp + 0x190], 0
lea rcx, [rsp + 0x48]
call fcn.140009fd0
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140009b90
nop
mov rcx, qword [rsp + 0x180]
mov rax, qword [rcx + 8]
mov qword [rax], rsi
mov rcx, qword [rcx]
test rcx, rcx
je 0x140025325
nop dword [rax]
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140035d80
mov rcx, rbx
test rbx, rbx
jne 0x140025310
mov edx, 0x20
mov rcx, qword [rsp + 0x180]
call fcn.140035d80
nop
jmp 0x140024fc0
mov rdi, qword [rsp + 0x180]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140025371
nop dword [rax]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14002535e
call fcn.140035d80
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rdi
jne 0x140025350
mov rdi, qword [rsp + 0x180]
mov rax, qword [rdi + 8]
mov qword [rax], rsi
mov rcx, qword [rdi]
test rcx, rcx
je 0x140025395
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140035d80
mov rcx, rbx
test rbx, rbx
jne 0x140025380
mov rax, qword [rsp + 0x180]
mov qword [rax], rax
mov rax, qword [rsp + 0x180]
mov qword [rax + 8], rax
mov qword [rsp + 0x188], rsi
mov rcx, qword [rsp + 0x180]
mov rax, qword [rcx + 8]
mov qword [rax], rsi
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400253e5
nop dword [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140035d80
mov rcx, rbx
test rbx, rbx
jne 0x1400253d0
mov edx, 0x20
mov rcx, qword [rsp + 0x180]
call fcn.140035d80
nop
jmp 0x140025417
mov rcx, qword [rsp + 0x1d0]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [rsp + 0x1d0], rsi
mov byte [rsp + 0x1cc], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov r8d, 0xa
lea rdx, str.rs:connect
lea rcx, [rsp + 0x60]
call fcn.14000b050
nop
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0xa0]
call fcn.14002c6c0
mov rcx, qword [rax]
mov dword [rcx + 0x40], esi
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1400254ba
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400254b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025615
call fcn.140035d80
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rsp + 0x1f8]
cmp rdx, 0x10
jb 0x140025506
inc rdx
mov rcx, qword [rsp + 0x1e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025501
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002561b
call fcn.140035d80
movdqa xmm0, xmmword [0x140071340]
movdqu xmmword [rsp + 0x1f0], xmm0
mov byte [rsp + 0x1e0], 0
mov rcx, r12
call fcn.140009fd0
lea rcx, [r12 + 8]
movzx edx, byte [r12]
call fcn.140009b90
nop
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.140035d60
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, rax
call fcn.14001a100
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x38]
lea rdx, str.type_must_be_string__but_is
lea rcx, [rsp + 0x60]
call fcn.14001f530
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rsp + 0xf0]
call fcn.14000bb10
lea rdx, [0x14007a490]
lea rcx, [rsp + 0xf0]
call fcn.140037c24
nop
call fcn.140047b50
int3
call fcn.140047b50
nop
mov rcx, rax
call fcn.14001a100
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x38]
lea rdx, str.type_must_be_string__but_is
lea rcx, [rsp + 0x160]
call fcn.14001f530
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rsp + 0x128]
call fcn.14000bb10
lea rdx, [0x14007a490]
lea rcx, [rsp + 0x128]
call fcn.140037c24
nop
call fcn.140047b50
nop
call fcn.140047b50
nop
call fcn.140047b50
int3