Function at 0x4002b450
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40072a58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x6c], 0xc15730e2
mov dword [ebp - 0x68], 0x7f0725e3
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x5c], 0
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x40097440
mov eax, dword [0x40097440]
mov edx, 0x40097444
cmp eax, dword [ebp - 0x6c]
je 0x4002b5d9
mov ecx, dword [ebp - 0x68]
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x4002b60a
mov esi, dword [ebp - 0x60]
test esi, esi
jne 0x4002b5bb
cmp byte [ebp - 0x5c], al
jne 0x4002b592
movdqu xmm0, xmmword [0x40083844]
mov eax, dword [0x40083874]
lea edx, [ebp - 0x26]
mov dword [ebp - 0x2c], eax
mov ax, word [0x40083878]
movdqu xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x28], ax
movdqu xmm0, xmmword [0x40083854]
mov al, byte [0x4008387a]
mov byte [ebp - 0x26], al
movdqu xmmword [ebp - 0x4c], xmm0
movdqu xmm0, xmmword [0x40083864]
movdqu xmmword [ebp - 0x3c], xmm0
call fcn.4002c520
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov byte [ebp - 0x16], 0
shr eax, 8
mov cl, dl
and al, 0xf
and cl, 0xf
add al, 0x41
add cl, 0x41
mov byte [ebp - 0x1c], al
mov eax, edx
shr eax, 0xc
and al, 0xf
mov byte [ebp - 0x1e], cl
add al, 0x41
mov ecx, edx
mov byte [ebp - 0x1b], al
mov eax, edx
shr eax, 0x10
and al, 0xf
shr ecx, 4
add al, 0x41
and cl, 0xf
mov byte [ebp - 0x1a], al
add cl, 0x41
mov eax, edx
mov byte [ebp - 0x1d], cl
shr eax, 0x14
and al, 0xf
add al, 0x41
mov byte [ebp - 0x19], al
mov eax, edx
shr eax, 0x18
shr edx, 0x1c
and al, 0xf
add al, 0x41
and dl, 0xf
add dl, 0x41
mov byte [ebp - 0x18], al
mov byte [ebp - 0x17], dl
lea eax, [ebp - 0x5c]
push eax
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4002b5b4
cmp eax, 0xffffffff
je 0x4002b5b4
push eax
call edi
mov dword [ebp - 0x60], esi
test esi, esi
je 0x4002b5c2
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea edx, [ebp - 0x6c]
mov dword [0x4009464c], eax
call fcn.4002b370
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4002b5e8
cmp eax, 0xffffffff
je 0x4002b5e8
push eax
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x64], 0
jne 0x4002b71c
mov eax, 1
lock xadd dword [edx], eax
mov eax, dword [0x40097440]
mov byte [ebp - 0x64], 1
cmp eax, dword [ebp - 0x6c]
je 0x4002b5d9
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x4002b71f
cmp byte [ebp - 0x5c], al
jne 0x4002b6f3
movdqu xmm0, xmmword [0x40083844]
mov eax, dword [0x40083874]
lea edx, [ebp - 0x26]
mov dword [ebp - 0x2c], eax
mov ax, word [0x40083878]
movdqu xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x28], ax
movdqu xmm0, xmmword [0x40083854]
mov al, byte [0x4008387a]
mov byte [ebp - 0x26], al
movdqu xmmword [ebp - 0x4c], xmm0
movdqu xmm0, xmmword [0x40083864]
movdqu xmmword [ebp - 0x3c], xmm0
call fcn.4002c520
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov byte [ebp - 0x16], 0
shr eax, 8
mov cl, dl
and al, 0xf
and cl, 0xf
add al, 0x41
add cl, 0x41
mov byte [ebp - 0x1c], al
mov eax, edx
shr eax, 0xc
and al, 0xf
mov byte [ebp - 0x1e], cl
add al, 0x41
mov ecx, edx
mov byte [ebp - 0x1b], al
mov eax, edx
shr eax, 0x10
and al, 0xf
shr ecx, 4
add al, 0x41
and cl, 0xf
mov byte [ebp - 0x1a], al
add cl, 0x41
mov eax, edx
mov byte [ebp - 0x1d], cl
shr eax, 0x14
and al, 0xf
add al, 0x41
mov byte [ebp - 0x19], al
mov eax, edx
shr eax, 0x18
shr edx, 0x1c
and al, 0xf
add al, 0x41
and dl, 0xf
add dl, 0x41
mov byte [ebp - 0x18], al
mov byte [ebp - 0x17], dl
lea eax, [ebp - 0x5c]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x60]
mov esi, eax
test ecx, ecx
je 0x4002b714
cmp ecx, 0xffffffff
je 0x4002b714
push ecx
call edi
mov dword [ebp - 0x60], esi
jmp 0x4002b4a1
mov eax, dword [ebp - 0x60]
push 0
push 0xffffffffffffffff
push eax
call ebx
jmp 0x4002b4a6