Function at 0x140005f80
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x1e0
mov rax, qword [0x140116008]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
cmp qword [0x140118680], 0
mov rsi, rdx
mov ebp, ecx
je 0x140005fec
test rdx, rdx
je 0x140005fe2
lea rax, str.yapi
mov dword [rsp + 0x28], 0xa81
lea r9, str.Api_already_started
mov qword [rsp + 0x20], rax
lea r8, str._s___s:_d_
mov edx, 0x100
mov rcx, rsi
call fcn.1400217a0
mov eax, 0xfffffffa
jmp 0x1400061fe
lea rcx, [0x140079dc4]
call fcn.140056dfc
ucomisd xmm0, qword [0x14010f620]
jp 0x1400062ec
jne 0x1400062ec
mov qword [rsp + 0x1f0], rbx
mov ecx, 0x6588
mov qword [rsp + 0x200], rdi
call fcn.140056e8c
xor edx, edx
mov r8d, 0x6588
mov rcx, rax
mov rbx, rax
call fcn.1400500b0
mov ecx, 0x28
mov dword [rbx + 0x5030], ebp
call fcn.140056e8c
mov rdi, rax
xor eax, eax
mov rcx, rdi
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x28
mov qword [rbx], rdi
call fcn.140056e8c
mov rdi, rax
xor eax, eax
mov rcx, rdi
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x28
mov qword [rbx + 8], rdi
call fcn.140056e8c
mov rdi, rax
xor eax, eax
mov rcx, rdi
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x28
mov qword [rbx + 0x5028], rdi
call fcn.140056e8c
mov rdi, rax
xor eax, eax
mov rcx, rdi
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x28
mov qword [rbx + 0x5048], rdi
call fcn.140056e8c
mov rdi, rax
xor eax, eax
mov rcx, rdi
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x28
mov qword [rbx + 0x5978], rdi
call fcn.140056e8c
mov rdi, rax
xor eax, eax
mov rcx, rdi
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x28
mov qword [rbx + 0x5980], rdi
call fcn.140056e8c
mov rdi, rax
xor eax, eax
mov rcx, rdi
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rbx + 0x20], rdi
call fcn.140016f30
lea rdi, [rbx + 0x61e0]
mov eax, 0xffffffff
movsx rax, ax
mov ecx, 0x100
rep stosw word [rdi], ax
mov qword [rbx + 0x5038], 0
mov dword [rbx + 0x5034], 1
test bpl, 1
je 0x14000621f
mov rdx, rsi
mov rcx, rbx
call fcn.14000e210
mov edi, eax
test eax, eax
jns 0x14000621f
mov rcx, rbx
call fcn.140005ea0
mov rcx, rbx
call fcn.140052f7c
mov eax, edi
mov rbx, qword [rsp + 0x1f0]
mov rdi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14004ee60
mov rbp, qword [rsp + 0x208]
add rsp, 0x1e0
pop rsi
ret
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000626d
test rsi, rsi
je 0x1400062c4
lea rax, str.ytcp
mov dword [rsp + 0x28], 0x192
lea r9, str.Unable_to_start_Windows_Socket
mov qword [rsp + 0x20], rax
lea r8, str._s___s:_d_
mov edx, 0x100
mov rcx, rsi
call fcn.1400217a0
jmp 0x1400062c4
xor edx, edx
lea rcx, [0x140991240]
mov r8d, 0x300
call fcn.1400500b0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rax
test bpl, 2
je 0x1400062de
lea rcx, [rbx + 0x5988]
mov r8, rsi
call fcn.140021370
test eax, eax
jns 0x1400062de
call fcn.14001a630
mov rcx, qword [0x140118680]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.140005ea0
mov rcx, rbx
call fcn.140052f7c
mov eax, 0xfffffff8
jmp 0x1400061ee
mov qword [0x140118680], rbx
xor eax, eax
jmp 0x1400061ee
test rsi, rsi
je 0x140006320
lea rax, str.yapi
mov dword [rsp + 0x28], 0xaa9
lea r9, str.Invalid_architecture
mov qword [rsp + 0x20], rax
lea r8, str._s___s:_d_
mov edx, 0x100
mov rcx, rsi
call fcn.1400217a0
mov eax, 0xfffffffe
jmp 0x1400061fe