Function at 0x483160
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
push edi
cmp eax, dword [ebp + 0x10]
jae 0x4831c9
mov ecx, dword [esi + 0xb828]
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 0x4831b7
mov edx, dword [esi + 0xb828]
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 0x4831c6
lea edx, [ebx*4]
inc eax
add ecx, edx
cmp eax, dword [ebp + 0x10]
jb 0x483190
cmp eax, dword [ebp + 0x10]
je 0x4833b5
mov edx, dword [esi + 0xb828]
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
mov dword [ebp - 0x18], edi
test ebx, ebx
jbe 0x483215
jmp 0x483200
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + eax*4]
mov edi, dword [ecx + 0x2c]
inc eax
mov dword [ebp + edi*4 - 0x18], ecx
cmp eax, ebx
jb 0x483200
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 0x4833b7
mov eax, dword [0x551d48]
cmp eax, ebx
jge 0x48326d
xor eax, eax
jmp 0x483274
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x14], ebx
je 0x48329a
mov ecx, dword [eax + 0x14]
cmp ecx, ebx
jne 0x483284
xor eax, eax
jmp 0x4832a6
mov edx, dword [ecx]
mov dword [eax + 0x14], edx
cmp edx, ebx
jne 0x483290
mov dword [eax + 0x18], ebx
mov dword [ecx], 0xfefefefe
mov eax, ecx
jmp 0x4832a6
mov ecx, dword [eax + 0x10]
push 0x10
push 0x44
call fcn.00547721
cmp eax, ebx
je 0x4832e1
or ecx, 0xffffffff
xor edx, edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x20], ecx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 4], ebx
mov word [eax + 0x40], dx
mov dword [eax + 0xc], ebx
mov word [eax + 0x42], dx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x34], ebx
mov dword [eax + 0x38], ebx
mov ecx, eax
jmp 0x4832e3
xor ecx, ecx
mov ebx, dword [ebp + 8]
mov dword [ebx], ecx
test ecx, ecx
jne 0x4832fa
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 0
and eax, 0xfffff
push ecx
or eax, 0x10000000
mov ecx, edx
call fcn.0050a980
test eax, eax
jl 0x4833b7
mov eax, dword [esi + 0xb828]
mov edx, dword [eax + 0x34]
mov ecx, dword [ebx]
mov dword [ecx + 0x34], edx
mov eax, dword [eax + 0x38]
mov dword [ecx + 0x38], eax
xor eax, eax
cmp edi, 0xffffffff
je 0x48334a
mov edx, dword [ebp - 0x28]
mov eax, ecx
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [eax], edi
mov eax, 1
mov edx, dword [ebp - 0x14]
cmp edx, 0xffffffff
je 0x483364
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov edi, dword [ebp - 0x24]
mov dword [esi + eax*4], edi
mov ecx, dword [ecx + 4]
mov dword [ecx + eax*4], edx
inc eax
mov edx, dword [ebp - 0x10]
cmp edx, 0xffffffff
je 0x48337e
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov edi, dword [ebp - 0x20]
mov dword [esi + eax*4], edi
mov ecx, dword [ecx + 4]
mov dword [ecx + eax*4], edx
inc eax
mov ecx, dword [ebp - 0xc]
cmp ecx, 0xffffffff
je 0x483397
mov ebx, dword [ebx]
mov edx, dword [ebx + 0xc]
mov esi, dword [ebp - 0x1c]
mov dword [edx + eax*4], esi
mov edx, dword [ebx + 4]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp + 0xc]
xor eax, eax
test edx, edx
jbe 0x4833b5
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
inc eax
cmp eax, edx
jb 0x4833a3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc