Function at 0x140007050
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140154010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rsi, r9
mov r14, rdx
mov r13, rcx
mov rcx, qword [rdx]
mov rdx, qword [rdx + 8]
cmp rcx, rdx
je 0x1400070a1
call fcn.14009e620
mov rax, qword [r14]
mov qword [r14 + 8], rax
xor r8d, r8d
lea rdx, [0x1400d32d7]
mov rcx, rsi
call fcn.140009fd0
xor r8d, r8d
lea rdx, [0x1400d32d7]
mov rcx, rsi
call fcn.140009fd0
mov edx, 1
lea r8d, [rdx + 5]
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x1400070ff
lea r8d, [r12 + 0x1c]
lea rdx, str.client_socket__INVALID_SOCKET
mov rcx, rsi
call fcn.140009fd0
mov r8, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140007110
mov rcx, qword [rsi]
test r8, r8
jne 0x140007774
lea rdx, [0x1400d32d7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140007774
mov r15d, dword [r13 + 0x20]
mov rdx, r13
lea rcx, [rsp + 0x40]
call fcn.140009b00
mov rdi, rax
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rdx, [0x1400d32d7]
mov rcx, rsi
call fcn.140009fd0
mov qword [rbp - 0x78], 0
mov word [rbp - 0x80], r12w
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140007172
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0x7c], eax
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x7e], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400071b5
lea r8d, [rax + 0x17]
lea rdx, str.connect__SOCKET_ERROR
mov rcx, rsi
call fcn.140009fd0
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400071ef
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400071ea
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007318
mov rcx, r8
call fcn.1400c76e4
xor r15d, r15d
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], recv
mov byte [rdi], r15b
mov r8, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140007212
mov rcx, qword [rsi]
test r8, r8
jne 0x140007774
lea rdx, [0x1400d32d7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140007774
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], rax
lea rcx, [rbp + 0x20]
call fcn.14001ab10
nop
lea rdx, [r13 + 0x50]
lea rax, [rbp + 0x20]
cmp rax, rdx
je 0x140007288
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14000727f
mov rdx, qword [rdx]
lea rcx, [rbp + 0x20]
call fcn.140009fd0
lea rdx, [r13 + 0x70]
lea rax, [rbp + 0x40]
cmp rax, rdx
je 0x1400072ac
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400072a3
mov rdx, qword [rdx]
lea rcx, [rbp + 0x40]
call fcn.140009fd0
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.GET_VERSION_CHANGES
lea rcx, [rbp + 0x60]
call fcn.140009fd0
lea rdx, [rbp - 0x80]
lea rcx, [0x1401575a8]
call fcn.14009cf70
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, qword [rbp + 0x90]
je 0x14000731f
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r15
mov qword [rdx + 0x18], r15
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], recv
mov byte [rax], 0
add qword [rbp + 0x88], 0x20
jmp 0x14000732f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r8, rax
lea rcx, [rbp + 0x80]
call fcn.14000c2e0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14000736d
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007368
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007368
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c76e4
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x140140e20]
movdqa xmmword [rbp - 0x10], xmm1
mov byte [rbp - 0x20], 0
movups xmmword [rbp], xmm0
movdqa xmmword [rbp + 0x10], xmm1
mov byte [rbp], 0
xor r8d, r8d
lea rdx, [0x1400d32d7]
lea rcx, [rbp - 0x20]
call fcn.140009fd0
xor r8d, r8d
lea rdx, [0x1400d32d7]
lea rcx, [rbp]
call fcn.140009fd0
nop
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.GMV0_UPDATE_REQUEST
lea rcx, [rbp - 0x20]
call fcn.140009fd0
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x20]
call fcn.14001abe0
mov rbx, rax
lea rax, [rbp]
cmp rax, rbx
je 0x14000743d
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x14000741f
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000741a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000746f
call fcn.1400c76e4
movups xmm0, xmmword [rbx]
movaps xmmword [rbp], xmm0
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rbp + 0x10], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14000747b
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007476
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007476
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c76e4
mov edi, dword [r13 + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rdx, [r13 + 0x28]
lea rcx, [rsp + 0x40]
call fcn.140009b00
mov rbx, rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.140019270
nop
mov qword [rsp + 0x20], rsi
mov r9d, edi
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14002ac40
mov r8, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400074d2
mov rcx, qword [rsi]
test r8, r8
jne 0x1400076e3
lea rdx, [0x1400d32d7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400076e3
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x140140e20]
movdqu xmmword [rbp - 0x70], xmm1
mov byte [rbp - 0x80], al
mov qword [rsp + 0x20], rsi
mov r9d, dword [r13 + 0x48]
lea r8, [rbp - 0x80]
mov edx, 0x186a0
lea rcx, [rsp + 0x30]
call fcn.14002ada0
mov r8, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140007533
mov rcx, qword [rsi]
test r8, r8
jne 0x140007696
lea rdx, [0x1400d32d7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140007696
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], recv
mov byte [rbp - 0x60], 0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], recv
mov byte [rbp - 0x40], 0
xor r8d, r8d
lea rdx, [0x1400d32d7]
lea rcx, [rbp - 0x60]
call fcn.140009fd0
xor r8d, r8d
lea rdx, [0x1400d32d7]
lea rcx, [rbp - 0x40]
call fcn.140009fd0
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.140019480
lea rcx, [rbp - 0x60]
mov rdi, qword [rbp - 0x48]
cmp rdi, 0x10
cmovae rcx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
cmp r8, 0xe
jne 0x1400075f9
lea rdx, str.GMV0_OK_ANSWER
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400075f9
lea rdx, [rbp - 0x40]
mov rcx, r14
call fcn.14009e280
mov bl, 1
mov rdi, qword [rbp - 0x48]
jmp 0x140007622
lea rax, [rbp - 0x40]
cmp rsi, rax
je 0x140007620
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rdx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x30]
mov rcx, rsi
call fcn.140009fd0
mov rdi, qword [rbp - 0x48]
xor bl, bl
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140007659
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007654
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007688
call fcn.1400c76e4
cmp rdi, 0x10
jb 0x1400076a3
lea rdx, [rdi + 1]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000768f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000768f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c76e4
jmp 0x1400076a3
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x1400076f0
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400076dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400076dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c76e4
jmp 0x1400076f0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x140007727
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007722
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007759
call fcn.1400c76e4
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140007766
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007760
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007760
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c76e4
nop
lea rcx, [rbp + 0x20]
call fcn.140006f40
movzx eax, bl
jmp 0x140007776
xor al, al
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400c7430
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret