Function at 0x140007060
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x14014c010]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rsi, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x70], xmm0
movdqa xmm1, xmmword [0x140138340]
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
movups xmmword [rbp + 0xb0], xmm0
movdqa xmmword [rbp + 0xc0], xmm1
mov byte [rbp + 0xb0], al
movdqa xmmword [rbp + 0xd0], xmm0
xor r12d, r12d
mov qword [rbp + 0xe0], r12
lea rcx, [rbp + 0x70]
call fcn.140017720
nop
lea rbx, [rsi + 0x50]
lea rax, [rbp + 0x70]
cmp rax, rbx
je 0x14000711e
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140007111
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp + 0x70]
call fcn.140008cb0
lea rdx, [rsi + 0x70]
lea rax, [rbp + 0x90]
cmp rax, rdx
je 0x140007148
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14000713c
mov rdx, qword [rdx]
lea rcx, [rbp + 0x90]
call fcn.140008cb0
mov r8d, 0x1f
lea rdx, str.GET_CLIENT_CLIENT_SIDE_SETTINGS
lea rcx, [rbp + 0xb0]
call fcn.140008cb0
mov rax, qword [rbp + 0xd8]
cmp rax, qword [rbp + 0xe0]
je 0x140007186
mov rdx, rbx
mov rcx, rax
call fcn.140008840
add qword [rbp + 0xd8], 0x20
jmp 0x140007198
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.14000b0b0
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movdqa xmm1, xmmword [0x140138340]
movdqa xmmword [rbp + 0x40], xmm1
mov byte [rbp + 0x30], 0
movups xmmword [rbp + 0x50], xmm0
movdqa xmmword [rbp + 0x60], xmm1
mov byte [rbp + 0x50], 0
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp + 0x30]
call fcn.140008cb0
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp + 0x50]
call fcn.140008cb0
nop
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.GMV0_UPDATE_REQUEST
lea rcx, [rbp + 0x30]
call fcn.140008cb0
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x70]
call fcn.140017780
mov rbx, rax
lea rax, [rbp + 0x50]
cmp rax, rbx
je 0x14000726f
mov rdx, qword [rbp + 0x68]
cmp rdx, 0x10
jb 0x140007251
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000724c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000724c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b5f14
movups xmm0, xmmword [rbx]
movaps xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rbp + 0x60], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
lea rcx, [rbp - 0x38]
call fcn.140002da0
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], recv
mov byte [rbp - 0x58], 0
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp - 0x58]
call fcn.140008cb0
mov edx, 1
lea r8d, [rdx + 5]
mov r15d, 2
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x1400072dc
lea r8d, [r15 + 0x1c]
lea rdx, str.client_socket__INVALID_SOCKET
lea rcx, [rbp - 0x58]
call fcn.140008cb0
lea rcx, [rbp - 0x58]
mov rdi, qword [rbp - 0x58]
mov r14, qword [rbp - 0x40]
cmp r14, 0x10
cmovae rcx, rdi
mov r8, qword [rbp - 0x48]
test r8, r8
jne 0x140007682
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140007682
mov r14d, dword [rsi + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140008840
mov rdi, rax
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp - 0x58]
call fcn.140008cb0
mov qword [rbp - 0x30], r12
mov word [rbp - 0x38], r15w
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140007353
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0x34], eax
movzx ecx, r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x36], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140007397
lea r8d, [rax + 0x17]
lea rdx, str.connect__SOCKET_ERROR
lea rcx, [rbp - 0x58]
call fcn.140008cb0
nop
mov rcx, rdi
call fcn.140002da0
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
test r8, r8
jne 0x140007669
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140007669
mov edi, dword [rsi + 0x48]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rdx, [rsi + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140008840
mov r15, rax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x30]
call fcn.140016de0
mov r14, rax
mov qword [rbp - 0x38], rax
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp - 0x58]
call fcn.140008cb0
mov rdx, r15
lea rcx, [rbp - 0x78]
call fcn.140008840
mov r9, r14
mov r8d, edi
mov rdx, rax
call fcn.140023d80
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x140007440
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 0x140007470
mov r8d, 0x1c
lea rdx, str.sent_bytes___message.size__
lea rcx, [rbp - 0x58]
call fcn.140008cb0
nop
mov rcx, r14
call fcn.140002da0
nop
mov rcx, r15
call fcn.140002da0
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
test r8, r8
jne 0x140007669
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140007669
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], recv
mov byte [rbp - 0x38], al
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsi + 0x48]
lea r8, [rbp - 0x38]
mov edx, 0xf4240
lea rcx, [rsp + 0x30]
call fcn.140023b80
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
test r8, r8
jne 0x14000762e
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000762e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rcx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x28]
test r8, r8
jne 0x140007553
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140007553
lea rdx, str.empty_response
jmp 0x140007647
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r12
mov qword [rbp + 8], recv
mov byte [rbp - 0x10], 0
movups xmmword [rbp + 0x10], xmm0
movdqa xmm1, xmmword [0x140138340]
movdqa xmmword [rbp + 0x20], xmm1
mov byte [rbp + 0x10], 0
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp - 0x10]
call fcn.140008cb0
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp + 0x10]
call fcn.140008cb0
nop
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x10]
call fcn.140016f20
test al, al
jne 0x1400075c0
lea rdx, str.cant_parce_response
jmp 0x140007603
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rcx, qword [rbp - 0x10]
mov r8, qword [rbp]
cmp r8, 0xe
jne 0x1400075f5
lea rdx, str.GMV0_OK_ANSWER
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400075f5
lea rdx, [rbp + 0x10]
call fcn.140080950
mov bl, 1
jmp 0x14000761a
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rdx, qword [rbp + 0x10]
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Server_Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor bl, bl
lea rcx, [rbp + 0x10]
call fcn.140002da0
lea rcx, [rbp - 0x10]
call fcn.140002da0
jmp 0x14000765e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Server_Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor bl, bl
lea rcx, [rbp - 0x38]
call fcn.140002da0
jmp 0x1400076a5
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
jmp 0x14000768e
lea rdx, [rbp - 0x58]
cmp r14, 0x10
cmovae rdx, rdi
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Server_Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor bl, bl
lea rcx, [rbp - 0x58]
call fcn.140002da0
nop
lea rcx, [rbp + 0x50]
call fcn.140002da0
lea rcx, [rbp + 0x30]
call fcn.140002da0
nop
lea rcx, [rbp + 0x70]
call fcn.140006200
movzx eax, bl
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400b5c60
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret