Function at 0x47dea0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
push edi
mov dword [esi + 0xc], eax
lea eax, [esi + 0x30]
push eax
mov eax, dword [edx + 0x18]
mov dword [esi + 0x24], ecx
xor edi, edi
push ebx
mov ecx, esi
mov dword [esp + 0x18], esi
mov dword [esi + 0x28], edi
call eax
cmp ebx, edi
je 0x47e2df
mov dword [esi + 0x18], edi
mov eax, dword [ebx + 0x28]
cmp eax, edi
je 0x47defc
xor ecx, ecx
jmp 0x47def0
shr eax, 1
add ecx, 1
cmp eax, edi
jne 0x47def0
mov dword [esi + 0x18], ecx
mov eax, dword [esi + 0x18]
mov ecx, eax
sar ecx, 1
cdq
mov dword [esi + 0x1c], ecx
mov ecx, dword [esi + 0x60]
idiv ecx
add esi, 0x30
push esi
push ebx
add eax, 2
imul eax, ecx
sub eax, 1
mov dword [esi - 0x18], eax
lea ecx, [esp + 0x40]
call fcn.0047e2f0
push ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], 0x10
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x70], edi
mov byte [esp + 0x40], 0
call fcn.0047b6c0
lea ecx, [esp + 0x38]
call fcn.0047e390
mov ecx, 0x12
lea esi, [esp + 0x38]
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [esp + 0x84]
call fcn.0047b6c0
mov esi, dword [esp + 0x10]
add esi, 0x30
push esi
push ebx
lea ecx, [esp + 0x88]
call fcn.0047e2f0
mov edx, dword [esp + 0x38]
add edx, 1
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], edx
mov byte [esp + 0x84], 0
call fcn.0047e390
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x18]
push ebx
call fcn.0047c4a0
push esi
push ebx
lea ecx, [esp + 0x88]
call fcn.0047e2f0
xor eax, eax
push ebx
lea ecx, [esp + 0x84]
mov dword [esp + 0xa8], 0x10
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0xb8], eax
mov byte [esp + 0x88], al
call fcn.0047b6c0
lea ecx, [esp + 0x80]
call fcn.0047e390
mov ecx, 0x12
lea esi, [esp + 0x80]
lea edi, [esp + 0x128]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [esp + 0x12c]
call fcn.0047b6c0
mov eax, dword [esp + 0x10]
add eax, 0x30
push eax
push ebx
lea ecx, [esp + 0x130]
call fcn.0047e2f0
mov edx, dword [esp + 0x80]
add edx, 1
lea ecx, [esp + 0x128]
mov dword [esp + 0x128], edx
mov byte [esp + 0x12c], 0
call fcn.0047e390
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x18]
push ebx
call fcn.0047d0c0
mov ecx, 0x12
lea esi, [esp + 0x38]
lea edi, [esp + 0xe0]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [esp + 0xe4]
call fcn.0047b6c0
mov eax, dword [esp + 0x10]
add eax, 0x30
push eax
push ebx
lea ecx, [esp + 0xe8]
mov dword [esp + 0x28], eax
call fcn.0047e2f0
mov edx, dword [esp + 0x38]
add edx, 1
lea ecx, [esp + 0xe0]
mov dword [esp + 0xe0], edx
mov byte [esp + 0xe4], 0
call fcn.0047e390
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x14], 0
jne 0x47e125
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
mov ecx, edi
call fcn.0047d370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 0x40], 0
mov esi, dword [edi + 0x14]
mov edx, dword [esi + 0x18]
add esi, 0x10
and edx, 0x3fffffff
cmp dword [esi + 4], edx
jne 0x47e14b
push 8
push esi
call fcn.00402730
add esp, 8
mov eax, dword [esp + 0x20]
add dword [esi + 4], 1
mov esi, dword [edi + 0x10]
push eax
push ebx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x8c]
call fcn.0047e420
xor eax, eax
push 0x100000
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], bind
call fcn.0047b4d0
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x84]
push ecx
mov dword [edi + 0x10], edx
lea edx, [esp + 0x40]
push edx
push ebx
mov ecx, edi
call fcn.0047d640
mov eax, dword [ebx + 0x40]
push 0
push eax
push ebx
mov ecx, edi
call fcn.0047d560
lea ecx, [esp + 0x24]
call fcn.0047b510
mov eax, dword [esp + 0x1c]
test eax, eax
js 0x47e1f9
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x20]
lea ecx, [edx*4]
mov edx, dword [esp + 0x14]
push 0x17
push ecx
push edx
mov ecx, eax
call fcn.004023e0
xor eax, eax
push 0x100000
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], bind
call fcn.0047b4d0
lea eax, [esp + 0x24]
mov dword [edi + 0x10], eax
mov edx, dword [ebx + 0x40]
lea ecx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x44]
push ecx
push ebx
mov ecx, edi
call fcn.0047dc70
mov edx, dword [edi + 0x14]
cmp dword [edx + 0x1c], 0
je 0x47e266
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x18]
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 edx, dword [edi + 0x14]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [edi + 0x10], esi
call fcn.0047db60
mov eax, dword [edi + 0x14]
mov edx, dword [eax + 0x10]
mov ecx, dword [ebx + 0x40]
mov eax, dword [edi + 0x10]
lea ecx, [edx + ecx*8]
add esp, 0xc
mov dword [ecx], eax
cmp word [eax + 4], 0
je 0x47e29c
add word [eax + 6], 1
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 0xc]
mov dword [ecx + 4], edx
lea ecx, [esp + 0x24]
call fcn.0047b510
mov eax, dword [esp + 0x1c]
test eax, eax
js 0x47e2df
and eax, 0x3fffffff
mov esi, eax
mov eax, dword [0x4c6060]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x14]
push 0x17
lea ecx, [esi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc