Function at 0x1400b4110
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x100
mov rax, qword [0x1402e7d18]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r13, r9
mov rdi, r8
mov qword [rsp + 0x68], r8
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rcx
lea rax, [0x1402eb3e0]
mov rcx, qword [0x1402eb3e0]
cmp rcx, rax
je 0x1400b41a2
test dword [rcx + 0x44], 0x4000
je 0x1400b41a2
cmp byte [rcx + 0x41], 4
jb 0x1400b41a2
mov edx, 0x23
lea rax, str.entry
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1da
lea r9, str.D:qba2workspace17493SSE_Storage_NGSAImplementation_sourcecommonDatabaseDatabase.h
lea r8, [0x1402720d8]
mov rcx, qword [rcx + 0x38]
call fcn.140099c10
xor eax, eax
mov r12d, eax
mov qword [rsp + 0x40], rax
mov r15d, eax
mov dword [rsp + 0x30], eax
movzx ebx, byte [rbp + 0x7f]
movzx r9d, bl
mov r8, r13
mov rdx, rdi
mov rcx, r14
call fcn.1400b3740
cmp eax, 0x65
jne 0x1400b48d8
mov rdi, qword [rbp + 0x77]
lea rcx, str.Database::performQuery
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
mov qword [rbp - 0x29], r14
mov word [rbp - 0x21], ax
mov qword [rbp - 0x19], rax
mov byte [rbp - 9], 1
mov qword [rbp - 1], rcx
mov dword [rbp + 7], 0x1e6
lea r9, [0x14026dc30]
mov r8d, 0x1e6
mov rdx, rcx
lea rcx, [rbp - 0x29]
call fcn.1400bfee0
mov rcx, qword [0x1402f1100]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x140047d56.0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x11], rax
test rax, rax
jne 0x1400b4266
xor r8d, r8d
lea rdx, str.Retrieving_thread_context_failed._Queuing
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
jmp 0x1400b43a7
mov r14d, 0x65
lea rax, [0x1402f10b8]
mov qword [rbp - 0x59], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x51], 1
cmp byte [rbp - 0x20], 0
je 0x1400b42c3
mov rax, qword [0x1402f10a8]
test rax, rax
jne 0x1400b42ae
lea rax, [rbp - 0x29]
mov qword [0x1402f10a0], rax
lea rax, [rbp - 0x29]
mov qword [0x1402f10a8], rax
jmp 0x1400b42fa
lea rcx, [rbp - 0x29]
mov qword [rax + 0x10], rcx
lea rax, [rbp - 0x29]
mov qword [0x1402f10a8], rax
jmp 0x1400b42fa
mov rax, qword [0x1402f1098]
test rax, rax
jne 0x1400b42e7
lea rax, [rbp - 0x29]
mov qword [0x1402f1098], rax
lea rax, [rbp - 0x29]
mov qword [0x1402f1090], rax
jmp 0x1400b42fa
lea rcx, [rbp - 0x29]
mov qword [rax + 0x10], rcx
lea rax, [rbp - 0x29]
mov qword [0x1402f1098], rax
mov rax, qword [0x1402f1070]
inc rax
mov qword [0x1402f1070], rax
cmp byte [0x1402f1088], 0
jne 0x1400b4320
lea rcx, [rbp - 0x29]
call fcn.14007fd90
mov r14d, eax
mov byte [rbp - 0x51], 0
lea rcx, [0x1402f10b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp r14d, 0x65
je 0x1400b434a
mov r8d, r14d
lea rdx, str.Begin
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
lea r9, str.WAITTING
mov r8d, 0x1e6
lea rdx, str.Database::performQuery
lea rcx, [rbp - 0x29]
call fcn.1400bfee0
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x11]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r9, str.ENTERED
mov r8d, 0x1e6
lea rdx, str.Database::performQuery
lea rcx, [rbp - 0x29]
call fcn.1400bfee0
mov rax, qword [0x1402f1080]
inc rax
mov qword [0x1402f1080], rax
mov r14, qword [rsi]
mov edx, 1
movabs r8, 0x3fffffffffffffff
mov rcx, r14
call fcn.14002ab40
test eax, eax
jne 0x1400b43e2
lea edx, [rax + 2]
mov r8d, 0x400
mov rcx, r14
call fcn.14002ab40
test eax, eax
jne 0x1400b43e2
mov rcx, r14
call fcn.14002afd0
cmp eax, 0x65
jne 0x1400b44d4
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x18]
call fcn.1401868e0
movsxd r15, eax
mov rcx, qword [r13 + 8]
mov rax, qword [rcx]
cmp rax, r15
jae 0x1400b4412
mov qword [rcx], r15
mov rcx, qword [r13 + 8]
mov rax, qword [rcx]
sub rax, r15
mov qword [rcx], rax
mov byte [rbp - 0x21], 1
mov r14d, 0x65
cmp byte [rbp - 9], 0
je 0x1400b444c
lea r9, str.COMMIT
mov r8d, dword [rbp + 7]
mov rdx, qword [rbp - 1]
lea rcx, [rbp - 0x29]
call fcn.1400bfee0
mov rcx, qword [rbp - 0x29]
call fcn.1400bf740
mov r14d, eax
lea rax, [0x1402f10b8]
mov qword [rbp - 0x49], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x41], 1
lea rcx, [rbp - 0x29]
call fcn.14007fd90
mov r12d, eax
mov byte [rbp - 0x41], 0
lea rcx, [0x1402f10b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp r14d, 0x65
je 0x1400b449a
mov r8d, r14d
lea rdx, str.Commit
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
cmp r12d, 0x65
je 0x1400b44b4
mov r8d, r12d
lea rdx, str.Begin
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
nop
cmp r15, 0x400
jb 0x1400b469b
mov rax, qword [r13 + 8]
cmp qword [rax], 0
jne 0x1400b46ba
jmp 0x1400b469b
mov byte [rbp - 0x21], 1
cmp byte [rbp - 9], 0
je 0x1400b4517
lea r9, str.ROLLBACK
mov r8d, dword [rbp + 7]
mov rdx, qword [rbp - 1]
lea rcx, [rbp - 0x29]
call fcn.1400bfee0
mov rcx, qword [rbp - 0x29]
call fcn.1400bfca0
cmp eax, 0x65
je 0x1400b4517
mov r8d, eax
lea rdx, str.Rollback
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
lea rax, [0x1402f10b8]
mov qword [rbp - 0x39], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x31], 1
lea rcx, [rbp - 0x29]
call fcn.14007fd90
mov r14d, eax
mov byte [rbp - 0x31], 0
lea rcx, [0x1402f10b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp r14d, 0x65
je 0x1400b4566
mov r8d, r14d
lea rdx, str.Begin
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
nop
mov rcx, qword [0x1402eb3e0]
lea rax, [0x1402eb3e0]
cmp rcx, rax
je 0x1400b45b8
test dword [rcx + 0x44], 0x4000
je 0x1400b45b8
cmp byte [rcx + 0x41], 3
jb 0x1400b45b8
mov edx, 0x23
lea rax, str.SQL_query_error._Stalling_execution
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1f5
lea r9, str.D:qba2workspace17493SSE_Storage_NGSAImplementation_sourcecommonDatabaseDatabase.h
lea r8, [0x1402720d8]
mov rcx, qword [rcx + 0x38]
call fcn.140099c10
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
mov rax, qword [rsp + 0x38]
cmp r12, rcx
jne 0x1400b45ce
add r15d, r15d
jmp 0x1400b45d5
mov r15d, dword [rax + 0x4f0]
mov dword [rsp + 0x30], r15d
cmp r12, rcx
cmovne r12, rcx
mov qword [rsp + 0x40], r12
cmp r15d, dword [rax + 0x4f4]
jb 0x1400b4692
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
xor r8d, r8d
lea rdx, [0x14029a19c]
lea rcx, [rsp + 0x48]
call fcn.140007240
nop
mov rcx, qword [0x1402f1100]
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
mov rax, qword [rax + 0x98]
call qword [case.0x140047d56.0]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400b467e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b4679
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b4905
call fcn.1401544b8
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx r9d, bl
mov r8, r13
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call fcn.1400b3740
cmp eax, 0x65
jne 0x1400b4779
cmp byte [rbp - 0x21], 0
jne 0x1400b4746
mov byte [rbp - 0x21], 1
cmp byte [rbp - 9], 0
je 0x1400b4707
lea r9, str.ROLLBACK
mov r8d, dword [rbp + 7]
mov rdx, qword [rbp - 1]
lea rcx, [rbp - 0x29]
call fcn.1400bfee0
mov rcx, qword [rbp - 0x29]
call fcn.1400bfca0
cmp eax, 0x65
je 0x1400b4707
mov r8d, eax
lea rdx, str.Rollback
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
lea r15, [0x1402f10b8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rbp - 0x29]
call fcn.14007fd90
mov r14d, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp r14d, 0x65
je 0x1400b4746
mov r8d, r14d
lea rdx, str.Begin
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
nop
mov rax, qword [r13 + 8]
cmp qword [rax], 0
je 0x1400b48d8
lea rcx, [rdi + 0x58]
call fcn.1400d4f00
test al, al
jne 0x1400b48d8
mov r15d, dword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
jmp 0x1400b41d6
mov rcx, qword [0x1402eb3e0]
lea rax, [0x1402eb3e0]
cmp rcx, rax
je 0x1400b47cb
test dword [rcx + 0x44], 0x4000
je 0x1400b47cb
cmp byte [rcx + 0x41], 2
jb 0x1400b47cb
mov edx, 0x23
lea rax, str.Cannot_get_total_or_left_files_number
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x200
lea r9, str.D:qba2workspace17493SSE_Storage_NGSAImplementation_sourcecommonDatabaseDatabase.h
lea r8, [0x1402720d8]
mov rcx, qword [rcx + 0x38]
call fcn.140099c10
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], 7
mov word [rbp - 0x79], ax
xor r8d, r8d
lea rdx, [0x14029a19c]
lea rcx, [rbp - 0x79]
call fcn.140007240
nop
mov rcx, qword [0x1402f1100]
mov rax, qword [rcx]
lea rdx, [rbp - 0x79]
mov rax, qword [rax + 0x98]
call qword [case.0x140047d56.0]
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 8
jb 0x1400b484e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b4848
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b48ff
call fcn.1401544b8
nop
cmp byte [rbp - 0x21], 0
jne 0x1400b48d8
mov byte [rbp - 0x21], 1
cmp byte [rbp - 9], 0
je 0x1400b489b
lea r9, str.ROLLBACK
mov r8d, dword [rbp + 7]
mov rdx, qword [rbp - 1]
lea rcx, [rbp - 0x29]
call fcn.1400bfee0
mov rcx, qword [rbp - 0x29]
call fcn.1400bfca0
cmp eax, 0x65
je 0x1400b489b
mov r8d, eax
lea rdx, str.Rollback
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
lea rdi, [0x1402f10b8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rbp - 0x29]
call fcn.14007fd90
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0x65
je 0x1400b48d8
mov r8d, ebx
lea rdx, str.Begin
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
nop
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140154650
mov rbx, qword [rsp + 0x148]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400e3a60
nop
call fcn.1400e3a60
int3