Function at 0x14000aaf0
Capabilities:
Initialize winsock library

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x230
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400a3708]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rbx, rcx
lea r14, [rcx + 0xf8]
mov edx, 4
lea ecx, [rdx - 3]
call fcn.140051db8
mov rsi, rax
xor edi, edi
test rax, rax
jne 0x14000ab55
mov esi, edi
mov qword [rsp + 0x20], rdi
jmp 0x14000ab5c
mov dword [rax], edi
mov qword [rsp + 0x20], rax
test r14, r14
je 0x14000b035
lea rcx, [r14 + 8]
mov r9, rbx
lea r8, [0x140004b40]
xor edx, edx
call fcn.14001a9a0
mov r15d, eax
test rsi, rsi
je 0x14000ab8a
mov rcx, rsi
call fcn.1400502e4
test r15d, r15d
jne 0x14000b035
mov dword [r14], 1
mov esi, edi
cmp dword [rbx + 4], r15d
jle 0x14000abd8
lea r14, [rbx + 0x38]
mov rcx, qword [r14]
call fcn.140011fa0
test eax, eax
js 0x14000abbf
inc esi
add r14, 8
cmp esi, dword [rbx + 4]
jl 0x14000aba6
jmp 0x14000abd8
mov r8d, esi
lea rdx, str._rpsencoder___RPS_encoder_stream__d__start_task_failed_n
mov ecx, reloc.WS2_32.dll_recv
call fcn.14001a3d0
jmp 0x14000b046
mov esi, edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x48], rdi
xor al, al
mov byte [rsp + 0x40], al
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
xor r15b, r15b
cmp byte [rbx], r15b
jne 0x14000b014
movabs r12, 0x112e0be826d694b3
nop dword [rax + rax]
test r15b, r15b
jne 0x14000af7b
movzx eax, word [rbx + 0x1a4]
test ax, ax
je 0x14000af7b
movzx esi, ax
mov qword [0x1400a7048], rdi
mov dword [rsp + 0x28], esi
mov ecx, 0x201
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.14002d950
movzx edx, si
lea rcx, str.127.0.0.1
call fcn.1400258a0
mov r14, rax
test rax, rax
jne 0x14000ac85
mov rax, qword [0x1400a7048]
test rax, rax
je 0x14000ac79
mov edx, esi
lea rcx, str.http_event_start_failed__port__d_n
call rax
lea rdx, str._rpsencoder___http_server_init_failed__ret__d_n
jmp 0x14000af6a
mov edx, 3
mov rcx, r14
call fcn.1400233d0
mov qword [rsp + 0x48], r14
mov r15b, 1
mov r9, rbx
lea r8, [0x140009b90]
lea rdx, str._getBitRateInfo
mov rcx, r14
call fcn.140023000
mov r9, rbx
lea r8, [0x140009f20]
lea rdx, str._getBitRateInfo2
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x14000a220]
lea rdx, str._getEncodingStatistic
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x14000a670]
lea rdx, str._getSlotsStatistic
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x140008640]
lea rdx, str._doEncoder
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x1400088a0]
lea rdx, str._setMaxBitRate
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x140008cd0]
lea rdx, str._changeOutput
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x140008ef0]
lea rdx, str._changeOutput2
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x140008ef0]
lea rdx, str._changeOutput2
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x1400091e0]
lea rdx, str._changeLocalSlots
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x140008ab0]
lea rdx, str._getOutput
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x140008b90]
lea rdx, str._getOutput2
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x1400095c0]
lea rdx, str._setLatency
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x140009720]
lea rdx, str._setBitRateControlMode
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x140009910]
lea rdx, str._getBitRateControlMode
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x1400094d0]
lea rdx, str._setExit
mov rcx, qword [rsp + 0x48]
call fcn.140023000
xor r9d, r9d
lea r8, [0x140009a00]
lea rdx, str._setLogLevel
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x14000a6a0]
lea rdx, str._changeEncodeOnFly
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov r9, rbx
lea r8, [0x14000a8e0]
lea rdx, str._idrRequest
mov rcx, qword [rsp + 0x48]
call fcn.140023000
xor r9d, r9d
lea r8, [0x1400085e0]
lea rdx, str._help
mov rcx, qword [rsp + 0x48]
call fcn.140023000
xor r9d, r9d
lea r8, [0x1400085e0]
lea rdx, str._Help
mov rcx, qword [rsp + 0x48]
call fcn.140023000
xor r9d, r9d
lea r8, [0x1400085e0]
lea rdx, str._HELP
mov rcx, qword [rsp + 0x48]
call fcn.140023000
mov edx, 4
lea ecx, [rdx - 3]
call fcn.140051db8
mov rsi, rax
test rax, rax
jne 0x14000af09
mov rsi, rdi
mov qword [rsp + 0x20], rdi
jmp 0x14000af10
mov dword [rax], edi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x28]
lea r8, [0x140015470]
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14001a9a0
mov r14d, eax
test rsi, rsi
je 0x14000af38
mov rcx, rsi
call fcn.1400502e4
test r14d, r14d
jne 0x14000af4e
mov dword [rsp + 0x30], 1
mov byte [rsp + 0x40], 1
mov esi, edi
jmp 0x14000af7b
mov rax, qword [0x1400a7048]
test rax, rax
je 0x14000af63
lea rcx, str.chreate_the_thread_for_http_server_start__failed_n
call rax
lea rdx, str._rpsencoder___http_server_start_failed__ret__d_n
or esi, 0xffffffff
xor r15b, r15b
or r8d, esi
lea ecx, [rsi + 0x11]
call fcn.14001a3d0
mov r8d, edi
mov edx, dword [rbx + 4]
test edx, edx
jle 0x14000afba
lea rcx, [rbx + 0x38]
nop dword [rax]
mov rax, qword [rcx]
cmp byte [rax], 0
jne 0x14000afa6
inc r8d
add rcx, 8
cmp r8d, edx
jl 0x14000af90
jmp 0x14000afba
lea rdx, str._rpsencoder___program__d__appear_abnormal_exit_now__whole_programs_have_to_exit_for_handling_it._n
mov ecx, 0x20
call fcn.14001a3d0
mov byte [rbx], 1
call fcn.1400419c8
imul rcx, rax, 0x64
add rcx, 0x3b9aca00
mov rax, r12
imul rcx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rsp + 0x50], rdx
imul rax, rdx, 0x3b9aca00
sub rcx, rax
mov dword [rsp + 0x58], ecx
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call fcn.140041750
cmp byte [rbx], 0
je 0x14000ac10
movzx eax, byte [rsp + 0x40]
test al, al
je 0x14000b031
xor eax, eax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x24], 0x186a0
lea rcx, [rsp + 0x20]
call fcn.14002d9d0
mov eax, esi
jmp 0x14000b049
lea rdx, str._rpsencoder___create_tvulive_muxer_thread_failed_n
mov ecx, reloc.WS2_32.dll_recv
call fcn.14001a3d0
or eax, 0xffffffff
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140042500
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret