Function at 0x41ce30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1494
call fcn.0042ddc0
fld dword [0x4b3344]
fst dword [esp + 0x10]
cmp dword [ebp + 0x18], 2
fld dword [0x4b333c]
push ebx
fst dword [esp + 0x1c]
mov ebx, dword [ebp + 0xc]
fld dword [0x4b3338]
sete al
test ebx, ebx
fst dword [esp + 0x20]
fld dword [0x4b3334]
mov byte [esp + 0x12], al
fstp dword [esp + 0x24]
push esi
fxch st(1)
lea ecx, [esp + 0x6c]
fst dword [esp + 0x2c]
mov eax, 0x80000040
fst dword [esp + 0x30]
push edi
fld dword [0x4b3330]
mov byte [esp + 0x18], 0
fstp dword [esp + 0x38]
mov byte [esp + 0x19], 0
mov dword [esp + 0x60], ecx
fstp dword [esp + 0x3c]
mov dword [esp + 0x64], 0
fld dword [0x4b332c]
mov dword [esp + 0x68], eax
fstp dword [esp + 0x40]
fstp dword [esp + 0x44]
fstp dword [esp + 0x48]
fld dword [0x4b3340]
fstp dword [esp + 0x20]
jle 0x41cf51
mov esi, dword [ebp + 8]
add esi, 8
mov edi, ebx
jmp 0x41cee4
mov eax, dword [esp + 0x68]
and eax, 0x3fffffff
cmp dword [esp + 0x64], eax
jne 0x41cefe
lea edx, [esp + 0x60]
push 0x10
push edx
call fcn.00402730
add esp, 8
mov ecx, dword [esp + 0x64]
fld dword [esi - 8]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x60]
add ecx, 1
mov dword [esp + 0x64], ecx
fstp dword [eax]
fld dword [esi - 4]
add esi, 0x10
sub edi, 1
fstp dword [eax + 4]
fld dword [esi - 0x10]
fstp dword [eax + 8]
fld dword [esi - 0xc]
fstp dword [eax + 0xc]
jne 0x41cee0
mov eax, dword [esp + 0x64]
cmp eax, 1
jle 0x41cf51
push 0x415db0
add eax, 0xffffffff
push eax
mov eax, dword [esp + 0x68]
push edi
push eax
call fcn.00414160
add esp, 0x10
fld dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x64]
push edx
push ecx
fstp dword [esp]
call fcn.00416ad0
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
push esi
lea eax, [esp + 0x490]
mov dword [esp + 0x480], eax
xor eax, eax
push edi
push ecx
mov dword [esp + 0x48c], eax
mov dword [esi + 4], eax
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x498], 0x80000040
call fcn.0041cca0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push esi
push edi
push ecx
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x4a]
push ecx
call fcn.0041e3d0
mov al, byte [eax]
add esp, 0x38
test al, al
mov byte [esp + 0x16], al
jne 0x41d133
cmp byte [esp + 0x1a], al
je 0x41d142
xor eax, eax
mov dword [esp + 0x474], eax
mov byte [esp + 0x17], al
mov dword [esp + 0xc94], eax
lea eax, [esp + 0xc90]
push eax
lea edx, [esp + 0xca4]
mov dword [esp + 0xc94], edx
lea ecx, [esp + 0x474]
push ecx
lea edx, [esp + 0x1f]
push edx
lea eax, [esp + 0x5c]
push eax
push esi
push edi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x31]
push edx
mov dword [esp + 0xcb8], 0x80000040
call fcn.00419720
add esp, 0x20
cmp byte [esp + 0x17], 0
je 0x41d0fd
fld dword [0x4b2f70]
push ecx
lea eax, [esp + 0x64]
fstp dword [esp]
push eax
mov dword [esi + 4], 0
call fcn.00418920
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x888]
push edx
lea ecx, [esp + 0x89c]
push esi
mov dword [esp + 0x890], ecx
mov ecx, dword [esp + 0x70]
push eax
push ecx
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x8a0], 0
mov dword [esp + 0x8a4], 0x80000040
call fcn.004177e0
mov eax, dword [ebp + 8]
push esi
push edi
push ebx
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x45]
push edx
call fcn.0041e3d0
mov al, byte [eax]
mov byte [esp + 0x4a], al
mov eax, dword [esp + 0x8bc]
add esp, 0x34
test eax, eax
js 0x41d0fd
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x880]
push 0x17
shl ebx, 4
push ebx
push edx
mov ecx, eax
call fcn.004023e0
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc98]
test eax, eax
js 0x41d133
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [0x4c6060]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0xc90]
push 0x17
shl ebx, 5
push ebx
push ecx
mov ecx, eax
call fcn.004023e0
mov ebx, dword [ebp + 0xc]
cmp byte [esp + 0x1a], 0
jne 0x41d1f0
mov al, byte [esp + 0x16]
test al, al
mov byte [esp + 0x19], 1
jne 0x41d1f0
mov edx, dword [ebp + 8]
push esi
push edi
push ebx
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x2c], 1
call fcn.0041cca0
mov ecx, dword [ebp + 8]
push esi
push edi
push ebx
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3d]
push eax
call fcn.0041e3d0
add esp, 0x2c
cmp byte [eax], 0
jne 0x41d1f0
mov ecx, dword [ebp + 8]
fld dword [0x4b3450]
push esi
fstp dword [esp + 0x24]
push edi
push ebx
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0041cca0
mov eax, dword [ebp + 8]
push esi
push edi
push ebx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x3d]
push edx
call fcn.0041e3d0
add esp, 0x2c
cmp byte [eax], 0
jne 0x41d1f0
mov eax, dword [ebp + 8]
fld dword [0x4b333c]
push esi
fstp dword [esp + 0x4c]
push edi
push ebx
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0041cca0
mov edx, dword [ebp + 8]
push esi
push edi
push ebx
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x3d]
push ecx
call fcn.0041e3d0
add esp, 0x2c
mov esi, dword [esp + 0x478]
test esi, esi
js 0x41d223
mov edx, dword [0x4c6060]
push edx
and esi, 0x3fffffff
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x470]
push 0x17
shl esi, 4
push esi
push ecx
mov ecx, eax
call fcn.004023e0
mov esi, dword [esp + 0x68]
test esi, esi
js 0x41d250
mov edx, dword [0x4c6060]
push edx
and esi, 0x3fffffff
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x60]
push 0x17
shl esi, 4
push esi
push ecx
mov ecx, eax
call fcn.004023e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret