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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x14014c010]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rsi, r9
mov r14, rdx
mov r13, rcx
mov rcx, qword [rdx]
mov rdx, qword [rdx + 8]
cmp rcx, rdx
je 0x140006361
call fcn.140090310
mov rax, qword [r14]
mov qword [r14 + 8], rax
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 0x1400063b8
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 0x1400063c9
mov rcx, qword [rsi]
test r8, r8
jne 0x140006911
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140006911
mov r15d, dword [r13 + 0x20]
mov rdx, r13
lea rcx, [rsp + 0x40]
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 - 0x50], r12
mov eax, 2
mov word [rbp - 0x58], ax
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000642e
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0x54], eax
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x56], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140006471
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 0x14000648a
mov rcx, qword [rsi]
test r8, r8
jne 0x140006911
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140006911
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
movdqa xmm1, xmmword [0x140138340]
movdqa xmmword [rbp + 0x60], xmm1
mov byte [rbp + 0x50], al
movups xmmword [rbp + 0x70], xmm0
movdqa xmmword [rbp + 0x80], xmm1
mov byte [rbp + 0x70], al
movups xmmword [rbp + 0x90], xmm0
movdqa xmmword [rbp + 0xa0], xmm1
mov byte [rbp + 0x90], al
movdqa xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], r12
lea rcx, [rbp + 0x50]
call fcn.140017720
nop
lea rdx, [r13 + 0x50]
lea rax, [rbp + 0x50]
cmp rax, rdx
je 0x140006521
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140006518
mov rdx, qword [rdx]
lea rcx, [rbp + 0x50]
call fcn.140008cb0
lea rdx, [r13 + 0x70]
lea rax, [rbp + 0x70]
cmp rax, rdx
je 0x140006545
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14000653c
mov rdx, qword [rdx]
lea rcx, [rbp + 0x70]
call fcn.140008cb0
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.GET_VERSION_CHANGES
lea rcx, [rbp + 0x90]
call fcn.140008cb0
lea rdx, [rsp + 0x40]
lea rcx, [0x14014fa18]
call fcn.14008f280
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, qword [rbp + 0xc0]
je 0x1400065b5
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r12
mov qword [rdx + 0x18], r12
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], recv
mov byte [rax], 0
add qword [rbp + 0xb8], 0x20
jmp 0x1400065c5
mov r8, rax
lea rcx, [rbp + 0xb0]
call fcn.14000aee0
nop
lea rcx, [rsp + 0x40]
call fcn.140002da0
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
movdqa xmm1, xmmword [0x140138340]
movdqa xmmword [rbp + 0x20], xmm1
mov byte [rbp + 0x10], 0
movups xmmword [rbp + 0x30], xmm0
movdqa xmmword [rbp + 0x40], xmm1
mov byte [rbp + 0x30], 0
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp + 0x10]
call fcn.140008cb0
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp + 0x30]
call fcn.140008cb0
nop
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.GMV0_UPDATE_REQUEST
lea rcx, [rbp + 0x10]
call fcn.140008cb0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x50]
call fcn.140017780
mov rdi, rax
lea rax, [rbp + 0x30]
cmp rax, rdi
je 0x1400066a7
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x140006689
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006684
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006684
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 + 0x30], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp + 0x40], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], recv
mov byte [rdi], 0
lea rcx, [rsp + 0x40]
call fcn.140002da0
mov edi, dword [r13 + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rdx, [r13 + 0x28]
lea rcx, [rsp + 0x40]
call fcn.140008840
mov r12, rax
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x10]
call fcn.140016de0
mov r15, rax
mov qword [rbp - 0x58], rax
xor r8d, r8d
lea rdx, [0x1400c12f7]
mov rcx, rsi
call fcn.140008cb0
mov rdx, r12
lea rcx, [rbp - 0x78]
call fcn.140008840
mov r9, r15
mov r8d, edi
mov rdx, rax
call fcn.140023d80
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x140006723
mov rdx, qword [r15]
xor r9d, r9d
mov r8d, dword [r15 + 0x10]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, qword [r15 + 0x10]
je 0x140006752
mov r8d, 0x1c
lea rdx, str.sent_bytes___message.size__
mov rcx, rsi
call fcn.140008cb0
nop
mov rcx, r15
call fcn.140002da0
nop
mov rcx, r12
call fcn.140002da0
mov r8, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140006774
mov rcx, qword [rsi]
test r8, r8
jne 0x1400068e5
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400068e5
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
movdqa xmm1, xmmword [0x140138340]
movdqu xmmword [rbp - 0x48], xmm1
mov byte [rbp - 0x58], al
mov qword [rsp + 0x20], rsi
mov r9d, dword [r13 + 0x48]
lea r8, [rbp - 0x58]
mov edx, 0x186a0
lea rcx, [rsp + 0x30]
call fcn.140023b80
mov r8, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400067d5
mov rcx, qword [rsi]
test r8, r8
jne 0x1400068cd
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400068cd
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], recv
mov byte [rbp - 0x30], al
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov qword [rbp + 8], recv
mov byte [rbp - 0x10], al
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp - 0x30]
call fcn.140008cb0
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp - 0x10]
call fcn.140008cb0
nop
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x30]
call fcn.140016f20
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
cmp r8, 0xe
jne 0x140006894
lea rdx, str.GMV0_OK_ANSWER
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140006894
lea rdx, [rbp - 0x10]
mov rcx, r14
call fcn.140090020
mov bl, 1
jmp 0x1400068b9
lea rax, [rbp - 0x10]
cmp rsi, rax
je 0x1400068b7
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
mov r8, qword [rbp]
mov rcx, rsi
call fcn.140008cb0
xor bl, bl
lea rcx, [rbp - 0x10]
call fcn.140002da0
lea rcx, [rbp - 0x30]
call fcn.140002da0
jmp 0x1400068da
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
lea rcx, [rbp - 0x58]
call fcn.140002da0
jmp 0x1400068f0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
lea rcx, [rbp + 0x30]
call fcn.140002da0
lea rcx, [rbp + 0x10]
call fcn.140002da0
nop
lea rcx, [rbp + 0x50]
call fcn.140006200
movzx eax, bl
jmp 0x140006913
xor al, al
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1400b5c60
mov rbx, qword [rsp + 0x230]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret