Function at 0x140005c50
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x14014c010]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rsi, r8
mov r13, rdx
mov r15, rcx
xor r8d, r8d
lea rdx, [0x1400c12f7]
mov rcx, rsi
call fcn.140008cb0
xor r8d, r8d
lea rdx, [0x1400c12f7]
mov rcx, rsi
call fcn.140008cb0
mov edx, 1
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x140005ce0
lea r8d, [rax + 0x1f]
lea rdx, str.client_socket__INVALID_SOCKET
mov rcx, rsi
call fcn.140008cb0
mov r8, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140005cf1
mov rcx, qword [rsi]
test r8, r8
jne 0x1400061ce
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400061ce
mov r14d, dword [r15 + 0x20]
mov rdx, r15
lea rcx, [rbp - 0x68]
call fcn.140008840
mov rdi, rax
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rdx, [0x1400c12f7]
mov rcx, rsi
call fcn.140008cb0
xor r12d, r12d
mov qword [rbp - 0x70], r12
mov eax, 2
mov word [rbp - 0x78], ax
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140005d55
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0x74], eax
movzx ecx, r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x76], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140005d98
lea r8d, [rax + 0x17]
lea rdx, str.connect__SOCKET_ERROR
mov rcx, rsi
call fcn.140008cb0
nop
mov rcx, rdi
call fcn.140002da0
mov r8, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140005db1
mov rcx, qword [rsi]
test r8, r8
jne 0x1400061ce
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400061ce
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x40], xmm0
movdqa xmm1, xmmword [0x140138340]
movdqa xmmword [rbp + 0x50], xmm1
mov byte [rbp + 0x40], al
movups xmmword [rbp + 0x60], xmm0
movdqa xmmword [rbp + 0x70], xmm1
mov byte [rbp + 0x60], al
movups xmmword [rbp + 0x80], xmm0
movdqa xmmword [rbp + 0x90], xmm1
mov byte [rbp + 0x80], al
movdqa xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r12
lea rcx, [rbp + 0x40]
call fcn.140017720
nop
lea rdx, [r15 + 0x50]
lea rax, [rbp + 0x40]
cmp rax, rdx
je 0x140005e45
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140005e3c
mov rdx, qword [rdx]
lea rcx, [rbp + 0x40]
call fcn.140008cb0
lea rdx, [r15 + 0x70]
lea rax, [rbp + 0x60]
cmp rax, rdx
je 0x140005e69
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140005e60
mov rdx, qword [rdx]
lea rcx, [rbp + 0x60]
call fcn.140008cb0
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.GET_RELEASE_VERSION
lea rcx, [rbp + 0x80]
call fcn.140008cb0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
movdqa xmm1, xmmword [0x140138340]
movdqa xmmword [rbp + 0x10], xmm1
mov byte [rbp], 0
movups xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x30], xmm1
mov byte [rbp + 0x20], 0
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp]
call fcn.140008cb0
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp + 0x20]
call fcn.140008cb0
nop
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.GMV0_UPDATE_REQUEST
lea rcx, [rbp]
call fcn.140008cb0
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x40]
call fcn.140017780
mov rdi, rax
lea rax, [rbp + 0x20]
cmp rax, rdi
je 0x140005f59
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x140005f3b
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005f36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b5f14
movups xmm0, xmmword [rdi]
movaps xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp + 0x30], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], recv
mov byte [rdi], 0
lea rcx, [rbp - 0x68]
call fcn.140002da0
mov edi, dword [r15 + 0x48]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea rdx, [r15 + 0x28]
lea rcx, [rbp - 0x68]
call fcn.140008840
mov r12, rax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp]
call fcn.140016de0
mov r14, rax
mov qword [rbp - 0x78], rax
xor r8d, r8d
lea rdx, [0x1400c12f7]
mov rcx, rsi
call fcn.140008cb0
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.140008840
mov r9, r14
mov r8d, edi
mov rdx, rax
call fcn.140023d80
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x140005fd3
mov rdx, qword [r14]
xor r9d, r9d
mov r8d, dword [r14 + 0x10]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, qword [r14 + 0x10]
je 0x140006002
mov r8d, 0x1c
lea rdx, str.sent_bytes___message.size__
mov rcx, rsi
call fcn.140008cb0
nop
mov rcx, r14
call fcn.140002da0
nop
mov rcx, r12
call fcn.140002da0
mov r8, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140006024
mov rcx, qword [rsi]
test r8, r8
jne 0x1400061a2
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400061a2
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x140138340]
movdqu xmmword [rbp - 0x58], xmm1
mov byte [rbp - 0x68], al
mov qword [rsp + 0x20], rsi
mov r9d, dword [r15 + 0x48]
lea r8, [rbp - 0x68]
mov edx, 0x2710
lea rcx, [rsp + 0x30]
call fcn.140023b80
mov r8, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140006085
mov rcx, qword [rsi]
test r8, r8
jne 0x14000618a
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000618a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], recv
mov byte [rbp - 0x40], al
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], recv
mov byte [rbp - 0x20], al
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp - 0x40]
call fcn.140008cb0
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp - 0x20]
call fcn.140008cb0
nop
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x40]
call fcn.140016f20
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x30]
cmp r8, 0xe
jne 0x140006151
lea rdx, str.GMV0_OK_ANSWER
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140006151
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x48]
call fcn.140008840
mov rdx, rax
mov rcx, r13
call fcn.14008f520
mov bl, 1
jmp 0x140006176
lea rax, [rbp - 0x20]
cmp rsi, rax
je 0x140006174
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
mov rcx, rsi
call fcn.140008cb0
xor bl, bl
lea rcx, [rbp - 0x20]
call fcn.140002da0
lea rcx, [rbp - 0x40]
call fcn.140002da0
jmp 0x140006197
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
lea rcx, [rbp - 0x68]
call fcn.140002da0
jmp 0x1400061ad
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
lea rcx, [rbp + 0x20]
call fcn.140002da0
lea rcx, [rbp]
call fcn.140002da0
nop
lea rcx, [rbp + 0x40]
call fcn.140006200
movzx eax, bl
jmp 0x1400061d0
xor al, al
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400b5c60
mov rbx, qword [rsp + 0x228]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret