Function at 0x472a90
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
push esi
push edi
or eax, 0xffffffff
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xb828]
mov edi, dword [eax + 0x3c]
xor ecx, ecx
and edi, 0xfffff
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc], 3
cmp edi, 3
jb 0x472dcc
mov dword [ebp - 4], ecx
cmp edi, ecx
jbe 0x472baf
mov esi, dword [eax + 0xc]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 8]
and eax, 0x20
xor edx, edx
or eax, edx
jne 0x472dcc
mov eax, dword [ebp - 4]
cmp dword [ecx + 0x2c], eax
jne 0x472dcc
inc eax
add esi, 4
mov dword [ebp - 4], eax
cmp eax, edi
jb 0x472b81
xor ecx, ecx
push ecx
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebx + 0xb828]
push 0x431958
push eax
mov ecx, ebx
call fcn.004f3a10
test eax, eax
jne 0x472dd1
mov ecx, dword [ebp + eax*4 - 0xb8]
cmp ecx, dword [ebp + eax*4 - 0xa8]
jne 0x472dcc
cmp ecx, dword [ebp + eax*4 - 0x98]
jne 0x472dcc
cmp dword [ecx + 0x2c], eax
je 0x472c15
test byte [ebx + 0xac], 2
jne 0x472dcc
inc eax
cmp eax, 3
jb 0x472be2
or eax, 0xffffffff
cmp dword [ebp - 0x9c], eax
jne 0x472dcc
cmp dword [ebp - 0x8c], eax
jne 0x472dcc
mov eax, dword [0x551d48]
test eax, eax
jge 0x472c43
xor eax, eax
jmp 0x472c4a
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x14], 0
je 0x472c71
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x472c5b
mov esi, ecx
jmp 0x472c7f
mov edx, dword [ecx]
mov dword [eax + 0x14], edx
test edx, edx
jne 0x472c67
mov dword [eax + 0x18], edx
mov dword [ecx], 0xfefefefe
mov esi, ecx
jmp 0x472c7f
mov ecx, dword [eax + 0x10]
push 0x10
push 0x44
call fcn.00547721
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x472dc1
push eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
or ecx, 0xffffffff
xor edx, edx
mov eax, edi
and eax, 0xfffff
mov dword [esi + 0x10], ecx
mov word [esi + 0x40], dx
mov word [esi + 0x42], dx
mov dword [esi + 0x20], ecx
or eax, 0x70200000
push esi
mov edx, edi
mov ecx, edi
call fcn.0050a980
mov dword [ebp - 4], eax
test eax, eax
jl 0x472dae
mov eax, dword [ebx + 0xb828]
mov ecx, dword [eax + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [eax + 0x38]
mov dword [esi + 0x38], edx
mov edx, dword [esi + 0xc]
lea eax, [edi*4]
push eax
mov eax, dword [ebx + 0xb828]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esi + 4]
add esp, 0xc
lea eax, [edi*4]
push eax
lea eax, [ebp - 0xb8]
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
test edi, edi
jbe 0x472d9e
nop
test byte [ebx + 0xac], 2
je 0x472d80
mov edx, dword [ebx + 0xb828]
mov ecx, dword [edx + 4]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ecx + 8]
or dword [ecx + 0xc], 0x400
mov dword [ecx + 8], edx
mov ecx, dword [ebx + 0xb828]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax*4]
cmp dword [ecx + 0x44], 0xffffffff
je 0x472d80
mov edx, dword [ebx + 0xb828]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + eax*4]
mov ecx, dword [edx + 0x44]
mov edx, dword [ecx + 8]
or dword [ecx + 0xc], 0x400
mov dword [ecx + 8], edx
mov ecx, dword [ebx + 0xb828]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx + 8]
or dword [ecx + 0xc], 0x400
inc eax
mov dword [ecx + 8], edx
cmp eax, edi
jb 0x472d30
mov eax, dword [ebx + 0xb828]
push esi
push eax
call fcn.0050b3a0
mov dword [ebp - 4], eax
call fcn.0050a890
call fcn.0050cb90
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x8007000e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret