Function at 0x47dc70
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x68
push ebx
push ebp
mov ebp, dword [esp + 0x74]
mov eax, dword [ebp + 0x40]
test eax, eax
push esi
mov esi, dword [esp + 0x80]
push edi
mov edi, ecx
mov dword [esp + 0x7c], eax
jle 0x47ddb5
cmp byte [esi + 4], 0
jne 0x47ddb5
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x8c], ecx
mov ecx, dword [edx + 0x10]
mov edx, dword [ecx + eax*8 + 4]
lea ebx, [ecx + eax*8]
push edx
lea ecx, [esp + 0x20]
call fcn.0047b4d0
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x1c]
mov dword [edi + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
xor eax, eax
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x88]
push esi
push eax
push ebp
mov ecx, edi
mov byte [esi + 4], 1
mov dword [esp + 0x2c], bind
call fcn.0047dc70
mov ecx, dword [edi + 0x14]
cmp dword [ecx + 0x1c], 0
je 0x47dd1e
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x14]
add eax, 5
mov edx, eax
neg edx
and edx, 3
push ecx
add edx, eax
push edx
mov ecx, edi
call fcn.0047bc40
mov eax, dword [0x4c6060]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x28
push 0x14
mov ecx, eax
call fcn.00402380
mov word [eax + 4], 0x14
mov ecx, dword [ebx + 4]
push ecx
mov ecx, eax
call fcn.0047b4d0
mov dword [ebx], eax
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x10]
push edx
mov edx, dword [edi + 0x14]
push ecx
push edx
mov esi, eax
call fcn.0047db60
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
js 0x47dd90
and eax, 0x3fffffff
mov esi, eax
mov eax, dword [0x4c6060]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x10]
push 0x17
lea ecx, [esi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
lea ecx, [esp + 0x1c]
call fcn.0047b510
mov eax, dword [esp + 0x8c]
push ebp
mov ecx, edi
mov dword [edi + 0x10], eax
call fcn.0047c050
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x14
cmp byte [ebp + 4], 0
mov ecx, dword [esp + 0x80]
je 0x47de0b
push esi
push ecx
push ebp
mov ecx, edi
call fcn.0047cfa0
mov esi, dword [esp + 0x8c]
mov edx, dword [esi + 8]
mov ebp, dword [ebp + 0x60]
and edx, 0x3fffffff
add ebp, 0x10
cmp dword [esi + 4], edx
jne 0x47ddf2
push 4
push esi
call fcn.00402730
add esp, 8
mov eax, dword [esi + 4]
mov edx, dword [ebp]
mov ecx, dword [esi]
pop edi
mov dword [ecx + eax*4], edx
add dword [esi + 4], 1
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x14
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
push ebp
mov ecx, edi
mov byte [esp + 0x2c], 0
call fcn.0047c850
mov ebx, dword [ebp + 0x74]
lea eax, [edi + 0x30]
push eax
push ebx
push esi
lea ecx, [esp + 0x3c]
call fcn.0047e420
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
push ebx
mov ecx, edi
call fcn.0047dc70
mov ebx, dword [ebp + 0x70]
lea eax, [edi + 0x30]
push eax
push ebx
push esi
lea ecx, [esp + 0x3c]
call fcn.0047e420
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
push ebx
mov ecx, edi
call fcn.0047dc70
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
push ebp
mov ecx, edi
call fcn.0047d000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x14