Function at 0x4a2e20
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7a4d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov al, byte [0x623db0]
test al, al
jne 0x4a3051
test ebx, ebx
je 0x4a3051
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp edi, eax
jne 0x4a3051
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.004a2b40
add esp, 4
mov esi, eax
call fcn.00599410
cmp esi, eax
jne 0x4a3087
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x610078], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push eax
push 2
mov dword [ebp - 0x14], 0
call fcn.00599630
mov byte [ebp - 4], 2
mov al, 1
mov ecx, 0x623db1
xchg byte [ecx], al
mov eax, dword [ebx + edi]
add ebx, edi
mov ecx, dword [0x625fc4]
mov dword [0x625fc4], eax
mov dword [0x623db4], ebx
mov dword [ebx], ecx
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0xc0]
add esi, edi
je 0x4a306d
mov esi, dword [esi + 0xc]
test esi, esi
je 0x4a306d
cmp dword [esi], 0
je 0x4a30a4
xor eax, eax
mov dword [ebp - 0x2c], 0x41f338
push 4
push esi
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], al
call fcn.00468e50
mov byte [ebp - 0x1c], al
mov eax, dword [esi]
mov dword [0x623db8], eax
mov dword [esi], 0x4a2cf0
cmp byte [ebp - 0x1c], 0
mov byte [ebp - 4], 5
mov dword [ebp - 0x2c], 0x41f338
je 0x4a2f5e
lea ecx, [ebp - 0x2c]
call fcn.00468eb0
mov eax, dword [ebx]
xorps xmm0, xmm0
mov dword [ebp - 0x50], eax
mov eax, dword [0x625fc4]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 2
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], 0
call fcn.004a2830
mov ebx, dword [ebp - 0x38]
add esp, 4
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x54], ebx
cmp edx, ebx
je 0x4a2fda
mov edi, dword [edx]
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x4a2fbb
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x4c]
mov ecx, dword [esi + eax*4]
mov eax, dword [ebp - 0x50]
mov eax, dword [esi + eax*4]
mov dword [esi + ebx*4], eax
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x54]
mov dword [esi + eax*4], ecx
mov eax, dword [0x610078]
cmp eax, 0xffffffff
je 0x4a2fd0
mov dword [edi + eax*4 + 0xe10], 1
add edx, 4
cmp edx, ebx
jne 0x4a2f97
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x4a301d
mov eax, dword [ebp - 0x34]
sub eax, edx
sar eax, 2
lea ecx, [eax*4]
mov eax, edx
mov byte [ebp - 4], 6
cmp ecx, 0x1000
jb 0x4a300f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a30be
push ecx
push edx
call fcn.005bc4f7
add esp, 8
mov byte [ebp - 4], 2
push 0x4a25d0
call fcn.005bc7e4
add esp, 4
mov al, 1
mov ecx, 0x623db0
xchg byte [ecx], al
cmp dword [ebp - 0x18], 1
mov byte [ebp - 4], 7
jne 0x4a3048
lea eax, [ebp - 0x14]
push eax
push 1
call fcn.005996d0
xor al, al
mov ecx, 0x623db1
xchg byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bca10
mov esp, ebp
pop ebp
ret
push 0x41fcb8
lea ecx, [ebp - 0x48]
call fcn.0044fb30
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
call fcn.004a30d0
push 0x41fce8
lea ecx, [ebp - 0x30]
call fcn.0044fb30
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
call fcn.004a30d0
push 0x41fcd0
lea ecx, [ebp - 0x48]
call fcn.0044fb30
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
call fcn.004a30d0
call fcn.004d7f94
int3