Function at 0x47d640
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xa4
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x1c], 0
push esi
mov esi, dword [esp + 0xbc]
push edi
mov edi, dword [esp + 0xbc]
je 0x47d669
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov ebx, dword [esp + 0xb8]
cmp byte [ebx + 4], 0
je 0x47d71b
mov edx, dword [ebp + 0x14]
cmp dword [edx + 0x1c], 0
je 0x47d68b
mov eax, dword [ebx + 0x60]
mov ecx, dword [eax]
mov dword [esi + 0x34], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc]
push esi
push edi
push ebx
mov ecx, ebp
mov dword [esp + 0x20], eax
call fcn.0047cfa0
mov esi, dword [esp + 0xc4]
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi + 8]
mov edi, dword [ecx + 0xc]
sub edi, dword [esp + 0x14]
mov edx, dword [ebx + 0x60]
and eax, 0x3fffffff
cmp dword [esi + 4], eax
mov dword [esp + 0x14], edx
jne 0x47d6cf
push 4
push esi
call fcn.00402730
add esp, 8
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov edx, dword [esi]
mov dword [edx + ecx*4], eax
add dword [esi + 4], 1
mov ecx, dword [ebx + 0x60]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x18], edx
cmp dword [ecx + 0x1c], 0
mov eax, edi
je 0x47db44
mov edx, ecx
mov ecx, dword [edx + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 1
lea edx, [esp + 0x1c]
push edx
call eax
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 0x10
lea ecx, [esp + 0xa0]
push ecx
push esi
push edi
push ebx
mov ecx, ebp
mov byte [esp + 0xb0], 0
call fcn.0047c850
mov edx, dword [edi + 0x34]
xor eax, eax
mov dword [esi + 0x34], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x74]
mov ecx, 0x12
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x38], bind
mov dword [esp + 0x18], eax
call fcn.0047b6c0
mov edi, dword [esp + 0x14]
lea eax, [ebp + 0x30]
push eax
push edi
lea ecx, [esp + 0x60]
call fcn.0047e2f0
mov esi, dword [esp + 0xc0]
mov eax, dword [esi]
add eax, 1
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov byte [esp + 0x5c], 0
call fcn.0047e390
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x5c]
push ecx
push esi
push edi
mov ecx, ebp
mov dword [esp + 0x34], edx
call fcn.0047d640
mov edx, dword [ebp + 0x10]
mov edi, dword [edx + 0xc]
sub edi, dword [esp + 0x24]
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x1c], 0
mov dword [esp + 0x24], edi
mov eax, edi
je 0x47d7eb
mov edx, dword [esp + 0x30]
test edx, edx
je 0x47d7eb
mov eax, ecx
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esp + 0x30]
push edx
call eax
add eax, edi
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x70]
mov ecx, 0x12
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x44], bind
mov dword [esp + 0x1c], eax
call fcn.0047b6c0
mov esi, dword [esp + 0x18]
lea eax, [ebp + 0x30]
push eax
push esi
lea ecx, [esp + 0x60]
call fcn.0047e2f0
mov edi, dword [esp + 0xc0]
mov ecx, dword [edi]
add ecx, 1
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x5c], 0
call fcn.0047e390
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x5c]
push edx
push edi
push esi
mov ecx, ebp
mov dword [esp + 0x38], eax
call fcn.0047d640
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0xc]
sub esi, dword [esp + 0x28]
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x1c], 0
mov dword [esp + 0x28], esi
mov eax, esi
je 0x47d89f
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x47d89f
mov eax, ecx
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esp + 0x3c]
push edx
call eax
add eax, esi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xa0]
push eax
push edi
push ecx
push ebx
mov ecx, ebp
mov dword [esp + 0x2c], edx
call fcn.0047d000
mov edx, dword [ebp + 0x10]
mov edi, dword [edx + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
sub edi, dword [esp + 0x1c]
push ecx
xor eax, eax
push edx
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x28], edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], bind
call fcn.00471840
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.00471840
mov eax, dword [ebp + 0x14]
add esi, edi
add esi, dword [esp + 0x24]
cmp dword [eax + 0x1c], 0
je 0x47d93e
mov eax, dword [esp + 0x48]
test eax, eax
je 0x47d93e
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
mov eax, dword [esp + 0x48]
push eax
call edx
add esi, eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
sub ecx, dword [eax + 0x20]
xor dl, dl
cmp esi, ecx
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], dl
jl 0x47da72
lea esp, [esp]
mov esi, dword [ebp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
add esi, 0x10
and eax, 0x3fffffff
cmp dword [esi + 4], eax
mov dword [esp + 0x54], edx
jne 0x47d985
push 8
push esi
call fcn.00402730
add esp, 8
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edi, dword [esp + 0x18]
lea edx, [ecx + eax*8]
mov ecx, dword [esp + 0x14]
add eax, 1
cmp edi, ecx
mov dword [esp + 0x50], edx
mov dword [esi + 4], eax
jle 0x47d9d1
cmp byte [esp + 0x12], 0
mov esi, dword [ebx + 0x70]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], 3
mov byte [esp + 0x13], 1
je 0x47d9c7
mov ecx, dword [esp + 0x1c]
add ecx, 6
jmp 0x47da07
mov edx, dword [esp + 0x1c]
lea ecx, [edx + ecx + 3]
jmp 0x47da07
cmp byte [esp + 0x13], 0
mov esi, dword [ebx + 0x74]
mov eax, dword [esp + 0x24]
mov edi, ecx
mov dword [esp + 0x14], 3
mov byte [esp + 0x12], 1
je 0x47d9fb
mov edx, dword [esp + 0x1c]
add edx, 6
mov dword [esp + 0x20], edx
jmp 0x47da0b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [ecx + edx + 3]
mov dword [esp + 0x20], ecx
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + 0x20]
lea edx, [ecx + edi + 5]
mov ecx, dword [esp + 0x50]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x54]
mov dword [esi + 0x40], edx
mov ecx, dword [ebp + 0x10]
mov edx, 3
sub edx, eax
add dword [ecx + 0xc], edx
mov dl, byte [esp + 0x12]
test dl, dl
mov esi, dword [ebx + 0x74]
je 0x47da45
mov ecx, 3
sub ecx, eax
add dword [esi + 0x5c], ecx
mov ecx, dword [ebx + 0x70]
mov esi, 3
sub esi, eax
add dword [ecx + 0x5c], esi
mov ecx, 3
sub ecx, eax
add dword [ebx + 0x5c], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
sub ecx, dword [eax + 0x20]
cmp dword [esp + 0x20], ecx
jge 0x47d960
mov esi, dword [esp + 0x20]
test dl, dl
mov edi, dword [esp + 0xc4]
mov dword [edi + 4], 0
jne 0x47da97
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
push 0
mov ecx, edi
call fcn.00471840
cmp byte [esp + 0x13], 0
jne 0x47dab3
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [edi + 4]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00471840
mov eax, dword [esp + 0x4c]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
js 0x47dae7
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov ebx, eax
call edi
mov ecx, dword [esp + 0x44]
push 0x17
lea edx, [ebx*4]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esp + 0x40]
test eax, eax
js 0x47db15
mov edx, dword [0x4c6060]
and eax, 0x3fffffff
push edx
mov ebx, eax
call edi
mov edx, dword [esp + 0x38]
push 0x17
lea ecx, [ebx*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esp + 0x34]
test eax, eax
js 0x47db42
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [0x4c6060]
push eax
call edi
mov edx, dword [esp + 0x2c]
push 0x17
lea ecx, [ebx*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 0x10