Function at 0x48cc20
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov ecx, dword [0x006750f0]
cmp ecx, 0xffffffff
jne 0x48cc52
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x48cc3e
cmp qword [rax + 0x50], 0
mov rsi, qword [rax + 0x18]
je 0x48cd27
nop
mov r12, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rsi, rsi
mov r13, qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14, r12
je 0x48ccdf
nop word cs:[rax + rax]
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
test rcx, rcx
mov qword [rbx + 0x18], rax
je 0x48cf20
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdi, qword [rsi]
mov rbp, r12
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
call r12
mov r8, rdi
xor edx, edx
mov rcx, rax
call r13
call rbp
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rbx + 0x18]
test rsi, rsi
jne 0x48cc90
cmp qword [rbx + 0x50], 0
lea rdi, [rbx + 0x30]
je 0x48cd30
nop word [rax + rax]
mov rsi, qword [rbx + 0x40]
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x48cd09
mov rdx, qword [rsi + 0x38]
test rdx, rdx
je 0x48cd09
call qword [rsi + 0x28]
mov rdx, rdi
mov rcx, rsi
call fcn.0065ff60
mov rcx, rax
call fcn.00670500
sub qword [rbx + 0x50], 1
jne 0x48ccf0
mov rsi, qword [rbx + 0x18]
test rsi, rsi
jne 0x48cc70
lea rsi, [0x0072dbc8]
movabs rax, 0x7f0725e3c15730e2
mov rdi, qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov qword [rsp + 0x40], rax
lea r14, [rsp + 0x58]
mov byte [rsp + 0x48], 0
mov eax, esi
mov rbp, rsi
mov r12, rsi
shr al, 4
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x58], 0
lea r15d, [rax + 0x41]
mov rax, rsi
sar rax, 8
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x2d], al
mov rax, rsi
sar rax, 0xc
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x2e], al
mov rax, rsi
sar rax, 0x10
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x2f], al
mov rax, rsi
sar rax, 0x14
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x30], al
mov rax, rsi
sar rax, 0x18
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x31], al
mov rax, rsi
sar rax, 0x1c
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x32], al
mov rax, rsi
sar rax, 0x20
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x33], al
mov rax, rsi
sar rax, 0x24
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x34], al
mov rax, rsi
sar rax, 0x28
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x35], al
mov rax, rsi
sar rax, 0x2c
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x36], al
mov rax, rsi
sar rax, 0x30
and eax, 0xf
sar rbp, 0x34
sar r12, 0x38
add eax, 0x41
and ebp, 0xf
and r12d, 0xf
mov byte [rsp + 0x37], al
mov rax, rsi
add ebp, 0x41
shr rax, 0x3c
add r12d, 0x41
mov r13, rax
add r13d, 0x41
mov eax, dword [0x0072dbc8]
cmp eax, dword [rsp + 0x40]
je 0x48cec9
mov edx, dword [rsp + 0x44]
xor eax, eax
lock cmpxchg dword [0x0072dbc8], edx
test eax, eax
jne 0x48cf30
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x48cf80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
call fcn.004923a0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp byte [rsp + 0x48], 0
mov dword [0x006750f0], eax
je 0x48d1cd
mov eax, dword [rsp + 0x40]
xchg dword [0x0072dbc8], eax
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x48d3af
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x48cede
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x006750f0]
cmp ecx, 0xffffffff
je 0x48cef1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lock sub dword [rbx + 8], 1
jne 0x48cc3e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x48cc3e
mov rbp, r14
jmp 0x48ccc6
cmp byte [rsp + 0x48], 0
jne 0x48cf71
lock add dword [0x0072dbcc], 1
mov byte [rsp + 0x48], 1
mov eax, dword [0x0072dbc8]
cmp eax, dword [rsp + 0x40]
je 0x48cec9
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x48d190
xor r8d, r8d
mov edx, 0xffffffff
call rdi
jmp 0x48ce53
mov rcx, qword [rsp + 0x50]
jmp 0x48cf62
cmp byte [rsp + 0x58], 0
jne 0x48d14e
movabs rax, 0x437b5c6c61636f4c
movabs rdx, 0x2d32453033373531
mov ecx, 0x6761
mov qword [rsp + 0x58], rax
movabs rax, 0x3563342d43353431
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
movabs rax, 0x3234463335374342
movabs rdx, 0x332d353030422d65
mov qword [rsp + 0x78], rax
mov eax, esi
mov qword [rsp + 0x70], rdx
and eax, 0xf
movabs rdx, 0x636e6f2d7d353734
mov word [rsp + 0x8c], cx
add eax, 0x41
mov qword [rsp + 0x80], rdx
mov dword [rsp + 0x88], 0x6c662d65
mov byte [rsp + 0x8e], al
movzx eax, byte [rsp + 0x2d]
mov byte [rsp + 0x8f], r15b
mov byte [rsp + 0x90], al
movzx eax, byte [rsp + 0x2e]
mov byte [rsp + 0x91], al
movzx eax, byte [rsp + 0x2f]
mov byte [rsp + 0x92], al
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x93], al
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x94], al
movzx eax, byte [rsp + 0x32]
mov byte [rsp + 0x95], al
movzx eax, byte [rsp + 0x33]
mov byte [rsp + 0x96], al
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x97], al
movzx eax, byte [rsp + 0x35]
mov byte [rsp + 0x98], al
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x99], al
movzx eax, byte [rsp + 0x37]
mov byte [rsp + 0x9a], al
mov byte [rsp + 0x9b], bpl
mov byte [rsp + 0x9c], r12b
mov byte [rsp + 0x9d], r13b
mov byte [rsp + 0x9e], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov byte [rsp + 0xa6], 0
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0x9e], dl
mov edx, eax
shr dl, 4
add edx, 0x41
mov byte [rsp + 0x9f], dl
mov edx, eax
shr edx, 8
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa0], dl
mov edx, eax
shr edx, 0xc
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa1], dl
mov edx, eax
shr edx, 0x10
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa2], dl
mov edx, eax
shr edx, 0x14
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa3], dl
mov edx, eax
shr eax, 0x1c
shr edx, 0x18
add eax, 0x41
and edx, 0xf
mov byte [rsp + 0xa5], al
add edx, 0x41
mov byte [rsp + 0xa4], dl
xor edx, edx
mov ecx, 0x100002
lea r8, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov rcx, qword [rsp + 0x50]
mov rdi, rax
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x48d178
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
mov qword [rsp + 0x50], rdi
je 0x48ce8c
jmp 0x48ce83
cmp byte [rsp + 0x58], 0
je 0x48d1e7
mov r9, r14
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x48d1df
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
jmp 0x48ce53
lock add dword [0x0072dbcc], 1
mov byte [rsp + 0x48], 1
jmp 0x48cea8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48d1be
movabs rax, 0x437b5c6c61636f4c
movabs rdx, 0x2d32453033373531
mov dword [rsp + 0x88], 0x6c662d65
mov qword [rsp + 0x58], rax
movabs rax, 0x3563342d43353431
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
movabs rax, 0x3234463335374342
movabs rdx, 0x332d353030422d65
mov qword [rsp + 0x78], rax
mov eax, 0x6761
mov qword [rsp + 0x70], rdx
mov word [rsp + 0x8c], ax
mov eax, esi
movabs rdx, 0x636e6f2d7d353734
and eax, 0xf
mov qword [rsp + 0x80], rdx
mov byte [rsp + 0x8f], r15b
add eax, 0x41
mov byte [rsp + 0x8e], al
movzx eax, byte [rsp + 0x2d]
mov byte [rsp + 0x90], al
movzx eax, byte [rsp + 0x2e]
mov byte [rsp + 0x91], al
movzx eax, byte [rsp + 0x2f]
mov byte [rsp + 0x92], al
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x93], al
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x94], al
movzx eax, byte [rsp + 0x32]
mov byte [rsp + 0x95], al
movzx eax, byte [rsp + 0x33]
mov byte [rsp + 0x96], al
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x97], al
movzx eax, byte [rsp + 0x35]
mov byte [rsp + 0x98], al
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x99], al
movzx eax, byte [rsp + 0x37]
mov byte [rsp + 0x9a], al
mov byte [rsp + 0x9b], bpl
mov byte [rsp + 0x9c], r12b
mov byte [rsp + 0x9d], r13b
mov byte [rsp + 0x9e], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov byte [rsp + 0xa6], 0
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0x9e], dl
mov edx, eax
shr dl, 4
add edx, 0x41
mov byte [rsp + 0x9f], dl
mov edx, eax
shr edx, 8
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa0], dl
mov edx, eax
shr edx, 0xc
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa1], dl
mov edx, eax
shr edx, 0x10
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa2], dl
mov edx, eax
shr edx, 0x14
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa3], dl
mov edx, eax
shr eax, 0x1c
shr edx, 0x18
add eax, 0x41
and edx, 0xf
mov byte [rsp + 0xa5], al
add edx, 0x41
mov byte [rsp + 0xa4], dl
jmp 0x48d197
mov eax, dword [0x0072dbcc]
cmp eax, 1
jle 0x48cede
cmp byte [rsp + 0x58], 0
je 0x48d403
xor ecx, ecx
xor r8d, r8d
lea r9, [rsp + 0x58]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [rsp + 0x50]
mov rdi, rax
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x48d5cb
test rdi, rdi
mov qword [rsp + 0x50], rdi
je 0x48cede
jmp 0x48cec0
movabs rax, 0x437b5c6c61636f4c
movabs rdx, 0x2d32453033373531
mov dword [rsp + 0x88], 0x6c662d65
mov qword [rsp + 0x58], rax
movabs rax, 0x3563342d43353431
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
movabs rax, 0x3234463335374342
movabs rdx, 0x332d353030422d65
mov qword [rsp + 0x78], rax
mov eax, esi
mov qword [rsp + 0x70], rdx
and eax, 0xf
movabs rdx, 0x636e6f2d7d353734
mov byte [rsp + 0x8f], r15b
add eax, 0x41
mov qword [rsp + 0x80], rdx
mov edx, 0x6761
mov byte [rsp + 0x8e], al
movzx eax, byte [rsp + 0x2d]
mov word [rsp + 0x8c], dx
mov byte [rsp + 0x90], al
movzx eax, byte [rsp + 0x2e]
mov byte [rsp + 0x91], al
movzx eax, byte [rsp + 0x2f]
mov byte [rsp + 0x92], al
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x93], al
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x94], al
movzx eax, byte [rsp + 0x32]
mov byte [rsp + 0x95], al
movzx eax, byte [rsp + 0x33]
mov byte [rsp + 0x96], al
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x97], al
movzx eax, byte [rsp + 0x35]
mov byte [rsp + 0x98], al
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x99], al
movzx eax, byte [rsp + 0x37]
mov byte [rsp + 0x9a], al
mov byte [rsp + 0x9b], bpl
mov byte [rsp + 0x9c], r12b
mov byte [rsp + 0x9d], r13b
mov byte [rsp + 0x9e], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov byte [rsp + 0xa6], 0
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0x9e], dl
mov edx, eax
shr dl, 4
add edx, 0x41
mov byte [rsp + 0x9f], dl
mov edx, eax
shr edx, 8
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa0], dl
mov edx, eax
shr edx, 0xc
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa1], dl
mov edx, eax
shr edx, 0x10
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa2], dl
mov edx, eax
shr edx, 0x14
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa3], dl
mov edx, eax
shr eax, 0x1c
shr edx, 0x18
add eax, 0x41
and edx, 0xf
mov byte [rsp + 0xa5], al
add edx, 0x41
mov byte [rsp + 0xa4], dl
jmp 0x48d3c5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48d3f0