Function at 0x140004e14
Capabilities:
Get thread local storage value
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x440
mov rax, qword [0x14000d3b8]
xor rax, rsp
mov qword [rsp + 0x430], rax
cmp byte [0x14000f6b4], 0
mov rbx, rcx
je 0x140004ec2
lea rcx, [0x14000d330]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
lea rax, [rsp + 0x30]
mov r8d, 0x200
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [0x1400088e8]
cmp eax, 0x8007007a
jne 0x140004e99
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400088e8]
test eax, eax
js 0x140004eb5
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_OutputDebugStringW]
lea rcx, [0x14000a52c]
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_OutputDebugStringW]
lea rcx, [0x14000d330]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
lea rcx, [0x14000d2f8]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
mov esi, dword [0x14000d3d4]
cmp dword [0x14000f6bc], esi
je 0x140004fa0
mov rcx, 0xffffffffffffffff
mov eax, 8
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.1400062ac
mov rdi, rax
test rax, rax
je 0x140004fa0
mov r8d, esi
xor edx, edx
shl r8, 3
mov rcx, rax
call sub.msvcrt.dll_memset
mov r8d, dword [0x14000f6bc]
xor ebp, ebp
xor r14d, r14d
test r8d, r8d
je 0x140004f7f
mov eax, dword [0x14000f6b8]
xor edx, edx
add eax, r14d
movsxd r15, ebp
div r8d
mov rcx, qword [rdi + r15*8]
mov r12d, edx
test rcx, rcx
je 0x140004f5f
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [0x1400088e8]
mov r8d, dword [0x14000f6bc]
mov rax, qword [0x14000f6c0]
xor edx, edx
inc r14d
mov rcx, qword [rax + r12*8]
lea eax, [rbp + 1]
div esi
mov qword [rdi + r15*8], rcx
mov ebp, edx
cmp r14d, r8d
jb 0x140004f2a
mov rcx, qword [0x14000f6c0]
call fcn.1400062ec
mov qword [0x14000f6c0], rdi
mov dword [0x14000f6bc], esi
mov dword [0x14000f6b8], ebp
jmp 0x140004fa7
mov rdi, qword [0x14000f6c0]
test rdi, rdi
je 0x140005013
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x1400088e8]
mov rdi, rax
test rax, rax
je 0x140005013
mov r8d, dword [0x14000f6b8]
mov r9, qword [0x14000f6c0]
mov rcx, qword [r9 + r8*8]
test rcx, rcx
je 0x140004ffa
mov r8, qword [rcx]
mov edx, 1
mov rax, qword [r8]
call qword [0x1400088e8]
mov r8d, dword [0x14000f6b8]
mov r9, qword [0x14000f6c0]
mov eax, r8d
xor edx, edx
mov qword [r9 + rax*8], rdi
lea eax, [r8 + 1]
div dword [0x14000f6bc]
mov dword [0x14000f6b8], edx
lea rcx, [0x14000d2f8]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
mov rcx, rbx
call fcn.1400060a8
lea rax, [rsp + 0x30]
mov r8d, 0x200
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [0x1400088e8]
cmp eax, 0x8007007a
jne 0x140005069
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400088e8]
test eax, eax
js 0x1400050a6
mov ecx, dword [0x14000f70c]
mov dil, byte [rbx + 0x20]
mov rsi, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400050a6
mov rcx, qword [rbx + 8]
mov r8, rsi
mov rax, qword [rbx]
mov dl, dil
call qword [0x1400088e8]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000508a
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400066d0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret