Function at 0x14002b820
Capabilities:
Initialize winsock library

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x1f0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140063828]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rsi, r9
mov rax, r8
mov r12, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov rbp, qword [rsp + 0x250]
mov r14, qword [rsp + 0x258]
mov r15, qword [rsp + 0x270]
xor edi, edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], setsockopt
mov byte [rcx], dil
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], dil
jne 0x14002b890
mov rdx, rax
call fcn.14001c380
nop
lea rcx, [rbx + 0x20]
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], setsockopt
mov byte [rcx], 0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rsi + r8], 0
jne 0x14002b8c0
mov rdx, rsi
call fcn.14001c380
nop
lea rcx, [rbx + 0x40]
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], setsockopt
mov byte [rcx], 0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [r8 + rbp], 0
jne 0x14002b8f0
mov rdx, rbp
call fcn.14001c380
nop
lea rcx, [rbx + 0x60]
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], setsockopt
mov byte [rcx], 0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [r14 + r8], 0
jne 0x14002b920
mov rdx, r14
call fcn.14001c380
nop
lea rcx, [rbx + 0x80]
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], setsockopt
mov byte [rcx], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r15 + r8], 0
jne 0x14002b950
mov rdx, r15
call fcn.14001c380
nop
mov qword [rbx + 0xa0], r12
movsd xmm0, qword [rsp + 0x260]
movsd qword [rbx + 0xa8], xmm0
movzx eax, byte [rsp + 0x278]
mov byte [rbx + 0xb0], al
mov dword [rbx + 0xb1], 0
mov qword [rbx + 0xc8], rdi
mov qword [rbx + 0xd0], setsockopt
mov byte [rbx + 0xb8], 0
lea rcx, [rbx + 0xd8]
mov edx, 2
call sub.MSVCP140.dll__Mtx_init_in_situ
nop
mov qword [rbx + 0x128], rdi
mov qword [rbx + 0x130], rdi
mov qword [rbx + 0x138], rdi
mov byte [rbx + 0x142], 0
mov qword [rbx + 0x1b8], rdi
mov qword [rbx + 0x1c0], setsockopt
mov byte [rbx + 0x1a8], 0
lea rcx, [rbx + 0x1d0]
mov edx, 2
call sub.MSVCP140.dll__Mtx_init_in_situ
nop
lea rcx, [rbx + 0x220]
call sub.MSVCP140.dll__Cnd_init_in_situ
nop
lea rcx, [rbx + 0x270]
mov edx, 2
call sub.MSVCP140.dll__Mtx_init_in_situ
nop
lea rsi, [rbx + 0x2c0]
mov qword [rsi + 0x1c8], rdi
mov qword [rsi + 0x1d0], 0xffffffffffffffff
xor eax, eax
mov qword [rsi + 0x1d8], rax
mov qword [rsi + 0x1e0], rax
mov qword [rsi + 0x1e8], rax
mov qword [rsi + 0x1f0], rax
mov qword [rbx + 0x4c8], rdi
mov qword [rbx + 0x4d0], rdi
cmp byte [0x14006436c], al
jne 0x14002ba88
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
mov byte [0x14006436c], 1
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 0x158], rax
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 0x148], rax
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 0x150], rax
mov ecx, pe_nt_image_headers64
call fcn.14004c0cc
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14002baf1
mov r9, qword [rbx + 0x150]
mov r8, qword [rbx + 0x148]
mov rdx, qword [rbx + 0x158]
mov rcx, rax
call fcn.14002bb80
jmp 0x14002baf4
mov rax, rdi
mov qword [rbx + 0x4b8], rax
mov ecx, gethostbyname
call fcn.14004c0cc
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14002bb1c
mov rdx, rbx
mov rcx, rax
call fcn.1400301e0
jmp 0x14002bb1f
mov rax, rdi
mov qword [rbx + 0x4c0], rax
mov qword [rbx + 0x268], rdi
mov edx, edi
xchg byte [rbx + 0x140], dl
mov edx, edi
xchg byte [rbx + 0x141], dl
xchg qword [rbx + 0x1a0], rdi
xor edx, edx
mov r8d, 0x1f8
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
nop
mov rax, rbx
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14004c1b0
add rsp, 0x1f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret