Function at 0x1400072dc
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 r13
push r14
sub rsp, 0x850
mov rax, qword [0x14000b110]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [0x14000c502], 0
mov rbx, rcx
mov r12d, 0x200
mov r13d, 0x8007007a
je 0x140007383
lea rcx, [0x14000b410]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx]
lea r11, [rsp + 0x40]
lea rdx, [rsp + 0x40]
mov r8, r12
mov rcx, rbx
mov qword [rsp + 0x30], r11
call qword [rax + 0x10]
cmp eax, r13d
jne 0x14000735a
mov rax, qword [rbx]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [rax + 8]
test eax, eax
js 0x140007376
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x14000319c]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x14000b410]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14000b480]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x14000b138]
cmp dword [0x14000c7e8], esi
je 0x140007466
mov rcx, 0xffffffffffffffff
mov eax, 8
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.1400080ec
mov rdi, rax
test rax, rax
je 0x140007466
mov r8, rsi
xor edx, edx
mov rcx, rax
shl r8, 3
call sub.msvcrt.dll_memset
mov r8d, dword [0x14000c7e8]
xor ebp, ebp
xor r12d, r12d
test r8d, r8d
je 0x14000743f
mov eax, dword [0x14000c7ec]
xor edx, edx
movsxd r13, ebp
mov rcx, qword [rdi + r13*8]
add eax, r12d
div r8d
mov r14d, edx
test rcx, rcx
je 0x140007419
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov r8d, dword [0x14000c7e8]
mov rax, qword [0x14000c7e0]
xor edx, edx
inc r12d
mov rcx, qword [rax + r14*8]
lea eax, [rbp + 1]
div esi
mov qword [rdi + r13*8], rcx
mov ebp, edx
cmp r12d, r8d
jb 0x1400073eb
mov r13d, 0x8007007a
mov rcx, qword [0x14000c7e0]
call fcn.14000812c
mov qword [0x14000c7e0], rdi
mov dword [0x14000c7e8], esi
mov dword [0x14000c7ec], ebp
mov r12d, 0x200
jmp 0x14000746d
mov rdi, qword [0x14000c7e0]
test rdi, rdi
je 0x1400074cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
mov rdi, rax
test rax, rax
je 0x1400074cc
mov r8d, dword [0x14000c7ec]
mov r9, qword [0x14000c7e0]
mov rcx, qword [r9 + r8*8]
test rcx, rcx
je 0x1400074b3
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov r8d, dword [0x14000c7ec]
mov r9, qword [0x14000c7e0]
mov eax, r8d
xor edx, edx
mov qword [r9 + rax*8], rdi
lea eax, [r8 + 1]
div dword [0x14000c7e8]
mov dword [0x14000c7ec], edx
lea rcx, [0x14000b480]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14000b448]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x14000c7f0], 0
je 0x140007599
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9, qword [0x14000c7f0]
lea r8, [0x1400039a8]
lea rcx, [rsp + 0x40]
mov edx, 0x20a
mov dword [rsp + 0x20], eax
call fcn.140003eb8
test eax, eax
js 0x140007599
lea rdx, [0x1400039c8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wfopen]
mov rdi, rax
test rax, rax
je 0x140007599
mov r9, qword [rbx]
lea rax, [rsp + 0x440]
lea rdx, [rsp + 0x440]
mov r8, r12
mov rcx, rbx
mov qword [rsp + 0x30], rax
call qword [r9 + 0x10]
cmp eax, r13d
jne 0x14000756e
mov rax, qword [rbx]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [rax + 8]
test eax, eax
js 0x140007590
mov r8, qword [rsp + 0x30]
lea rdx, [0x1400039d0]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fwprintf]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fflush]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fclose]
lea rcx, [0x14000b448]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rbx]
lea r11, [rsp + 0x440]
lea rdx, [rsp + 0x440]
mov r8, r12
mov rcx, rbx
mov qword [rsp + 0x30], r11
call qword [rax + 0x10]
cmp eax, r13d
jne 0x1400075da
mov rax, qword [rbx]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [rax + 8]
test eax, eax
js 0x140007610
mov ecx, dword [0x14000c844]
mov dil, byte [rbx + 0x20]
mov rsi, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140007610
mov rcx, qword [rbx + 8]
mov r8, rsi
mov dl, dil
call qword [rbx]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400075fb
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400084d0
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret