Function at 0x471b20
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x20
mov eax, dword [0x5296dc]
push ebx
push ebp
push esi
push edi
xor esi, esi
xor edi, edi
push eax
xor ebx, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
cmp ebp, esi
je 0x471f95
mov ecx, dword [ebp + 0x4558]
mov edx, dword [ebp + 0x455c]
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov cx, word [ebp + 0x45d4]
lea eax, [ebp + 0x8f7c]
dec ecx
mov dword [esp + 0x2c], edx
mov dword [ebp + 0x16830], eax
mov dword [ebp + 0x16934], ecx
call fcn.00471fb0
cmp dword [esp + 0x2c], esi
jl 0x471f8b
jg 0x471ba6
cmp dword [esp + 0x28], esi
jbe 0x471f8b
cmp dword [ebp], esi
jne 0x471f8b
mov al, byte [ebx + ebp + 0x16834]
test al, al
mov eax, dword [ebp + 0x14fa0]
jne 0x471c0a
cmp eax, 8
jge 0x471bce
push ebp
call fcn.0046d5d0
add esp, 4
mov eax, dword [0x51d2c0]
mov ecx, dword [ebp + 0x14f9c]
xor edx, edx
and eax, 0xffff
mov dx, word [ebp + 0x14f9c]
and edx, eax
mov eax, dword [ebp + 0x14fa0]
shr ecx, 8
add eax, 0xfffffff8
mov dword [esp + 0x14], edx
mov dword [ebp + 0x14f9c], ecx
mov dword [ebp + 0x14fa0], eax
jmp 0x471d00
cmp eax, 1
jge 0x471c18
push ebp
call fcn.0046d5d0
add esp, 4
mov edx, dword [ebp + 0x14f9c]
xor eax, eax
mov ax, word [ebp + 0x14f9c]
xor ecx, ecx
mov cx, word [0x51d2b2]
and eax, ecx
mov ecx, dword [ebp + 0x14fa0]
shr edx, 1
dec ecx
cmp eax, esi
mov dword [ebp + 0x14f9c], edx
mov dword [ebp + 0x14fa0], ecx
je 0x471c98
cmp ecx, 8
jge 0x471c59
push ebp
call fcn.0046d5d0
add esp, 4
mov edx, dword [0x51d2c0]
mov ecx, dword [ebp + 0x14f9c]
xor eax, eax
and edx, 0xffff
mov ax, word [ebp + 0x14f9c]
and eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14fa0]
mov edx, dword [esp + 0x14]
shr ecx, 8
add eax, 0xfffffff8
mov dword [ebp + 0x14f9c], ecx
mov dword [ebp + 0x14fa0], eax
jmp 0x471d00
xor eax, eax
mov al, byte [ebx + ebp + 0x16834]
mov esi, dword [eax*4 + 0x51d764]
cmp esi, ecx
jle 0x471cb5
push ebp
call fcn.0046d5d0
add esp, 4
mov edx, dword [ebp + 0x14f9c]
xor eax, eax
mov ax, word [esi*2 + 0x51d2b0]
xor ecx, ecx
mov cx, word [ebp + 0x14f9c]
and eax, ecx
mov ecx, esi
shr edx, cl
mov ecx, dword [ebp + 0x14fa0]
sub ecx, esi
mov dword [ebp + 0x14fa0], ecx
mov ecx, dword [ebp + 0x16830]
shl ebx, 6
add ebx, ecx
xor ecx, ecx
mov dword [ebp + 0x14f9c], edx
xor esi, esi
mov cl, byte [ebx + eax]
mov dword [esp + 0x14], ecx
mov edx, ecx
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x471d0d
jmp dword [eax*4 + 0x471fa0]
cmp edx, 0x90
je 0x471d84
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
or eax, 0xffffffff
add ebx, eax
adc ecx, eax
mov eax, dword [ebp + 0x54]
cmp eax, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
je 0x471d4f
cmp dword [ebp + 0x5c], esi
je 0x471d4f
cmp dword [ebp + 0x14f98], esi
ja 0x471d4f
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov byte [edi + ebp + 0x4f7c], dl
inc edi
cmp edi, 0x4000
mov dword [esp + 0x10], edi
jne case.default.0x471d0d
push ebp
push edi
call fcn.0046f1c0
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
mov edi, esi
jmp case.default.0x471d0d
mov dword [esp + 0x18], 1
jmp case.default.0x471d0d
cmp edx, esi
je 0x471dc1
mov eax, dword [ebp + 0x16934]
xor ecx, ecx
mov dword [esp + 0x24], edx
mov esi, dword [eax*4 + 0x51d728]
mov eax, esi
and eax, edx
cmp eax, esi
mov dword [esp + 0x1c], eax
setne cl
add ecx, 2
mov dword [esp + 0x18], ecx
jmp 0x471f6f
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
or eax, 0xffffffff
add ebx, eax
adc ecx, eax
mov eax, dword [ebp + 0x54]
cmp eax, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
je 0x471df4
cmp dword [ebp + 0x5c], esi
je 0x471df4
cmp dword [ebp + 0x14f98], esi
ja 0x471df4
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov byte [edi + ebp + 0x4f7c], 0x90
inc edi
cmp edi, 0x4000
mov dword [esp + 0x10], edi
jne 0x471e21
push ebp
push edi
call fcn.0046f1c0
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
mov edi, esi
mov dword [esp + 0x18], esi
jmp case.default.0x471d0d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 3
add eax, edx
mov dword [esp + 0x1c], eax
jmp case.default.0x471d0d
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
lea esi, [eax + 3]
mov eax, dword [ebp + 0x16934]
shl eax, 2
mov ecx, dword [eax + 0x51d73c]
sar ebx, cl
mov ecx, dword [eax + 0x51d750]
mov eax, dword [esp + 0x28]
and ebx, ecx
shl ebx, 8
mov ecx, ebx
mov ebx, edi
sub ebx, ecx
mov ecx, 0
sub ebx, edx
mov edx, dword [esp + 0x2c]
dec ebx
sub eax, esi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x54]
sbb edx, ecx
cmp eax, ecx
mov dword [esp + 0x2c], edx
je 0x471ea6
cmp dword [ebp + 0x5c], ecx
je 0x471ea6
cmp dword [ebp + 0x14f98], ecx
ja 0x471ea6
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
and ebx, 0x3fff
cmp ebx, edi
mov eax, ebx
ja 0x471eb4
mov eax, edi
mov edx, 0x4000
sub edx, eax
cmp edx, esi
jbe 0x471ec1
mov edx, esi
mov eax, dword [esp + 0x20]
sub esi, edx
cmp eax, ecx
mov dword [esp + 0x18], esi
je 0x471eee
cmp edi, ebx
ja 0x471eee
mov ecx, edx
xor eax, eax
mov esi, ecx
lea edi, [edi + ebp + 0x4f7c]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x471f2d
mov eax, edi
sub eax, ebx
cmp eax, edx
jae 0x471f0f
mov cl, byte [ebx + ebp + 0x4f7c]
mov byte [edi + ebp + 0x4f7c], cl
inc edi
inc ebx
dec edx
jne 0x471ef6
mov dword [esp + 0x10], edi
jmp 0x471f3f
mov ecx, edx
lea esi, [ebx + ebp + 0x4f7c]
mov eax, ecx
lea edi, [edi + ebp + 0x4f7c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
add ecx, edx
add ebx, edx
mov dword [esp + 0x10], ecx
mov edi, ecx
cmp edi, 0x4000
jne 0x471f5d
push ebp
push edi
call fcn.0046f1c0
add esp, 8
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov edi, eax
xor ecx, ecx
cmp esi, ecx
jne 0x471ea6
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
xor esi, esi
mov eax, dword [esp + 0x2c]
mov ebx, edx
cmp eax, esi
jg 0x471ba6
jl 0x471f8b
cmp dword [esp + 0x28], esi
ja 0x471ba6
push ebp
push edi
call fcn.0046f1c0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret