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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3c8]
sub rsp, 0x4a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r14d, r9d
mov rsi, r8
mov bl, dl
mov edi, ecx
mov r15, qword [rbp + 0x400]
mov r12, qword [rbp + 0x408]
lea rax, [0x140008718]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetLocalTime]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentThreadId]
mov dword [rsp + 0x48], eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcessId]
mov dword [rsp + 0x4c], eax
mov byte [rsp + 0x50], bl
lea rax, [0x1400086f8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x60], rsi
mov rax, qword [rbp + 0x3f0]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], r14d
xor r13d, r13d
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
mov ecx, dword [rbp + 0x3f8]
test ecx, ecx
jns 0x140004ed8
mov dword [rsp + 0x74], ecx
jmp 0x140004ee9
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x78], r13
mov rdi, r13
mov r14d, 0x80
add r14, r14
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140004fa2
mov rcx, r14
shr rcx, 1
lea rax, [rcx - 1]
mov ebx, r13d
mov edx, 0x80070057
cmp rax, 0x7ffffffe
cmova ebx, edx
test ebx, ebx
js 0x140004f72
mov ebx, r13d
lea rsi, [rcx - 1]
mov r9, r12
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__vsnwprintf]
test eax, eax
js 0x140004f66
cdqe
cmp rax, rsi
ja 0x140004f66
jne 0x140004f7b
mov word [rdi + rsi*2], r13w
jmp 0x140004f7b
mov word [rdi + rsi*2], r13w
mov ebx, 0x8007007a
jmp 0x140004f7b
test rcx, rcx
je 0x140004f7b
mov word [rdi], r13w
cmp ebx, 0x8007007a
je 0x140004ef7
test ebx, ebx
jns 0x140004f96
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
jmp 0x140004f9e
mov qword [rsp + 0x78], rdi
mov ebx, r13d
test ebx, ebx
jns 0x140004fae
lea rax, str.__Unable_to_format_message__
mov qword [rsp + 0x78], rax
mov edi, 0x200
cmp byte [0x14000f6d8], r13b
je 0x140005044
lea rcx, [0x14000d368]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1400084d0]
mov r8d, edi
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call rbx
cmp eax, 0x8007007a
jne 0x14000501b
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [0x1400084d0]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call rbx
test eax, eax
js 0x140005037
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_OutputDebugStringW]
lea rcx, [0x14000a46c]
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_OutputDebugStringW]
lea rcx, [0x14000d368]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
lea rdx, [rsp + 0x30]
call fcn.140005348
lea rcx, [rsp + 0x30]
call fcn.1400062c8
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1400084d0]
mov r8, rdi
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call rbx
cmp eax, 0x8007007a
jne 0x1400050a6
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [0x1400084d0]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call rbx
test eax, eax
js 0x1400050e9
mov sil, byte [rsp + 0x50]
mov r14, qword [rsp + 0x20]
mov ecx, dword [0x14000f734]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x1400050e9
mov rbx, qword [rdi]
mov rcx, rbx
call qword [0x1400084d0]
mov r8, r14
mov dl, sil
mov rcx, qword [rdi + 8]
call rbx
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x1400050c8
lea rcx, [rsp + 0x30]
call fcn.1400049f8
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140006900
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret