Function at 0x140035f40
Capabilities:
Connect socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xd8
mov rax, qword [0x140154010]
xor rax, rsp
mov qword [rbp - 9], rax
mov dword [rsp + 0x38], r9d
mov rsi, r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rcx
mov qword [rbp - 0x59], r8
mov rdi, qword [rbp + 0x77]
mov qword [rbp - 0x51], rdi
mov r14, qword [rbp + 0x7f]
xor ecx, ecx
test r14, r14
je 0x140035fa3
mov rax, r14
cmp qword [r14 + 0x18], 0x10
jb 0x140035f9d
mov rax, qword [r14]
mov qword [r14 + 0x10], rcx
mov byte [rax], cl
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rcx
mov qword [rbp - 0x31], recv
mov byte [rbp - 0x49], cl
xor r8d, r8d
lea rdx, [0x1400d32d7]
lea rcx, [rbp - 0x49]
call fcn.140009fd0
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 0x140036000
lea r8d, [rax + 0x1f]
lea rdx, str.client_socket__INVALID_SOCKET
lea rcx, [rbp - 0x49]
call fcn.140009fd0
lea rcx, [rbp - 0x49]
mov r15, qword [rbp - 0x49]
mov r13, qword [rbp - 0x31]
cmp r13, 0x10
cmovae rcx, r15
mov r12, qword [rbp - 0x39]
test r12, r12
jne 0x14003632b
mov r8, r12
lea rdx, [0x1400d32d7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14003632b
mov rdx, rsi
lea rcx, [rbp - 0x79]
call fcn.140009b00
mov r15, rax
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rdx, [0x1400d32d7]
lea rcx, [rbp - 0x49]
call fcn.140009fd0
mov qword [rbp - 0x21], r12
mov eax, 2
mov word [rbp - 0x29], ax
mov rcx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x140036079
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0x25], eax
movzx ecx, word [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x27], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x29]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400360be
lea r8d, [rax + 0x17]
lea rdx, str.connect__SOCKET_ERROR
lea rcx, [rbp - 0x49]
call fcn.140009fd0
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x1400360f8
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x1400360f3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400362df
mov rcx, r8
call fcn.1400c76e4
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], recv
mov byte [r15], 0
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 0x10
cmovae rcx, qword [rbp - 0x49]
mov r8, qword [rbp - 0x39]
test r8, r8
jne 0x140036326
lea rdx, [0x1400d32d7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140036326
lea rax, [rbp - 0x79]
mov qword [rsp + 0x40], rax
mov rdx, rdi
lea rcx, [rbp - 0x79]
call fcn.140009b00
mov rbx, rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rbp - 0x29]
call fcn.140009b00
nop
lea rcx, [rbp - 0x49]
mov qword [rsp + 0x20], rcx
mov r15d, dword [rbp + 0x6f]
mov r9d, r15d
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14002ac40
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 0x10
cmovae rcx, qword [rbp - 0x49]
mov r8, qword [rbp - 0x39]
test r8, r8
jne 0x1400362e6
lea rdx, [0x1400d32d7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400362e6
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8, qword [rsp + 0x50]
mov edx, 0x186a0
lea rcx, [rsp + 0x30]
call fcn.14002ada0
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 0x10
cmovae rcx, qword [rbp - 0x49]
mov r8, qword [rbp - 0x39]
test r8, r8
jne 0x1400362e6
lea rdx, [0x1400d32d7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400362e6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0x10
jb 0x140036243
inc rdx
mov rcx, qword [rbp - 0x49]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14003623e
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036383
call fcn.1400c76e4
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], recv
mov byte [rbp - 0x49], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14003628d
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140036288
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003644d
mov rcx, r8
call fcn.1400c76e4
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], recv
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400362d6
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x1400362d1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140036454
mov rcx, r8
call fcn.1400c76e4
mov qword [rdi + 0x10], r12
jmp 0x140036422
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
test r14, r14
je 0x140036208
lea rax, [rbp - 0x49]
cmp r14, rax
je 0x140036208
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 0x10
cmovae rdx, qword [rbp - 0x49]
mov r8, qword [rbp - 0x39]
mov rcx, r14
call fcn.140009fd0
jmp 0x140036208
mov rcx, rbx
jmp 0x1400362eb
test r14, r14
je 0x140036358
lea rax, [rbp - 0x49]
cmp r14, rax
je 0x140036358
lea rdx, [rbp - 0x49]
cmp r13, 0x10
cmovae rdx, r15
mov r8, r12
mov rcx, r14
call fcn.140009fd0
mov r13, qword [rbp - 0x31]
mov r15, qword [rbp - 0x49]
cmp r13, 0x10
jb 0x140036392
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x14003638a
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003638a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400c76e4
xor ebx, ebx
mov qword [rbp - 0x39], rbx
mov qword [rbp - 0x31], recv
mov byte [rbp - 0x49], bl
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1400363d9
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x1400363d4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003644d
mov rcx, r8
call fcn.1400c76e4
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], recv
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14003641e
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140036419
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140036454
mov rcx, r8
call fcn.1400c76e4
mov qword [rdi + 0x10], rbx
mov byte [rdi], 0
mov qword [rdi + 0x18], recv
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400c7430
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3