Function at 0x52bbf0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, eax
xor eax, eax
cmp eax, dword [ebp + 0x10]
push edi
jae 0x52bc5b
mov ecx, dword [esi + 0xaa78]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 4], edx
mov edx, dword [ecx]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [ecx + edx]
mov edi, dword [ebp - 8]
cmp edi, dword [edx + 0x10]
jne 0x52bc47
mov edx, dword [esi + 0xaa78]
mov edi, dword [edx + 4]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov edi, dword [edi + ecx]
mov edx, dword [edx + 0x28]
cmp edx, dword [edi + 0x28]
je 0x52bc58
lea edx, [ebx*4]
add eax, 1
add ecx, edx
cmp eax, dword [ebp + 0x10]
jb 0x52bc20
cmp eax, dword [ebp + 0x10]
je 0x52be45
mov edx, dword [esi + 0xaa78]
imul eax, ebx
mov ecx, dword [edx + 4]
lea eax, [ecx + eax*4]
mov dword [ebp - 4], eax
or eax, 0xffffffff
mov edi, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
xor eax, eax
test ebx, ebx
mov dword [ebp - 0x18], edi
jbe 0x52bca7
lea ebx, [ebx]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + eax*4]
mov edi, dword [ecx + 0x2c]
add eax, 1
cmp eax, ebx
mov dword [ebp + edi*4 - 0x18], ecx
jb 0x52bc90
mov edi, dword [ebp - 0x18]
xor eax, eax
cmp edi, 0xffffffff
setne al
xor ecx, ecx
cmp dword [ebp - 0x14], 0xffffffff
setne cl
add eax, ecx
xor ecx, ecx
cmp dword [ebp - 0x10], 0xffffffff
setne cl
add eax, ecx
xor ecx, ecx
cmp dword [ebp - 0xc], 0xffffffff
setne cl
xor ebx, ebx
push ebx
push ebx
push 4
add eax, ecx
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp + 0x10], eax
mov eax, dword [esi]
push edx
mov edx, dword [eax + 0x9c]
mov ecx, esi
call edx
cmp eax, ebx
jl 0x52be47
mov eax, dword [0x776138]
cmp eax, ebx
jge 0x52bcff
xor eax, eax
jmp 0x52bd06
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x10], ebx
je 0x52bd2c
mov ecx, dword [eax + 0x10]
cmp ecx, ebx
jne 0x52bd16
xor eax, eax
jmp 0x52bd38
mov edx, dword [ecx]
cmp edx, ebx
mov dword [eax + 0x10], edx
jne 0x52bd22
mov dword [eax + 0x14], ebx
mov dword [ecx], 0xfefefefe
mov eax, ecx
jmp 0x52bd38
mov ecx, dword [eax + 0xc]
push 0x10
push 0x40
call fcn.007515ae
cmp eax, ebx
je 0x52bd71
or ecx, 0xffffffff
mov dword [eax + 0x10], ecx
mov dword [eax + 0x20], ecx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x38], ebx
mov dword [eax + 4], ebx
mov word [eax + 0x3c], bx
mov dword [eax + 0xc], ebx
mov word [eax + 0x3e], bx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x34], ebx
mov ecx, eax
jmp 0x52bd73
xor ecx, ecx
cmp ecx, ebx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jne 0x52bd8a
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov eax, edx
push ebx
and eax, 0xfffff
push ecx
or eax, 0x10000000
mov ecx, edx
call fcn.004cc5e0
cmp eax, ebx
jl 0x52be47
mov ecx, dword [esi + 0xaa78]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov ecx, dword [ecx + 0x34]
mov dword [eax + 0x34], ecx
xor ecx, ecx
cmp edi, 0xffffffff
je 0x52bdda
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [edx], ecx
mov edx, dword [eax + 4]
mov dword [edx], edi
mov ecx, 1
mov edx, dword [ebp - 0x14]
cmp edx, 0xffffffff
je 0x52bdf4
mov esi, dword [eax + 0xc]
mov edi, dword [ebp - 0x24]
mov dword [esi + ecx*4], edi
mov esi, dword [eax + 4]
mov dword [esi + ecx*4], edx
add ecx, 1
mov edx, dword [ebp - 0x10]
cmp edx, 0xffffffff
je 0x52be0e
mov esi, dword [eax + 0xc]
mov edi, dword [ebp - 0x20]
mov dword [esi + ecx*4], edi
mov esi, dword [eax + 4]
mov dword [esi + ecx*4], edx
add ecx, 1
mov edx, dword [ebp - 0xc]
cmp edx, 0xffffffff
je 0x52be25
mov esi, dword [eax + 0xc]
mov edi, dword [ebp - 0x1c]
mov dword [esi + ecx*4], edi
mov eax, dword [eax + 4]
mov dword [eax + ecx*4], edx
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp edx, ebx
jbe 0x52be45
mov ecx, dword [ebp - 4]
mov esi, dword [ecx + eax*4]
mov esi, dword [esi + 0x2c]
mov esi, dword [ebp + esi*4 - 0x28]
mov dword [ecx + eax*4], esi
add eax, 1
cmp eax, edx
jb 0x52be31
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc