Function at 0x1800505e0
Capabilities:
Initialize winsock library

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x260
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov qword [rsp + 0x50], rdx
mov r13, rcx
mov edi, 1
mov r14d, edi
and dword [rsp + 0x44], 0
mov ecx, 0x202
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor ebx, ebx
test eax, eax
cmove ebx, edi
mov dword [rsp + 0x44], ebx
or qword [rsp + 0x38], 0xffffffffffffffff
lea r15, [r13 + 0x90]
cmp dword [r15 + 0x54], 0
jne 0x18005066e
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.180051b54
mov edi, eax
jmp 0x180050685
cmp dword [r15 + 0x54], edi
jne 0x180050683
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.180051c54
jmp 0x18005066a
xor edi, edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
call fcn.18000f2d0
mov qword [rsp + 0x58], rax
test edi, edi
je 0x1800508e5
mov sil, byte [rsp + 0x30]
mov dil, byte [rsp + 0x30]
imul r12, qword [rsp + 0x38], 0x390
mov r14, qword [r13 + 0xb8]
lea r8, [r12 + 0x130]
add r8, r14
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.180053978
mov rcx, qword [rsp + 0x58]
cmp qword [rax], rcx
je 0x180050700
and dword [r14 + r12 + 8], 0
cmp dword [r15 + 0x54], 0
je 0x1800508ab
cmp dword [r15 + 0x54], 1
je 0x1800508c1
xor eax, eax
jmp 0x1800508d3
mov r9d, dword [r14 + r12 + 0x140]
mov dword [rsp + 0x40], r9d
xor r8d, r8d
mov qword [rsp + 0x68], r8
mov rcx, qword [r13 + 0xc0]
sub rcx, r14
movabs rax, 0x23ee08fb823ee09
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180050843
xor eax, eax
mov qword [rsp + 0x48], rax
mov rdx, r14
cmp dword [rax + r14 + 0x144], 1
jle 0x1800507fa
cmp dword [rax + r14 + 0x148], r9d
jne 0x1800507fa
add rax, 0x130
add rax, r14
mov qword [rsp + 0x70], rax
mov r8, rax
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x58]
call fcn.180053978
mov rdx, r14
mov rcx, qword [rsp + 0x58]
cmp qword [rax], rcx
jne 0x1800507eb
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
cmp dword [r13 + 0x70], 0
je 0x1800507ac
call qword [sym.imp.WS2_32.dll_WSCDeinstallProvider]
jmp 0x1800507b2
call qword [sym.imp.WS2_32.dll_WSCDeinstallProvider32]
cmp eax, 0xffffffff
je 0x1800508e2
mov r9, qword [r13 + 0xb8]
mov rcx, qword [rsp + 0x48]
add rcx, 0x130
add r9, rcx
mov byte [rsp + 0x20], sil
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x58]
call fcn.1800554a4
mov rdx, qword [r13 + 0xb8]
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
inc r8
mov qword [rsp + 0x68], r8
add rax, 0x390
mov qword [rsp + 0x48], rax
mov r14, rdx
mov rcx, qword [r13 + 0xc0]
sub rcx, rdx
movabs rax, 0x23ee08fb823ee09
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
mov rax, qword [rsp + 0x48]
jb 0x180050747
xor r14d, r14d
mov rcx, qword [r13 + 0xb8]
mov rdx, qword [rsp + 0x50]
add rcx, 0x130
add rcx, r12
cmp dword [r13 + 0x70], r14d
je 0x18005086a
call qword [sym.imp.WS2_32.dll_WSCDeinstallProvider]
jmp 0x180050870
call qword [sym.imp.WS2_32.dll_WSCDeinstallProvider32]
cmp eax, 0xffffffff
je 0x1800508e5
mov rax, qword [r13 + 0xb8]
mov dword [r12 + rax + 8], r14d
mov r9, qword [r13 + 0xb8]
add r9, 0x130
add r9, r12
mov byte [rsp + 0x20], dil
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x58]
call fcn.1800554a4
cmp dword [r15 + 0x54], r14d
jne 0x1800508ba
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.180051b54
jmp 0x1800508d3
cmp dword [r15 + 0x54], 1
jne 0x1800508d0
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.180051c54
jmp 0x1800508d3
mov eax, r14d
mov r14d, 1
test eax, eax
je 0x1800508e5
jmp 0x1800506aa
xor r14d, r14d
lea rcx, [rsp + 0x58]
call fcn.180053a0c
nop
test ebx, ebx
je 0x1800508fa
call qword [sym.imp.WS2_32.dll_WSACleanup]
and dword [rsp + 0x44], 0
mov eax, r14d
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1800782d0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret