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 [0x1402d7d18]
xor rax, rsp
mov qword [rbp - 8], rax
xor r14d, r14d
mov qword [0x1402e07a0], r14
lea rax, [0x1402e07b8]
mov qword [0x1402e0790], rax
mov qword [0x1402e07a8], 1
mov qword [0x1402e07c8], r14
lea rax, [0x1402e07e0]
mov qword [0x1402e07b8], rax
mov qword [0x1402e07d0], 1
mov qword [0x1402e07f0], r14
mov qword [0x1402e07e0], r14
mov qword [0x1402e07f8], 1
lea rax, [0x14028a818]
mov qword [0x1402e0778], rax
lea rax, [0x14028a7f8]
mov qword [0x1402e0780], rax
lea rax, [0x14028a808]
mov qword [0x1402e0788], rax
lea rbx, [0x1402e0790]
mov qword [0x1402daa50], rbx
lea rdi, [0x1402e0778]
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 [0x1402e0810], r14
mov qword [0x1402e0808], r14
lea rcx, [0x1402e0818]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rdi, [0x1402e0808]
mov qword [0x1402e0698], rdi
lea r15, [0x1402daa50]
mov rcx, qword [0x1402daa50]
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, [0x1402656a8]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rbx, qword [0x1402e0770]
test rbx, rbx
jne 0x1400d1115
mov ecx, 0x95080
call fcn.14015450c
mov rbx, rax
mov qword [rbp - 0x28], rax
test rax, rax
je 0x1400d108b
xor edx, edx
mov r8d, 0x95080
mov rcx, rax
call fcn.140145ae0
mov rcx, rbx
call fcn.1400caf90
jmp 0x1400d108e
mov rax, r14
mov qword [0x1402e0770], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402d7208], eax
cmp eax, 0xffffffff
jne 0x1400d1105
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1402daa50]
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, [0x1402656a8]
mov rcx, qword [rcx + 0x38]
call fcn.140026620
mov rcx, qword [0x1402e0770]
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 [0x1402e0770], rbx
jmp 0x1400d110c
mov rbx, qword [0x1402e0770]
test rbx, rbx
je 0x1400d16f6
call fcn.1400cff00
test eax, eax
jne 0x1400d165d
mov rcx, qword [0x1402daa50]
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, [0x1402656a8]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rcx, rdi
call fcn.1400a5490
mov rcx, qword [0x1402daa50]
cmp rcx, r15
je 0x1400d1182
test byte [rcx + 0x44], 0x40
je 0x1400d1182
cmp byte [rcx + 0x41], 4
jb 0x1400d1182
mov edx, 0x49
lea r8, [0x1402656a8]
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 [0x1402daa50]
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, [0x1402656a8]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rcx, qword [0x1402daa50]
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 [0x1402daa50]
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 [0x1402daa50]
cmp rcx, r15
je 0x1400d1237
test byte [rcx + 0x44], 0x40
je 0x1400d1237
cmp byte [rcx + 0x41], 5
jb 0x1400d1237
mov edx, 0x43
lea r8, [0x1402656a8]
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 [0x1402daa50]
cmp rcx, r15
je 0x1400d1279
test byte [rcx + 0x44], 0x40
je 0x1400d1279
cmp byte [rcx + 0x41], 4
jb 0x1400d1279
mov edx, 0x4a
lea r8, [0x1402656a8]
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 [0x1402daa50]
cmp rcx, r15
je 0x1400d12ee
test byte [rcx + 0x44], 0x40
je 0x1400d12ee
cmp byte [rcx + 0x41], 4
jb 0x1400d12ee
mov edx, 0x4b
lea r8, [0x1402656a8]
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 [0x1402daa50]
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, [0x1402656a8]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rcx, qword [0x1402daa50]
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 [0x1402daa50]
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 [0x1402daa50]
cmp rcx, r15
je 0x1400d13a3
test byte [rcx + 0x44], 0x40
je 0x1400d13a3
cmp byte [rcx + 0x41], 5
jb 0x1400d13a3
mov edx, 0x46
lea r8, [0x1402656a8]
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 [0x1402daa50]
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, [0x1402656a8]
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 [0x1402daa50]
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, [0x1402656a8]
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 [0x1402daa50]
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 [0x1402daa50]
cmp rcx, r15
je 0x1400d14ba
test byte [rcx + 0x44], 0x40
je 0x1400d14ba
cmp byte [rcx + 0x41], 5
jb 0x1400d14ba
mov edx, 0x40
lea r8, [0x1402656a8]
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 [0x1402daa50]
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, [0x1402656a8]
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 [0x1402daa50]
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 [0x1402daa50]
cmp rcx, r15
je 0x1400d158c
test byte [rcx + 0x44], 0x40
je 0x1400d158c
cmp byte [rcx + 0x41], 5
jb 0x1400d158c
mov edx, 0x3b
lea r8, [0x1402656a8]
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 [0x1402daa50]
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, [0x1402656a8]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rcx, qword [0x1402daa50]
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 [0x1402daa50]
cmp rcx, r15
je 0x1400d1646
test byte [rcx + 0x44], 0x40
je 0x1400d1646
cmp byte [rcx + 0x41], 2
jb 0x1400d1646
mov edx, 0x3d
lea r8, [0x1402656a8]
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 [0x1402daa50]
cmp rcx, r15
je 0x1400d16b7
test byte [rcx + 0x44], 0x40
je 0x1400d1691
cmp byte [rcx + 0x41], 4
jb 0x1400d1691
mov edx, 0x4d
lea r8, [0x1402656a8]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rcx, qword [0x1402daa50]
cmp rcx, r15
je 0x1400d16b7
test byte [rcx + 0x44], 0x40
je 0x1400d16b7
cmp byte [rcx + 0x41], 4
jb 0x1400d16b7
mov edx, 0x4e
lea r8, [0x1402656a8]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
call fcn.1400ce5b0
mov rcx, qword [0x1402e0770]
test rcx, rcx
je 0x1400d16d9
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x140047d56.0]
mov ecx, dword [0x1402d7208]
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1402d7208], 0xffffffff
mov qword [0x1402e0770], r14
mov qword [0x1402e0698], r14
call fcn.1400d0d30
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140154660
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