Function at 0x4bb620
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push edi
mov edi, eax
mov eax, dword [edi + 8]
cmp eax, 0x46495245
je 0x4bb639
cmp eax, 0x41584953
jne 0x4bb995
mov eax, dword [edi + 0x50]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x4bb691
mov eax, dword [edi + 0x50]
mov ecx, dword [0x8cc4e0]
mov dword [esp + 0xc], eax
call fcn.00552c40
mov eax, dword [0x8cc4c8]
lea ebx, [esp + 0xc]
call fcn.00507c90
cmp dword [edi + 0x50], ebp
je 0x4bb691
mov ecx, dword [edi + 0x50]
mov edx, dword [edi + 0x50]
cmp dword [edx + 0x10], edi
jne 0x4bb67a
mov eax, dword [edi + 0x50]
mov dword [eax + 0x10], ebp
cmp ecx, ebp
mov dword [edi + 0x50], ebp
je 0x4bb993
mov edx, dword [ecx]
push 1
call dword [edx + 4]
pop ebp
pop ebx
pop edi
pop ecx
ret
cmp dword [edi + 8], 0x41584953
jne 0x4bb993
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
push esi
mov esi, dword [0x728b0c]
je 0x4bb6c6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebp
je 0x4bb6c6
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
jmp 0x4bb6cf
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.004bc050
cmp dword [0x7288e8], ebp
je 0x4bb707
mov esi, dword [0x7288e0]
cmp esi, ebp
je 0x4bb707
lea eax, [esi + 8]
mov eax, dword [eax]
cmp dword [eax], edi
mov esi, dword [esi]
jne 0x4bb703
push eax
push 0x7288dc
call fcn.004ab2e0
mov byte [0x8cbdf4], 1
cmp esi, ebp
jne 0x4bb6e6
mov ebx, dword [edi + 0x58]
cmp ebx, ebp
je 0x4bb713
call fcn.004bf620
lea esi, [edi + 0x94]
mov edx, esi
mov ebx, 4
mov eax, dword [edx]
cmp eax, ebp
je 0x4bb74b
xor ecx, ecx
cmp dword [eax + 0xc], ebp
jbe 0x4bb745
lea ecx, [ecx]
mov ebp, dword [eax + 4]
mov dword [ebp + ecx*4], 0
mov ebp, dword [eax + 0xc]
inc ecx
cmp ecx, ebp
jb 0x4bb730
xor ebp, ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebp
add edx, 4
dec ebx
jne 0x4bb720
mov ecx, dword [edi + 0x88]
cmp ecx, ebp
je 0x4bb767
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x88], ebp
mov ecx, dword [edi + 0x8c]
cmp ecx, ebp
je 0x4bb77d
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [edi + 0x8c], ebp
mov ebx, 4
mov ecx, dword [esi]
cmp ecx, ebp
je 0x4bb790
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], ebp
add esi, 4
dec ebx
jne 0x4bb782
mov ecx, dword [edi + 0x1c]
cmp ecx, ebp
je 0x4bb7ab
dec dword [ecx + 4]
jne 0x4bb7a8
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [edi + 0x1c], ebp
mov ecx, dword [edi + 0x64]
cmp ecx, ebp
je 0x4bb7c0
dec dword [ecx + 4]
jne 0x4bb7bd
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x64], ebp
mov ecx, dword [edi + 0xa4]
cmp ecx, ebp
je 0x4bb7d0
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [edi + 0x84]
cmp eax, ebp
je 0x4bb8a1
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4bb891
lea esp, [esp]
mov eax, dword [edi + 0x84]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4bb801
xor ebp, ebp
jmp 0x4bb81c
mov edx, dword [eax + 4]
dec ecx
mov dword [eax + 0xc], ecx
lea ecx, [edx + ecx*4]
mov edx, dword [ecx]
test edx, edx
mov dword [ecx], 0
je 0x4bb81a
dec dword [eax + 0x10]
mov ebp, edx
mov eax, dword [0x8cb7d0]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax + 8]
xor ebx, ebx
test ecx, ecx
jbe 0x4bb83c
mov edx, dword [eax + 4]
cmp ebp, dword [edx]
je 0x4bb83f
inc ebx
add edx, 4
cmp ebx, ecx
jb 0x4bb830
or ebx, 0xffffffff
mov ecx, dword [eax + 0xc]
cmp ebx, ecx
jae 0x4bb86c
lea edx, [ecx - 1]
mov ecx, dword [eax + 4]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + edx*4]
mov esi, dword [ecx + ebx*4]
test esi, esi
mov dword [ecx + ebx*4], edx
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
mov dword [edx + ecx*4], 0
je 0x4bb86c
dec dword [eax + 0x10]
test ebp, ebp
je 0x4bb880
mov esi, ebp
call fcn.0050eae0
push ebp
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [edi + 0x84]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4bb7f0
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x4bb8a1
mov edx, dword [ecx]
push 1
call dword [edx]
mov ebx, dword [edi + 0x68]
test ebx, ebx
je 0x4bb8ce
mov eax, dword [0x8cb7cc]
call fcn.004c37e0
mov esi, dword [edi + 0x68]
test esi, esi
je 0x4bb8ce
call fcn.005109d0
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [edi + 0x68], 0
mov edx, dword [0x728acc]
xor eax, eax
test edx, edx
jbe 0x4bb91c
mov ecx, dword [0x728ac4]
cmp dword [ecx + eax*4], edi
je 0x4bb8ec
inc eax
cmp eax, edx
jb 0x4bb8e0
jmp 0x4bb91c
cmp eax, edx
jae 0x4bb91c
dec edx
mov dword [0x728acc], edx
mov esi, dword [ecx + eax*4]
test esi, esi
mov edx, dword [ecx + edx*4]
mov dword [ecx + eax*4], edx
mov eax, dword [0x728ac4]
mov ecx, dword [0x728acc]
mov dword [eax + ecx*4], 0
je 0x4bb91c
dec dword [0x728ad0]
mov edx, dword [0x728b0c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x4bb94e
mov ecx, eax
test ecx, ecx
je 0x4bb94e
dec dword [ecx + 4]
jne 0x4bb944
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0xbc], 0
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x4bb96f
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4bb96f
lea esp, [esp]
mov edx, dword [ecx]
mov esi, dword [ecx + 0x10]
push 1
call dword [edx]
test esi, esi
mov ecx, esi
jne 0x4bb960
mov eax, dword [edi + 0x10]
test eax, eax
pop esi
je 0x4bb97d
mov ecx, dword [edi + 0x14]
mov dword [eax + 0x14], ecx
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4bb98a
mov edx, dword [edi + 0x10]
mov dword [eax + 0x10], edx
push 0
mov eax, edi
call fcn.004bb1b0
pop ebp
pop ebx
pop edi
pop ecx
ret