Function at 0x4208b0
Capabilities:
Get thread local storage value

Disassembly:
fldz
sub esp, 0x40
fcomp dword [esp + 0x50]
fnstsw ax
test ah, 1
jne 0x4208c9
mov eax, 1
add esp, 0x40
ret
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x5c]
cmp edi, ebx
mov esi, bind
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
jle 0x420904
xor eax, eax
cmp edi, ebx
setl al
push 0x10
sub eax, 1
and eax, edi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004026b0
add esp, 0xc
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
xor ebp, ebp
cmp edi, 4
mov dword [esp + 0x18], edi
jl 0x4209cd
lea esi, [edi - 4]
shr esi, 2
xor ecx, ecx
add esi, 1
lea ebp, [esi*4]
mov dword [esp + 0x10], ebp
fld dword [eax]
mov ebp, dword [esp + 0x14]
fstp dword [ecx + ebp]
mov ebp, dword [esp + 0x14]
fld dword [eax + 4]
add ecx, 0x40
fstp dword [ecx + ebp - 0x3c]
mov ebp, dword [esp + 0x14]
fld dword [eax + 8]
add eax, edx
fstp dword [ecx + ebp - 0x38]
mov ebp, dword [esp + 0x14]
fld dword [eax]
fstp dword [ecx + ebp - 0x30]
mov ebp, dword [esp + 0x14]
fld dword [eax + 4]
fstp dword [ecx + ebp - 0x2c]
mov ebp, dword [esp + 0x14]
fld dword [eax + 8]
add eax, edx
fstp dword [ecx + ebp - 0x28]
mov ebp, dword [esp + 0x14]
fld dword [eax]
fstp dword [ecx + ebp - 0x20]
mov ebp, dword [esp + 0x14]
fld dword [eax + 4]
fstp dword [ecx + ebp - 0x1c]
mov ebp, dword [esp + 0x14]
fld dword [eax + 8]
add eax, edx
fstp dword [ecx + ebp - 0x18]
mov ebp, dword [esp + 0x14]
fld dword [eax]
fstp dword [ecx + ebp - 0x10]
mov ebp, dword [esp + 0x14]
fld dword [eax + 4]
fstp dword [ecx + ebp - 0xc]
mov ebp, dword [esp + 0x14]
fld dword [eax + 8]
add eax, edx
sub esi, 1
fstp dword [ecx + ebp - 8]
jne 0x420931
mov ebp, dword [esp + 0x10]
mov esi, bind
cmp ebp, edi
jge 0x420a0e
mov ecx, ebp
mov esi, edi
shl ecx, 4
sub esi, ebp
lea ebx, [ebx]
fld dword [eax]
mov ebp, dword [esp + 0x14]
fstp dword [ecx + ebp]
mov ebp, dword [esp + 0x14]
fld dword [eax + 4]
add ecx, 0x10
fstp dword [ecx + ebp - 0xc]
mov ebp, dword [esp + 0x14]
fld dword [eax + 8]
add eax, edx
sub esi, 1
fstp dword [ecx + ebp - 8]
jne 0x4209e0
mov esi, bind
mov ecx, dword [esp + 0x14]
push 1
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x34], ecx
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x44], 0x10
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
call fcn.00413910
fld dword [esp + 0x70]
mov esi, dword [esp + 0x74]
add esp, 0x10
push esi
push ecx
lea edx, [esp + 0x40]
fstp dword [esp]
push edx
call fcn.004203b0
fld dword [esp + 0x6c]
mov eax, dword [esp + 0x34]
fstp dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
add esp, 0xc
test eax, eax
js 0x420aaf
and eax, 0x3fffffff
mov esi, eax
mov eax, dword [0x4c6060]
push eax
call edi
mov ecx, dword [esp + 0x20]
push 0x17
shl esi, 4
push esi
push ecx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esp + 0x4c]
test eax, eax
js 0x420add
mov edx, dword [0x4c6060]
and eax, 0x3fffffff
push edx
mov esi, eax
call edi
mov edx, dword [esp + 0x44]
lea ecx, [esi + esi*2]
add ecx, ecx
push 0x17
add ecx, ecx
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov esi, dword [esp + 0x40]
test esi, esi
js 0x420b05
mov eax, dword [0x4c6060]
push eax
and esi, 0x3fffffff
call edi
mov ecx, dword [esp + 0x38]
push 0x17
shl esi, 4
push esi
push ecx
mov ecx, eax
call fcn.004023e0
mov esi, dword [esp + 0x1c]
test esi, esi
js 0x420b2e
mov edx, dword [0x4c6060]
push edx
and esi, 0x3fffffff
call edi
mov ecx, dword [esp + 0x14]
push 0x17
shl esi, 4
push esi
push ecx
mov ecx, eax
call fcn.004023e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret