Function at 0x612a50
Capabilities:
Allocate thread local storage

Disassembly:
push edi
push esi
cmp dword [0x715220], 1
jne 0x612a5e
pop esi
pop edi
ret
push 0x714ea4
call fcn.00683de0
add esp, 4
mov eax, dword [0x715234]
test eax, eax
je 0x612a93
nop word cs:[eax + eax]
mov esi, eax
cmp dword [eax], 0x715220
je 0x612ad3
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x612a80
jmp 0x612a95
xor esi, esi
push 0x10
push 1
call sub.msvcrt.dll_calloc
add esp, 8
mov edi, eax
mov dword [eax], 0x715220
lea eax, [esi + 0xc]
test esi, esi
mov ecx, 0x715234
cmovne ecx, eax
mov dword [edi + 8], 1
mov dword [ecx], edi
mov eax, edi
add eax, 4
push 0
push eax
call fcn.00683b70
add esp, 8
mov esi, edi
jmp 0x612ad6
inc dword [esi + 8]
push 0x714ea4
call fcn.00683e20
add esp, 4
lea edi, [esi + 4]
push edi
call fcn.00683900
add esp, 4
mov eax, dword [0x715220]
cmp eax, 1
je 0x612b3d
test eax, eax
jne 0x612b19
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x714ea0], eax
cmp eax, 0xffffffff
je 0x612b4f
mov dword [0x715220], 1
jmp 0x612b3d
push 2
call dword [0x71401c]
add esp, 4
push dword [0x715220]
push 0x715220
push str._once__p_is__d_n
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
push edi
call fcn.00683a70
add esp, 4
mov ecx, esi
pop esi
pop edi
jmp fcn.00611910
call sub.msvcrt.dll_abort
nop word cs:[eax + eax]
push ebp
push ebx
push edi
push esi
sub esp, 0x6c
call fcn.00612f00
mov ebp, 0xb
test eax, eax
je 0x612dca
mov ebx, eax
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x80]
mov esi, ebx
test edi, edi
je 0x612b9e
mov edx, dword [esi + 0xb4]
mov dword [edi], edx
mov dword [esi + 0x68], 0
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0xffffffff
sub esp, 0x10
movaps xmm0, xmmword [0x6e97d0]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x612c6c
push 0
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
sub esp, 0x10
movaps xmm0, xmmword [0x6e97d0]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x612c6c
push 0x14
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
sub esp, 0x10
movaps xmm0, xmmword [0x6e97d0]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x612c6c
push 0x14
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
sub esp, 0x10
movaps xmm0, xmmword [0x6e97d0]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x612c6c
push 0x14
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
sub esp, 0x10
movaps xmm0, xmmword [0x6e97d0]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x612c6c
push 0x14
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
mov dword [esi + 0x1c], 0xffffffff
lea edi, [ebx + 0x38]
push edi
call fcn.00683dd0
add esp, 4
cmp eax, 1
je 0x612dd4
mov dword [esi + 0x38], 0xffffffff
mov dword [esi], 0xbab1f00d
mov dword [esi + 0x6c], 0
mov dword [esi + 0x64], 0
cmp dword [esi + 0x18], 0
je 0x612d91
mov eax, dword [esp + 0x84]
test eax, eax
je 0x612cca
mov ecx, dword [eax]
mov dword [esi + 0x24], ecx
mov ebp, dword [eax + 8]
test cl, 8
jne 0x612cce
add eax, 0xc
jmp 0x612cd6
xor ebp, ebp
jmp 0x612cdb
call fcn.00611450
add eax, 0x6c
mov eax, dword [eax]
mov dword [esi + 0x6c], eax
push 0
push 4
push esi
push 0x6128e0
push ebp
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x612d4b
mov ebp, eax
cmp eax, 0xffffffff
je 0x612d4b
mov eax, dword [esi + 0x6c]
mov ecx, 0xfffffff1
cmp eax, 0xfffffff2
jl 0x612d28
mov ecx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x612d28
mov ecx, 0xf
cmp eax, 0xe
jg 0x612d28
cmp eax, 2
mov ecx, 2
cmovl ecx, eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [esi + 0x24], 4
jne 0x612dab
mov dword [esi + 0x14], ebp
push ebp
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x612dc0
add ebx, 0x1c
mov eax, dword [esi + 0x18]
test eax, eax
je 0x612d5c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00683c00
add esp, 4
push edi
call fcn.00683dd0
add esp, 4
cmp eax, 1
mov ebp, 0xb
je 0x612e64
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov eax, dword [esp + 0x80]
test eax, eax
je 0x612da2
mov dword [eax], 0
mov ecx, esi
call fcn.00612040
jmp 0x612dca
mov dword [esi + 0x14], 0
push ebp
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
xor ebp, ebp
mov eax, ebp
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
movups xmm0, xmmword [0x6e98c6]
movups xmmword [esp + 0x5b], xmm0
movups xmm0, xmmword [0x6e98bb]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [0x6e98ab]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [0x6e989b]
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [0x6e988b]
movups xmmword [esp + 0x20], xmm0
movups xmm0, xmmword [0x6e987b]
movups xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [esp + 0x27]
push 0xa
push ecx
push eax
call dword [sym.imp.msvcrt.dll__ultoa]
add esp, 0xc
mov eax, 0x27
nop word cs:[eax + eax]
mov ecx, eax
inc eax
cmp ecx, 0x69
ja 0x612ee1
cmp byte [esp + ecx], 0
jne 0x612e50
jmp 0x612ee1
movups xmm0, xmmword [0x6e98c6]
movups xmmword [esp + 0x5b], xmm0
movups xmm0, xmmword [0x6e98bb]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [0x6e98ab]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [0x6e989b]
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [0x6e988b]
movups xmmword [esp + 0x20], xmm0
movups xmm0, xmmword [0x6e987b]
movups xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [esp + 0x27]
push 0xa
push ecx
push eax
call dword [sym.imp.msvcrt.dll__ultoa]
add esp, 0xc
mov eax, 0x27
mov ecx, eax
inc eax
cmp ecx, 0x69
ja 0x612ee1
cmp byte [esp + ecx], 0
jne 0x612ed3
cmp ecx, 0x69
ja 0x612eed
mov word [esp + eax - 1], 0xa
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
nop dword [eax + eax]