Function at 0x1400d0ed0
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 [0x1402e7d18]
xor rax, rsp
mov qword [rbp - 8], rax
xor r14d, r14d
mov qword [0x1402f1130], r14
lea rax, [0x1402f1148]
mov qword [0x1402f1120], rax
mov qword [0x1402f1138], 1
mov qword [0x1402f1158], r14
lea rax, [0x1402f1170]
mov qword [0x1402f1148], rax
mov qword [0x1402f1160], 1
mov qword [0x1402f1180], r14
mov qword [0x1402f1170], r14
mov qword [0x1402f1188], 1
lea rax, [0x140299b38]
mov qword [0x1402f1108], rax
lea rax, [0x140299b18]
mov qword [0x1402f1110], rax
lea rax, [0x140299b28]
mov qword [0x1402f1118], rax
lea rbx, [0x1402f1120]
mov qword [0x1402eb3e0], rbx
lea rdi, [0x1402f1108]
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, [0x1400d0da0]
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400d0fa0
mov esi, r14d
mov qword [0x1402f11a0], r14
mov qword [0x1402f1198], r14
lea rcx, [0x1402f11a8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rdi, [0x1402f1198]
mov qword [0x1402f1028], rdi
lea r15, [0x1402eb3e0]
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d104b
test byte [rcx + 0x44], 0x40
je 0x1400d104b
cmp byte [rcx + 0x41], 4
jb 0x1400d104b
lea edx, [rbx + 0x47]
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rbx, qword [0x1402f1100]
test rbx, rbx
jne 0x1400d1115
mov ecx, 0x95080
call fcn.1401544fc
mov rbx, rax
mov qword [rbp - 0x28], rax
test rax, rax
je 0x1400d108b
xor edx, edx
mov r8d, 0x95080
mov rcx, rax
call fcn.140145ad0
mov rcx, rbx
call fcn.1400caf90
jmp 0x1400d108e
mov rax, r14
mov qword [0x1402f1100], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402e7208], eax
cmp eax, 0xffffffff
jne 0x1400d1105
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d10dc
test byte [rcx + 0x44], 0x40
je 0x1400d10dc
cmp byte [rcx + 0x41], 4
jb 0x1400d10dc
mov edx, 0x34
mov r9d, eax
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140026620
mov rcx, qword [0x1402f1100]
test rcx, rcx
je 0x1400d10f9
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x140047d56.0]
mov rbx, r14
mov qword [0x1402f1100], rbx
jmp 0x1400d110c
mov rbx, qword [0x1402f1100]
test rbx, rbx
je 0x1400d16f6
call fcn.1400cff00
test eax, eax
jne 0x1400d165d
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d114d
test byte [rcx + 0x44], 0x40
je 0x1400d114d
cmp byte [rcx + 0x41], 4
jb 0x1400d114d
lea edx, [rax + 0x48]
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rcx, rdi
call fcn.1400a5490
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d1182
test byte [rcx + 0x44], 0x40
je 0x1400d1182
cmp byte [rcx + 0x41], 4
jb 0x1400d1182
mov edx, 0x49
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov qword [rbp - 0x30], r14
xor edx, edx
xor ecx, ecx
call fcn.1400178c0
mov rdi, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x1400d11d2
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d11cd
test byte [rcx + 0x44], 0x40
je 0x1400d11cd
cmp byte [rcx + 0x41], 2
jb 0x1400d11cd
lea edx, [rax + 0x41]
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rcx, qword [0x1402eb3e0]
jmp 0x1400d1253
mov rax, qword [rax]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140047d56.0]
test eax, eax
je 0x1400d1209
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d1237
test byte [rcx + 0x44], 0x40
je 0x1400d1237
cmp byte [rcx + 0x41], 2
jb 0x1400d1237
mov edx, 0x42
jmp 0x1400d1226
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d1237
test byte [rcx + 0x44], 0x40
je 0x1400d1237
cmp byte [rcx + 0x41], 5
jb 0x1400d1237
mov edx, 0x43
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
nop
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x140047d56.0]
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d1279
test byte [rcx + 0x44], 0x40
je 0x1400d1279
cmp byte [rcx + 0x41], 4
jb 0x1400d1279
mov edx, 0x4a
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
lea rax, [rbx + 0x94e48]
mov qword [rbp - 0x28], rax
lea rax, [0x1400cd8a0]
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 0x1400d12b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x9505c], eax
mov esi, dword [rbx + 0x9505c]
cmp byte [rbx + 0x18], 0
je 0x1400d168a
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d12ee
test byte [rcx + 0x44], 0x40
je 0x1400d12ee
cmp byte [rcx + 0x41], 4
jb 0x1400d12ee
mov edx, 0x4b
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov qword [rbp - 0x30], r14
xor edx, edx
xor ecx, ecx
call fcn.140015640
mov rdi, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x1400d133e
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d1339
test byte [rcx + 0x44], 0x40
je 0x1400d1339
cmp byte [rcx + 0x41], 2
jb 0x1400d1339
lea edx, [rax + 0x44]
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rcx, qword [0x1402eb3e0]
jmp 0x1400d13bf
mov rax, qword [rax]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140047d56.0]
test eax, eax
je 0x1400d1375
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d13a3
test byte [rcx + 0x44], 0x40
je 0x1400d13a3
cmp byte [rcx + 0x41], 2
jb 0x1400d13a3
mov edx, 0x45
jmp 0x1400d1392
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d13a3
test byte [rcx + 0x44], 0x40
je 0x1400d13a3
cmp byte [rcx + 0x41], 5
jb 0x1400d13a3
mov edx, 0x46
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
nop
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x140047d56.0]
mov rcx, qword [0x1402eb3e0]
cmp byte [rbx + 0x19], 0
je 0x1400d15a1
cmp rcx, r15
je 0x1400d13ef
test byte [rcx + 0x44], 0x40
je 0x1400d13ef
cmp byte [rcx + 0x41], 4
jb 0x1400d13ef
mov edx, 0x4c
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
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.140014d00
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x1400d1451
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d144f
test byte [rcx + 0x44], 0x40
je 0x1400d144f
cmp byte [rcx + 0x41], 2
jb 0x1400d144f
lea edx, [rax + 0x3e]
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
nop
jmp 0x1400d14cf
mov rax, qword [rax]
lea r8, [rbp - 0x28]
mov edx, 2
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140047d56.0]
test eax, eax
je 0x1400d148c
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d14ba
test byte [rcx + 0x44], 0x40
je 0x1400d14ba
cmp byte [rcx + 0x41], 2
jb 0x1400d14ba
mov edx, 0x3f
jmp 0x1400d14a9
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d14ba
test byte [rcx + 0x44], 0x40
je 0x1400d14ba
cmp byte [rcx + 0x41], 5
jb 0x1400d14ba
mov edx, 0x40
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
nop
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [case.0x140047d56.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.14000b760
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x1400d1523
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d1521
test byte [rcx + 0x44], 0x40
je 0x1400d1521
cmp byte [rcx + 0x41], 2
jb 0x1400d1521
lea edx, [rax + 0x39]
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
nop
jmp 0x1400d15a1
mov rax, qword [rax]
lea r8, [rbp - 0x28]
mov edx, 2
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140047d56.0]
test eax, eax
je 0x1400d155e
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d158c
test byte [rcx + 0x44], 0x40
je 0x1400d158c
cmp byte [rcx + 0x41], 2
jb 0x1400d158c
mov edx, 0x3a
jmp 0x1400d157b
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d158c
test byte [rcx + 0x44], 0x40
je 0x1400d158c
cmp byte [rcx + 0x41], 5
jb 0x1400d158c
mov edx, 0x3b
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
nop
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [case.0x140047d56.0]
mov qword [rbp - 0x30], r14
xor edx, edx
xor ecx, ecx
call fcn.14000b880
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x1400d15f1
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d15ec
test byte [rcx + 0x44], 0x40
je 0x1400d15ec
cmp byte [rcx + 0x41], 2
jb 0x1400d15ec
lea edx, [rax + 0x3c]
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rcx, qword [0x1402eb3e0]
jmp 0x1400d1691
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.0x140047d56.0]
test eax, eax
je 0x1400d1646
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d1646
test byte [rcx + 0x44], 0x40
je 0x1400d1646
cmp byte [rcx + 0x41], 2
jb 0x1400d1646
mov edx, 0x3d
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
nop
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [case.0x140047d56.0]
jmp 0x1400d168a
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d16b7
test byte [rcx + 0x44], 0x40
je 0x1400d1691
cmp byte [rcx + 0x41], 4
jb 0x1400d1691
mov edx, 0x4d
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rcx, qword [0x1402eb3e0]
cmp rcx, r15
je 0x1400d16b7
test byte [rcx + 0x44], 0x40
je 0x1400d16b7
cmp byte [rcx + 0x41], 4
jb 0x1400d16b7
mov edx, 0x4e
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
call fcn.1400ce5b0
mov rcx, qword [0x1402f1100]
test rcx, rcx
je 0x1400d16d9
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x140047d56.0]
mov ecx, dword [0x1402e7208]
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1402e7208], 0xffffffff
mov qword [0x1402f1100], r14
mov qword [0x1402f1028], r14
call fcn.1400d0d30
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140154650
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