Function at 0x180007910
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x3e8], rbx
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r15w
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp word [rdx + r8*2], r15w
jne 0x180007960
lea rcx, [rsp + 0x60]
call fcn.180027e40
lea rsi, [r14 + 0x8b8]
lea rax, [rsp + 0x60]
cmp rsi, rax
je 0x1800079a0
mov rcx, rsi
call fcn.180010290
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
jmp 0x1800079e2
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1800079e2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800079dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007e71
call fcn.18002aef0
mov ecx, 0x202
lea rdx, [rbp + 0x110]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov qword [rbp - 0x80], rdi
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x180007a00
mov qword [rbp - 0x78], rbx
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp + 0x40], xmm0
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.1800266c0
nop
cmp byte [rbp - 0x70], 0
je 0x180007e1d
lea rcx, [r14 + 0x10]
xor edx, edx
mov r8d, 0x8a8
call fcn.18004b570
mov rcx, r14
call fcn.180008950
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
add rcx, 4
mov rdx, r14
sub rdx, rcx
movzx eax, word [rcx]
mov word [rcx + rdx + 0x6b0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180007a60
call fcn.1800242d0
mov rcx, qword [rax]
mov r8, qword [rcx]
lea rcx, vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__void_____thiscall_RatCore::__class_SessionClient____ptr64___class_RatCore____ptr64__struct_std::_Ph_1__const____ptr64___void__class_SessionClient____ptr64_.0
mov qword [rbp + 0xb0], rcx
lea rcx, [0x180008c40]
mov qword [rbp + 0xb8], rcx
movzx ecx, byte [rbp + 0xf8]
mov byte [rbp + 0xc0], cl
mov qword [rbp + 0xc8], r14
lea rcx, [rbp + 0xb0]
mov qword [rbp + 0xe8], rcx
lea rdx, [rbp + 0xb0]
mov rcx, rax
call r8
call fcn.180009e40
mov rdx, rax
mov rcx, r14
call fcn.180007e80
mov rdx, qword [0x1800a01e8]
test rdx, rdx
jne 0x180007b64
lea rbx, vtable.CorePluginManager.0
nop dword [rax]
xor eax, eax
lock cmpxchg dword [0x1800a01e0], r15d
je 0x180007b0f
nop dword [rax]
pause
xor eax, eax
lock cmpxchg dword [0x1800a01e0], r15d
jne 0x180007b00
lock inc dword [0x1800a01e0]
cmp qword [0x1800a01e8], 0
jne 0x180007b51
mov ecx, gethostbyname
call fcn.18002aeb4
mov qword [rbp + 0x2f0], rax
xor ecx, ecx
mov qword [rax + 0x28], rcx
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], r15
mov qword [rax], rbx
mov qword [0x1800a01e8], rax
lock dec dword [0x1800a01e0]
mov rdx, qword [0x1800a01e8]
test rdx, rdx
je 0x180007af0
mov rcx, r14
call fcn.180007e80
mov rdx, qword [0x1800a01b8]
test rdx, rdx
jne 0x180007bfb
lea rbx, vtable.CoreMiscLogical.0
xor eax, eax
lock cmpxchg dword [0x1800a01b0], r15d
je 0x180007b9f
pause
xor eax, eax
lock cmpxchg dword [0x1800a01b0], r15d
jne 0x180007b90
lock inc dword [0x1800a01b0]
cmp qword [0x1800a01b8], 0
jne 0x180007be8
mov ecx, 0x38
call fcn.18002aeb4
mov qword [rbp + 0x2f0], rax
xor ecx, ecx
mov qword [rax + 0x28], rcx
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], r15
mov qword [rax], rbx
mov byte [rax + 0x28], cl
mov qword [rax + 0x30], r15
mov qword [0x1800a01b8], rax
lock dec dword [0x1800a01b0]
mov rdx, qword [0x1800a01b8]
test rdx, rdx
je 0x180007b83
mov rcx, r14
call fcn.180007e80
call fcn.1800242d0
mov rcx, qword [rax]
mov r9, qword [rcx + 8]
lea rbx, [0x180081318]
mov qword [rbp - 0x48], rbx
lea rcx, [0x180008cb0]
mov qword [rbp - 0x40], rcx
movzx ecx, byte [rbp + 0x88]
mov byte [rbp - 0x38], cl
movzx ecx, byte [rbp + 0x89]
mov byte [rbp - 0x37], cl
movzx ecx, byte [rbp + 0x8a]
mov byte [rbp - 0x36], cl
mov qword [rbp - 0x30], r14
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x10], rcx
lea r8, [rbp - 0x48]
mov edx, 0x19181719
mov rcx, rax
call r9
call fcn.1800242d0
mov rcx, qword [rax]
mov r9, qword [rcx + 8]
mov qword [rbp - 8], rbx
lea rcx, [0x180008db0]
mov qword [rbp], rcx
movzx ecx, byte [rbp + 0xa0]
mov byte [rbp + 8], cl
movzx ecx, byte [rbp + 0xa1]
mov byte [rbp + 9], cl
movzx ecx, byte [rbp + 0xa2]
mov byte [rbp + 0xa], cl
mov qword [rbp + 0x10], r14
lea rcx, [rbp - 8]
mov qword [rbp + 0x30], rcx
lea r8, [rbp - 8]
mov edx, 0x1918171a
mov rcx, rax
call r9
mov ecx, reloc.WS2_32.dll_recv
call fcn.18002aeb4
mov rbx, rax
lea rax, [0x180007f00]
mov qword [rbx], rax
mov qword [rbx + 8], r14
mov qword [rbp + 0x2e0], rbx
lea rcx, [rsp + 0x28]
call fcn.1800293e4
test eax, eax
je 0x180007ce9
mov ecx, eax
call fcn.180028ce0
mov byte [rbp + 0x50], 1
mov rax, qword [rsp + 0x28]
mov qword [rbp + 0x58], rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800287f4
test eax, eax
je 0x180007d10
mov ecx, eax
call fcn.180028ce0
mov byte [rbp + 0x60], 1
mov rcx, qword [rsp + 0x30]
mov qword [rbp + 0x68], rcx
mov byte [rsp + 0x38], 0
call fcn.180028878
test eax, eax
je 0x180007d33
mov ecx, eax
call fcn.180028ce0
nop
lea rax, [0x180081398]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x2e0], r15
mov qword [rsp + 0x40], rbx
lea r8, [rsp + 0x20]
lea rdx, [0x180021240]
lea rcx, [rsp + 0x50]
call fcn.180028fd0
mov ecx, 1
cmp eax, 4
cmovne ecx, eax
test ecx, ecx
je 0x180007d75
call fcn.180028ce0
cmp byte [rsp + 0x38], 0
jne 0x180007da1
nop dword [rax]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.180029448
test eax, eax
je 0x180007d9a
mov ecx, eax
call fcn.180028ce0
cmp byte [rsp + 0x38], 0
je 0x180007d80
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180007db6
mov edx, reloc.WS2_32.dll_recv
call fcn.18002aef0
nop
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.18002889c
test eax, eax
je 0x180007dd3
mov ecx, eax
call fcn.180028ce0
mov rcx, rbx
call fcn.1800287b4
mov rcx, rdi
call fcn.1800293ac
nop
cmp dword [rsp + 0x58], 0
jne 0x180007df5
mov ecx, 1
call fcn.180028d1c
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp + 0x70], xmm0
lea rcx, [rbp + 0x70]
call fcn.180028ec4
test eax, eax
je 0x180007e13
mov ecx, eax
call fcn.180028ce0
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], r15d
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x180007e54
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007e4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007e6b
call fcn.18002aef0
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x3b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18004df84
int3
call fcn.18004df84
int3