Function at 0x7ff8266a4c6c
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x70
mov rsi, r8
mov rdi, rcx
xor ebx, ebx
test edx, edx
je 0x7ff8266a4e0e
sub edx, 1
je 0x7ff8266a4ca1
cmp edx, 2
jne 0x7ff8266a5012
call fcn.7ff8266a2330
jmp 0x7ff8266a5012
mov byte [rsp + 0x20], bl
xor r9d, r9d
xor r8d, r8d
call fcn.7ff8266c1bf8
call fcn.7ff8266a2f84
lea rcx, [0x7ff8266d7f20]
mov qword [0x7ff8266e2928], rcx
lea rax, [0x7ff8266e2900]
mov qword [str._b_n], rax
call fcn.7ff8266a2a64
mov rcx, rdi
call fcn.7ff8266a2b50
test eax, eax
jne 0x7ff8266a4ce9
xor eax, eax
jmp 0x7ff8266a5019
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
nop dword [rax + rax]
mov dword [0x7ff8266e2064], eax
cmp eax, 0xffffffff
jne 0x7ff8266a4d07
call fcn.7ff8266a3468
jmp 0x7ff8266a4ce2
mov qword [0x7ff8266e2820], rdi
call fcn.7ff8266a2744
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov qword [0x7ff8266e2850], rax
mov byte [rsp + 0x50], bl
mov byte [rsp + 0x51], bl
mov byte [rsp + 0x52], bl
call fcn.7ff8266a3280
mov edi, 1
mov byte [rsp + 0x50], dil
lea rcx, [0x7ff8266e28d8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
nop dword [rax + rax]
mov r14b, dil
mov byte [rsp + 0x51], dil
call fcn.7ff8266a2b90
mov sil, al
mov byte [rsp + 0x52], al
test al, al
je 0x7ff8266a4db8
call fcn.7ff8266a2ce8
test eax, eax
je 0x7ff8266a4db8
call fcn.7ff8266a2cbc
test eax, eax
je 0x7ff8266a4db8
lea r9, [0x7ff8266e2858]
xor r8d, r8d
lea rdx, [sym.WS2_32.dll_WEP]
lea rcx, [0x7ff8266d7218]
call qword [sym.imp.ntdll.dll_EtwEventRegister]
nop dword [rax + rax]
jmp 0x7ff8266a5017
test r14b, r14b
je 0x7ff8266a4dc2
call fcn.7ff8266a3540
test dil, dil
je 0x7ff8266a4dcc
call fcn.7ff8266a3600
test sil, sil
je 0x7ff8266a4de4
lea rcx, [0x7ff8266e2988]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_DeleteCriticalSection]
nop dword [rax + rax]
call fcn.7ff8266a3468
mov ecx, dword [0x7ff8266e2064]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsFree]
nop dword [rax + rax]
or dword [0x7ff8266e2064], 0xffffffff
mov qword [0x7ff8266e2820], rbx
jmp 0x7ff8266a4ce2
cmp qword [0x7ff8266e2820], rbx
je 0x7ff8266a5012
mov ecx, dword [0x7ff8266e2814]
test ecx, ecx
jne 0x7ff8266a4e31
cmp dword [0x7ff8266e2808], ebx
jbe 0x7ff8266a4ef9
cmp dword [0x7ff8266e2010], 5
jbe 0x7ff8266a4ed5
call fcn.7ff8266b463c
test al, al
je 0x7ff8266a4ed5
mov eax, dword [0x7ff8266e2804]
mov dword [rsp + 0x98], eax
mov eax, dword [0x7ff8266e2808]
mov dword [rsp + 0xa8], eax
mov eax, dword [0x7ff8266e280c]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x58], ecx
mov eax, dword [0x7ff8266e2810]
mov dword [rsp + 0x5c], eax
mov eax, dword [0x7ff8266e2818]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rdx, [0x7ff8266d7b39]
call fcn.7ff8266b44c0
mov dword [0x7ff8266e2818], ebx
mov dword [0x7ff8266e2810], ebx
mov dword [0x7ff8266e2814], ebx
mov dword [0x7ff8266e280c], ebx
mov dword [0x7ff8266e2808], ebx
mov dword [0x7ff8266e2804], ebx
test rsi, rsi
jne 0x7ff8266a4fae
call fcn.7ff8266a2330
mov rcx, qword [0x7ff8266e2828]
test rcx, rcx
je 0x7ff8266a4f18
call fcn.7ff8266a03cc
call fcn.7ff8266a3598
call fcn.7ff8266a3394
lea rcx, [0x7ff8266e28b0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_DeleteCriticalSection]
nop dword [rax + rax]
call fcn.7ff82669a584
test eax, eax
je 0x7ff8266a4f43
call fcn.7ff8266b3e50
call fcn.7ff8266a35cc
call fcn.7ff8266a3600
mov ecx, dword [0x7ff8266e2064]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsFree]
nop dword [rax + rax]
call fcn.7ff8266a2280
cmp qword [0x7ff8266e2850], rbx
je 0x7ff8266a4f91
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, qword [0x7ff8266e2850]
cmp rcx, rax
je 0x7ff8266a4f91
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapDestroy]
nop dword [rax + rax]
call fcn.7ff8266a3468
call fcn.7ff8266a3540
lea rcx, [0x7ff8266e2988]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_DeleteCriticalSection]
nop dword [rax + rax]
mov rcx, rsi
call fcn.7ff8266a32e4
mov rcx, qword [0x7ff8266e2858]
call qword [sym.imp.ntdll.dll_EtwEventUnregister]
nop dword [rax + rax]
lea rax, [0x7ff8266a3670]
mov qword [section..data], rax
mov rcx, qword [0x7ff8266e2030]
mov dword [0x7ff8266e2010], ebx
mov qword [0x7ff8266e2030], rbx
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
nop dword [rax + rax]
mov byte [rsp + 0x20], bl
xor r9d, r9d
xor r8d, r8d
call fcn.7ff8266c1bf8
call fcn.7ff8266a2c60
mov qword [0x7ff8266e2820], rbx
mov edi, 1
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret