Function at 0x1400cdae0
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rbp - 8], rax
xor r14d, r14d
mov qword [0x1402b0670], r14
lea rax, [0x1402b0688]
mov qword [0x1402b0660], rax
mov qword [0x1402b0678], 1
mov qword [0x1402b0698], r14
lea rax, [0x1402b06b0]
mov qword [0x1402b0688], rax
mov qword [0x1402b06a0], 1
mov qword [0x1402b06c0], r14
mov qword [0x1402b06b0], r14
mov qword [0x1402b06c8], 1
lea rax, [0x14025b188]
mov qword [0x1402b0648], rax
lea rax, [0x14025b168]
mov qword [0x1402b0650], rax
lea rax, [0x14025b178]
mov qword [0x1402b0658], rax
lea rbx, [0x1402b0660]
mov qword [0x1402aa8a0], rbx
lea rdi, [0x1402b0648]
nop dword [rax]
mov r8, qword [rdi]
lea rdi, [rdi + 8]
mov qword [rbp - 0x28], r8
mov qword [rbp - 0x20], r14
mov qword [rbx + 0x20], r8
lea rax, [rbx + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rdx, rbx
lea rcx, [0x1400cd9b0]
call qword [sym.imp.ADVAPI32.DLL_RegisterTraceGuidsW]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400cdbb0
mov esi, r14d
mov qword [0x1402b06e0], r14
mov qword [0x1402b06d8], r14
lea rcx, [0x1402b06e8]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea rdi, [0x1402b06d8]
mov qword [0x1402b0568], rdi
lea r15, [0x1402aa8a0]
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400cdc5b
test byte [rcx + 0x44], 0x40
je 0x1400cdc5b
cmp byte [rcx + 0x41], 4
jb 0x1400cdc5b
lea edx, [rbx + 0x47]
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
mov rbx, qword [0x1402b0640]
test rbx, rbx
jne 0x1400cdd25
mov ecx, 0x95080
call fcn.14013ffac
mov rbx, rax
mov qword [rbp - 0x28], rax
test rax, rax
je 0x1400cdc9b
xor edx, edx
mov r8d, 0x95080
mov rcx, rax
call fcn.140132a80
mov rcx, rbx
call fcn.1400c7c10
jmp 0x1400cdc9e
mov rax, r14
mov qword [0x1402b0640], rax
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x1402a7208], eax
cmp eax, 0xffffffff
jne 0x1400cdd15
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400cdcec
test byte [rcx + 0x44], 0x40
je 0x1400cdcec
cmp byte [rcx + 0x41], 4
jb 0x1400cdcec
mov edx, 0x34
mov r9d, eax
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140026630
mov rcx, qword [0x1402b0640]
test rcx, rcx
je 0x1400cdd09
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x140047660.0]
mov rbx, r14
mov qword [0x1402b0640], rbx
jmp 0x1400cdd1c
mov rbx, qword [0x1402b0640]
test rbx, rbx
je 0x1400ce306
call fcn.1400ccb00
test eax, eax
jne 0x1400ce26d
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400cdd5d
test byte [rcx + 0x44], 0x40
je 0x1400cdd5d
cmp byte [rcx + 0x41], 4
jb 0x1400cdd5d
lea edx, [rax + 0x48]
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
mov rcx, rdi
call fcn.1400a24d0
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400cdd92
test byte [rcx + 0x44], 0x40
je 0x1400cdd92
cmp byte [rcx + 0x41], 4
jb 0x1400cdd92
mov edx, 0x49
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
mov qword [rbp - 0x30], r14
xor edx, edx
xor ecx, ecx
call fcn.1400184e0
mov rdi, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x1400cdde2
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400cdddd
test byte [rcx + 0x44], 0x40
je 0x1400cdddd
cmp byte [rcx + 0x41], 2
jb 0x1400cdddd
lea edx, [rax + 0x41]
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
mov rcx, qword [0x1402aa8a0]
jmp 0x1400cde63
mov rax, qword [rax]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140047660.0]
test eax, eax
je 0x1400cde19
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400cde47
test byte [rcx + 0x44], 0x40
je 0x1400cde47
cmp byte [rcx + 0x41], 2
jb 0x1400cde47
mov edx, 0x42
jmp 0x1400cde36
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400cde47
test byte [rcx + 0x44], 0x40
je 0x1400cde47
cmp byte [rcx + 0x41], 5
jb 0x1400cde47
mov edx, 0x43
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
nop
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x140047660.0]
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400cde89
test byte [rcx + 0x44], 0x40
je 0x1400cde89
cmp byte [rcx + 0x41], 4
jb 0x1400cde89
mov edx, 0x4a
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
lea rax, [rbx + 0x94e48]
mov qword [rbp - 0x28], rax
lea rax, [0x1400ca4b0]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
lea rcx, [rbp - 0x28]
call qword [sym.imp.ADVAPI32.DLL_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400cdec1
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 0x9505c], eax
mov esi, dword [rbx + 0x9505c]
cmp byte [rbx + 0x18], 0
je 0x1400ce29a
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400cdefe
test byte [rcx + 0x44], 0x40
je 0x1400cdefe
cmp byte [rcx + 0x41], 4
jb 0x1400cdefe
mov edx, 0x4b
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
mov qword [rbp - 0x30], r14
xor edx, edx
xor ecx, ecx
call fcn.1400162e0
mov rdi, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x1400cdf4e
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400cdf49
test byte [rcx + 0x44], 0x40
je 0x1400cdf49
cmp byte [rcx + 0x41], 2
jb 0x1400cdf49
lea edx, [rax + 0x44]
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
mov rcx, qword [0x1402aa8a0]
jmp 0x1400cdfcf
mov rax, qword [rax]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140047660.0]
test eax, eax
je 0x1400cdf85
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400cdfb3
test byte [rcx + 0x44], 0x40
je 0x1400cdfb3
cmp byte [rcx + 0x41], 2
jb 0x1400cdfb3
mov edx, 0x45
jmp 0x1400cdfa2
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400cdfb3
test byte [rcx + 0x44], 0x40
je 0x1400cdfb3
cmp byte [rcx + 0x41], 5
jb 0x1400cdfb3
mov edx, 0x46
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
nop
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x140047660.0]
mov rcx, qword [0x1402aa8a0]
cmp byte [rbx + 0x19], 0
je 0x1400ce1b1
cmp rcx, r15
je 0x1400cdfff
test byte [rcx + 0x44], 0x40
je 0x1400cdfff
cmp byte [rcx + 0x41], 4
jb 0x1400cdfff
mov edx, 0x4c
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
mov qword [rbp - 0x30], r14
lea rdi, str.startmode
mov qword [rbp - 0x28], rdi
lea r12, str.ondemand
mov qword [rbp - 0x20], r12
lea rdx, [rbp - 0x28]
mov ecx, 2
call fcn.1400159d0
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x1400ce061
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400ce05f
test byte [rcx + 0x44], 0x40
je 0x1400ce05f
cmp byte [rcx + 0x41], 2
jb 0x1400ce05f
lea edx, [rax + 0x3e]
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
nop
jmp 0x1400ce0df
mov rax, qword [rax]
lea r8, [rbp - 0x28]
mov edx, 2
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140047660.0]
test eax, eax
je 0x1400ce09c
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400ce0ca
test byte [rcx + 0x44], 0x40
je 0x1400ce0ca
cmp byte [rcx + 0x41], 2
jb 0x1400ce0ca
mov edx, 0x3f
jmp 0x1400ce0b9
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400ce0ca
test byte [rcx + 0x44], 0x40
je 0x1400ce0ca
cmp byte [rcx + 0x41], 5
jb 0x1400ce0ca
mov edx, 0x40
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
nop
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [case.0x140047660.0]
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], r12
lea rdx, [rbp - 0x28]
mov ecx, 2
call fcn.14000bb00
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x1400ce133
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400ce131
test byte [rcx + 0x44], 0x40
je 0x1400ce131
cmp byte [rcx + 0x41], 2
jb 0x1400ce131
lea edx, [rax + 0x39]
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
nop
jmp 0x1400ce1b1
mov rax, qword [rax]
lea r8, [rbp - 0x28]
mov edx, 2
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140047660.0]
test eax, eax
je 0x1400ce16e
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400ce19c
test byte [rcx + 0x44], 0x40
je 0x1400ce19c
cmp byte [rcx + 0x41], 2
jb 0x1400ce19c
mov edx, 0x3a
jmp 0x1400ce18b
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400ce19c
test byte [rcx + 0x44], 0x40
je 0x1400ce19c
cmp byte [rcx + 0x41], 5
jb 0x1400ce19c
mov edx, 0x3b
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
nop
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [case.0x140047660.0]
mov qword [rbp - 0x30], r14
xor edx, edx
xor ecx, ecx
call fcn.14000bc20
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x1400ce201
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400ce1fc
test byte [rcx + 0x44], 0x40
je 0x1400ce1fc
cmp byte [rcx + 0x41], 2
jb 0x1400ce1fc
lea edx, [rax + 0x3c]
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
mov rcx, qword [0x1402aa8a0]
jmp 0x1400ce2a1
lea rax, str.force
mov qword [rbp - 0x28], rax
mov rax, qword [rbx]
lea r8, [rbp - 0x28]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140047660.0]
test eax, eax
je 0x1400ce256
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400ce256
test byte [rcx + 0x44], 0x40
je 0x1400ce256
cmp byte [rcx + 0x41], 2
jb 0x1400ce256
mov edx, 0x3d
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
nop
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [case.0x140047660.0]
jmp 0x1400ce29a
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400ce2c7
test byte [rcx + 0x44], 0x40
je 0x1400ce2a1
cmp byte [rcx + 0x41], 4
jb 0x1400ce2a1
mov edx, 0x4d
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
mov rcx, qword [0x1402aa8a0]
cmp rcx, r15
je 0x1400ce2c7
test byte [rcx + 0x44], 0x40
je 0x1400ce2c7
cmp byte [rcx + 0x41], 4
jb 0x1400ce2c7
mov edx, 0x4e
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
call fcn.1400cb1c0
mov rcx, qword [0x1402b0640]
test rcx, rcx
je 0x1400ce2e9
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x140047660.0]
mov ecx, dword [0x1402a7208]
call qword [sym.imp.KERNEL32.DLL_TlsFree]
mov dword [0x1402a7208], 0xffffffff
mov qword [0x1402b0640], r14
mov qword [0x1402b0568], r14
call fcn.1400cd940
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140140100
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret