Function at 0x1400b1910
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 [0x1402a7d08]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r13, r9
mov r14, r8
mov qword [rsp + 0x68], r8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rax, [0x1402aa8a0]
mov rcx, qword [0x1402aa8a0]
cmp rcx, rax
je 0x1400b19a2
test dword [rcx + 0x44], 0x4000
je 0x1400b19a2
cmp byte [rcx + 0x41], 4
jb 0x1400b19a2
mov edx, 0x23
lea rax, str.entry
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1da
lea r9, str.D:qba2workspace2936SSE_Storage_NGSAImplementation_sourcecommonDatabaseDatabase.h
lea r8, [0x140232ec8]
mov rcx, qword [rcx + 0x38]
call fcn.1400971d0
xor eax, eax
mov r15d, eax
mov qword [rsp + 0x40], rax
mov r12d, eax
mov dword [rsp + 0x30], eax
movzx ebx, byte [rbp + 0x7f]
movzx r9d, bl
mov r8, r13
mov rdx, r14
mov rcx, rdi
call fcn.1400b0870
cmp eax, 0x65
jne 0x1400b1fd3
mov rdi, qword [rbp + 0x77]
lea rdx, 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 rax, qword [rsp + 0x38]
mov qword [rbp - 0x29], rax
mov word [rbp - 0x21], 0
xor eax, eax
mov qword [rbp - 0x19], rax
mov byte [rbp - 9], 1
mov qword [rbp - 1], rdx
mov dword [rbp + 7], 0x1e6
lea r9, [0x14022e9d0]
mov r8d, 0x1e6
lea rcx, [rbp - 0x29]
call fcn.1400bc8e0
mov rcx, qword [0x1402b0640]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x140047660.0]
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rbp - 0x11], rax
test rax, rax
jne 0x1400b1a6c
xor r8d, r8d
lea rdx, str.Retrieving_thread_context_failed._Queuing
lea rcx, [rbp - 0x29]
call fcn.1400bc870
jmp 0x1400b1bad
mov r14d, 0x65
lea rax, [0x1402b05f8]
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 0x1400b1ac9
mov rax, qword [0x1402b05e8]
test rax, rax
jne 0x1400b1ab4
lea rax, [rbp - 0x29]
mov qword [0x1402b05e0], rax
lea rax, [rbp - 0x29]
mov qword [0x1402b05e8], rax
jmp 0x1400b1b00
lea rcx, [rbp - 0x29]
mov qword [rax + 0x10], rcx
lea rax, [rbp - 0x29]
mov qword [0x1402b05e8], rax
jmp 0x1400b1b00
mov rax, qword [0x1402b05d8]
test rax, rax
jne 0x1400b1aed
lea rax, [rbp - 0x29]
mov qword [0x1402b05d8], rax
lea rax, [rbp - 0x29]
mov qword [0x1402b05d0], rax
jmp 0x1400b1b00
lea rcx, [rbp - 0x29]
mov qword [rax + 0x10], rcx
lea rax, [rbp - 0x29]
mov qword [0x1402b05d8], rax
mov rax, qword [0x1402b05b0]
inc rax
mov qword [0x1402b05b0], rax
cmp byte [0x1402b05c8], 0
jne 0x1400b1b26
lea rcx, [rbp - 0x29]
call fcn.14007e640
mov r14d, eax
mov byte [rbp - 0x51], 0
lea rcx, [0x1402b05f8]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp r14d, 0x65
je 0x1400b1b50
mov r8d, r14d
lea rdx, str.Begin
lea rcx, [rbp - 0x29]
call fcn.1400bc870
lea r9, str.WAITTING
mov r8d, 0x1e6
lea rdx, str.Database::performQuery
lea rcx, [rbp - 0x29]
call fcn.1400bc8e0
mov rax, qword [rbp - 0x11]
mov edx, 0xffffffff
mov rcx, qword [rax]
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.1400bc8e0
mov rax, qword [0x1402b05c0]
inc rax
mov qword [0x1402b05c0], rax
mov r14, qword [rsi]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, r14
call fcn.14002ab90
test eax, eax
jne 0x1400b1be0
lea edx, [rax + 2]
mov r8d, 0x400
mov rcx, r14
call fcn.14002ab90
test eax, eax
jne 0x1400b1be0
mov rcx, r14
call fcn.14002afe0
cmp eax, 0x65
jne 0x1400b1cd2
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x18]
call fcn.14016b380
movsxd r15, eax
mov rcx, qword [r13 + 8]
mov rax, qword [rcx]
cmp rax, r15
jae 0x1400b1c10
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 0x1400b1c4a
lea r9, str.COMMIT
mov r8d, dword [rbp + 7]
mov rdx, qword [rbp - 1]
lea rcx, [rbp - 0x29]
call fcn.1400bc8e0
mov rcx, qword [rbp - 0x29]
call fcn.1400bc140
mov r14d, eax
lea rax, [0x1402b05f8]
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.14007e640
mov r12d, eax
mov byte [rbp - 0x41], 0
lea rcx, [0x1402b05f8]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp r14d, 0x65
je 0x1400b1c98
mov r8d, r14d
lea rdx, str.Commit
lea rcx, [rbp - 0x29]
call fcn.1400bc870
cmp r12d, 0x65
je 0x1400b1cb2
mov r8d, r12d
lea rdx, str.Begin
lea rcx, [rbp - 0x29]
call fcn.1400bc870
nop
cmp r15, 0x400
jb 0x1400b1e99
mov rax, qword [r13 + 8]
cmp qword [rax], 0
jne 0x1400b1eb4
jmp 0x1400b1e99
mov byte [rbp - 0x21], 1
cmp byte [rbp - 9], 0
je 0x1400b1d15
lea r9, str.ROLLBACK
mov r8d, dword [rbp + 7]
mov rdx, qword [rbp - 1]
lea rcx, [rbp - 0x29]
call fcn.1400bc8e0
mov rcx, qword [rbp - 0x29]
call fcn.1400bc6a0
cmp eax, 0x65
je 0x1400b1d15
mov r8d, eax
lea rdx, str.Rollback
lea rcx, [rbp - 0x29]
call fcn.1400bc870
lea rax, [0x1402b05f8]
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.14007e640
mov r14d, eax
mov byte [rbp - 0x31], 0
lea rcx, [0x1402b05f8]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp r14d, 0x65
je 0x1400b1d64
mov r8d, r14d
lea rdx, str.Begin
lea rcx, [rbp - 0x29]
call fcn.1400bc870
nop
mov rcx, qword [0x1402aa8a0]
lea rax, [0x1402aa8a0]
cmp rcx, rax
je 0x1400b1db6
test dword [rcx + 0x44], 0x4000
je 0x1400b1db6
cmp byte [rcx + 0x41], 3
jb 0x1400b1db6
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:qba2workspace2936SSE_Storage_NGSAImplementation_sourcecommonDatabaseDatabase.h
lea r8, [0x140232ec8]
mov rcx, qword [rcx + 0x38]
call fcn.1400971d0
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
mov rax, qword [rsp + 0x38]
cmp r15, rcx
jne 0x1400b1dcc
add r12d, r12d
jmp 0x1400b1dd3
mov r12d, dword [rax + 0x4f0]
mov dword [rsp + 0x30], r12d
cmp r15, rcx
cmovne r15, rcx
mov qword [rsp + 0x40], r15
cmp r12d, dword [rax + 0x4f4]
jb 0x1400b1e90
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
xor r8d, r8d
lea rdx, [0x14025b7ec]
lea rcx, [rsp + 0x48]
call fcn.140007240
nop
mov rcx, qword [0x1402b0640]
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
mov rax, qword [rax + 0x98]
call qword [case.0x140047660.0]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400b1e7c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b1e77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b2000
call fcn.14013ff64
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
mov ecx, r12d
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.1400b0870
cmp eax, 0x65
jne 0x1400b1ef2
cmp byte [rbp - 0x21], 0
jne 0x1400b1ec4
lea rcx, [rbp - 0x29]
call fcn.140096910
nop
mov rax, qword [r13 + 8]
cmp qword [rax], 0
je 0x1400b1fd3
lea rcx, [rdi + 0x58]
call fcn.1400d1af0
test al, al
jne 0x1400b1fd3
mov r15, qword [rsp + 0x40]
mov r12d, dword [rsp + 0x30]
jmp 0x1400b19d6
mov rcx, qword [0x1402aa8a0]
lea rax, [0x1402aa8a0]
cmp rcx, rax
je 0x1400b1f44
test dword [rcx + 0x44], 0x4000
je 0x1400b1f44
cmp byte [rcx + 0x41], 2
jb 0x1400b1f44
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:qba2workspace2936SSE_Storage_NGSAImplementation_sourcecommonDatabaseDatabase.h
lea r8, [0x140232ec8]
mov rcx, qword [rcx + 0x38]
call fcn.1400971d0
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], 7
mov word [rbp - 0x79], ax
xor r8d, r8d
lea rdx, [0x14025b7ec]
lea rcx, [rbp - 0x79]
call fcn.140007240
nop
mov rcx, qword [0x1402b0640]
mov rax, qword [rcx]
lea rdx, [rbp - 0x79]
mov rax, qword [rax + 0x98]
call qword [case.0x140047660.0]
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 8
jb 0x1400b1fc3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b1fbd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b1ffa
call fcn.14013ff64
nop
cmp byte [rbp - 0x21], 0
jne 0x1400b1fd3
lea rcx, [rbp - 0x29]
call fcn.140096910
nop
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140140100
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.1400e0284
nop
call fcn.1400e0284
int3