Function at 0x140094c10
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 [0x1402d7d18]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r13, r9
mov rsi, r8
mov qword [rsp + 0x68], r8
mov rbx, rdx
mov r12, rcx
lea rax, [0x1402daa50]
lea r8, str.entry
mov rcx, qword [0x1402daa50]
cmp rcx, rax
je 0x140094c9a
test byte [rcx + 0x44], 4
je 0x140094c9a
cmp byte [rcx + 0x41], 4
jb 0x140094c9a
mov edx, 0xe
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], 0x1da
lea r9, str.D:qba2workspace7817SSE_Storage_NGSAImplementation_sourcecommonDatabaseDatabase.h
lea r8, [0x140261db0]
mov rcx, qword [rcx + 0x38]
call fcn.140099c10
xor eax, eax
mov r15d, eax
mov qword [rsp + 0x38], rax
mov r14d, eax
mov dword [rsp + 0x30], eax
movzx edi, byte [rbp + 0x7f]
movzx r9d, dil
mov r8, r13
mov rdx, rsi
mov rcx, r12
call fcn.140094630
cmp eax, 0x65
jne 0x140095491
lea rsi, [rbx + 0x1d0]
mov qword [rsp + 0x40], rsi
mov rbx, 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], r12
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, [0x14025f970]
mov r8d, 0x1e6
mov rdx, rcx
lea rcx, [rbp - 0x29]
call fcn.1400bfee0
mov rcx, qword [0x1402e0770]
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 0x140094d6a
xor r8d, r8d
lea rdx, str.Retrieving_thread_context_failed._Queuing
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
jmp 0x140094ead
mov esi, 0x65
lea rax, [0x1402e0728]
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 0x140094dc6
mov rax, qword [0x1402e0718]
test rax, rax
jne 0x140094db1
lea rax, [rbp - 0x29]
mov qword [0x1402e0710], rax
lea rax, [rbp - 0x29]
mov qword [0x1402e0718], rax
jmp 0x140094dfd
lea rcx, [rbp - 0x29]
mov qword [rax + 0x10], rcx
lea rax, [rbp - 0x29]
mov qword [0x1402e0718], rax
jmp 0x140094dfd
mov rax, qword [0x1402e0708]
test rax, rax
jne 0x140094dea
lea rax, [rbp - 0x29]
mov qword [0x1402e0708], rax
lea rax, [rbp - 0x29]
mov qword [0x1402e0700], rax
jmp 0x140094dfd
lea rcx, [rbp - 0x29]
mov qword [rax + 0x10], rcx
lea rax, [rbp - 0x29]
mov qword [0x1402e0708], rax
mov rax, qword [0x1402e06e0]
inc rax
mov qword [0x1402e06e0], rax
cmp byte [0x1402e06f8], 0
jne 0x140094e22
lea rcx, [rbp - 0x29]
call fcn.14007fd90
mov esi, eax
mov byte [rbp - 0x51], 0
lea rcx, [0x1402e0728]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x65
je 0x140094e4b
mov r8d, esi
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 [0x1402e06f0]
inc rax
mov qword [0x1402e06f0], rax
mov rsi, qword [rsp + 0x40]
mov edx, 1
lea r8d, [rdx + 0x7f]
mov rcx, rsi
call fcn.14002acc0
test eax, eax
jne 0x140094eca
mov rcx, rsi
call fcn.14002afd0
cmp eax, 0x65
jne 0x140094fb5
mov rcx, qword [r12 + 0x18]
call fcn.1401889f0
movsxd r14, eax
mov rcx, qword [r13 + 8]
mov rax, qword [rcx]
cmp rax, r14
jae 0x140094ef6
mov qword [rcx], r14
mov rcx, qword [r13 + 8]
mov rax, qword [rcx]
sub rax, r14
mov qword [rcx], rax
mov byte [rbp - 0x21], 1
mov esi, 0x65
cmp byte [rbp - 9], 0
je 0x140094f2e
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 esi, eax
lea rax, [0x1402e0728]
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 r15d, eax
mov byte [rbp - 0x41], 0
lea rcx, [0x1402e0728]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x65
je 0x140094f7b
mov r8d, esi
lea rdx, str.Commit
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
cmp r15d, 0x65
je 0x140094f95
mov r8d, r15d
lea rdx, str.Begin
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
nop
cmp r14, 0x400
jb 0x140095171
mov rax, qword [r13 + 8]
cmp qword [rax], 0
jne 0x1400951f2
jmp 0x140095171
mov byte [rbp - 0x21], 1
cmp byte [rbp - 9], 0
je 0x140094ff8
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 0x140094ff8
mov r8d, eax
lea rdx, str.Rollback
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
lea rax, [0x1402e0728]
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 esi, eax
mov byte [rbp - 0x31], 0
lea rcx, [0x1402e0728]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x65
je 0x140095045
mov r8d, esi
lea rdx, str.Begin
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
nop
mov rcx, qword [0x1402daa50]
lea rax, [0x1402daa50]
cmp rcx, rax
je 0x140095094
test byte [rcx + 0x44], 4
je 0x140095094
cmp byte [rcx + 0x41], 3
jb 0x140095094
mov edx, 0xe
lea rax, str.SQL_query_error._Stalling_execution
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1f5
lea r9, str.D:qba2workspace7817SSE_Storage_NGSAImplementation_sourcecommonDatabaseDatabase.h
lea r8, [0x140261db0]
mov rcx, qword [rcx + 0x38]
call fcn.140099c10
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
cmp r15, rcx
jne 0x1400950a5
add r14d, r14d
jmp 0x1400950ad
mov r14d, dword [r12 + 0x4f0]
mov dword [rsp + 0x30], r14d
cmp r15, rcx
cmovne r15, rcx
mov qword [rsp + 0x38], r15
cmp r14d, dword [r12 + 0x4f4]
jb 0x140095168
xor esi, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], si
xor r8d, r8d
lea rdx, [0x14028ae7c]
lea rcx, [rsp + 0x48]
call fcn.140007240
nop
mov rcx, qword [0x1402e0770]
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 0x140095155
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140095150
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400954be
call fcn.1401544c8
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], si
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1402daa50]
lea rsi, [0x1402daa50]
cmp rcx, rsi
je 0x1400951c0
test byte [rcx + 0x44], 4
je 0x1400951c0
cmp byte [rcx + 0x41], 4
jb 0x1400951c0
mov edx, 0xe
lea rax, str.entry
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1bd
lea r9, str.D:qba2workspace7817SSE_Storage_NGSAImplementation_sourcecommonDatabaseDatabase.h
lea r8, [0x140261db0]
mov rcx, qword [rcx + 0x38]
call fcn.140099c10
movzx r8d, dil
mov rdx, qword [rsp + 0x68]
mov rcx, r12
call fcn.140094780
cmp eax, 0x65
jne 0x1400952f0
movzx r8d, dil
mov rdx, r13
mov rcx, r12
call fcn.140094780
cmp eax, 0x65
jne 0x1400952be
cmp byte [rbp - 0x21], 0
jne 0x14009527c
mov byte [rbp - 0x21], 1
cmp byte [rbp - 9], 0
je 0x14009523f
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 0x14009523f
mov r8d, eax
lea rdx, str.Rollback
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
lea r14, [0x1402e0728]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rbp - 0x29]
call fcn.14007fd90
mov esi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x65
je 0x14009527c
mov r8d, esi
lea rdx, str.Begin
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
nop
mov rax, qword [r13 + 8]
cmp qword [rax], 0
je 0x140095491
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x140047d56.0]
mov rcx, rax
call fcn.1400d4f00
test al, al
je 0x140095491
mov r14d, dword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
jmp 0x140094cda
mov rcx, qword [0x1402daa50]
cmp rcx, rsi
je 0x140095384
test byte [rcx + 0x44], 4
je 0x140095343
cmp byte [rcx + 0x41], 3
jb 0x140095343
lea rax, str.getting_left_records_failed
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1c8
jmp 0x140095320
mov rcx, qword [0x1402daa50]
cmp rcx, rsi
je 0x140095384
test byte [rcx + 0x44], 4
je 0x140095343
cmp byte [rcx + 0x41], 3
jb 0x140095343
lea rax, str.getting_total_records_failed
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1c1
lea r9, str.D:qba2workspace7817SSE_Storage_NGSAImplementation_sourcecommonDatabaseDatabase.h
lea r8, [0x140261db0]
mov edx, 0xe
mov rcx, qword [rcx + 0x38]
call fcn.140099c10
mov rcx, qword [0x1402daa50]
cmp rcx, rsi
je 0x140095384
test byte [rcx + 0x44], 4
je 0x140095384
cmp byte [rcx + 0x41], 2
jb 0x140095384
mov edx, 0xe
lea rax, str.Cannot_get_total_or_left_files_number
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x200
lea r9, str.D:qba2workspace7817SSE_Storage_NGSAImplementation_sourcecommonDatabaseDatabase.h
lea r8, [0x140261db0]
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, [0x14028ae7c]
lea rcx, [rbp - 0x79]
call fcn.140007240
nop
mov rcx, qword [0x1402e0770]
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 0x140095407
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140095401
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400954b8
call fcn.1401544c8
nop
cmp byte [rbp - 0x21], 0
jne 0x140095491
mov byte [rbp - 0x21], 1
cmp byte [rbp - 9], 0
je 0x140095454
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 0x140095454
mov r8d, eax
lea rdx, str.Rollback
lea rcx, [rbp - 0x29]
call fcn.1400bfe70
lea rdi, [0x1402e0728]
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 0x140095491
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.140154660
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.1400e3a70
nop
call fcn.1400e3a70
int3