Function at 0x4149e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
cmp dword [edi + 4], ecx
jle 0x414a30
mov ebx, dword [esi]
mov eax, dword [edi]
lea ecx, [ecx]
mov edx, dword [eax]
cmp edx, ebx
jne 0x414a0e
mov ebx, dword [eax + 4]
cmp ebx, dword [esi + 4]
je 0x414a27
mov ebx, dword [esi]
cmp dword [eax + 4], ebx
jne 0x414a1a
cmp edx, dword [esi + 4]
je 0x414a27
add ecx, 1
add eax, 0x20
cmp ecx, dword [edi + 4]
jl 0x414a00
jmp 0x414a30
cmp ecx, 0xffffffff
jne 0x414bec
mov eax, dword [edi + 8]
and eax, 0x3fffffff
cmp dword [edi + 4], eax
jne 0x414a48
push 0x20
push edi
call fcn.00402730
add esp, 8
mov ecx, dword [edi + 4]
mov eax, ecx
add ecx, 1
mov dword [edi + 4], ecx
mov ecx, dword [esi]
shl eax, 5
add eax, dword [edi]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
fld dword [esi + 0x10]
fstp dword [eax + 0x10]
lea ecx, [esi + 0x10]
fld dword [ecx + 4]
lea edx, [esp + 0x14]
fstp dword [eax + 0x14]
push edx
fld dword [ecx + 8]
fstp dword [eax + 0x18]
fld dword [ecx + 0xc]
fstp dword [eax + 0x1c]
mov edx, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi]
mov esi, dword [ebp + 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x27]
push ecx
mov dword [esp + 0x38], bind
call fcn.004147d0
add esp, 0x1c
cmp byte [eax], 0
je 0x414bbf
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 8]
mov ebx, dword [esp + 0x14]
and edx, 0x3fffffff
cmp dword [ecx + 4], edx
jne 0x414ae3
push 0x10
push ecx
call fcn.00402730
mov ecx, dword [ebp + 0x14]
add esp, 8
mov edx, dword [ecx + 4]
mov eax, edx
shl eax, 4
add eax, dword [ecx]
add edx, 1
mov dword [ecx + 4], edx
fld dword [ebx]
fstp dword [eax]
fld dword [ebx + 4]
fstp dword [eax + 4]
fld dword [ebx + 8]
fstp dword [eax + 8]
fld dword [ebx + 0xc]
xor ebx, ebx
fstp dword [eax + 0xc]
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
jle 0x414bbf
lea esp, [esp]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + ebx + 0x10]
add eax, ebx
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 0x10]
push ecx
push edx
push esi
call fcn.004142e0
mov eax, dword [ebp + 0x14]
push eax
push edi
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.004149e0
mov edx, dword [esp + 0x38]
mov ecx, dword [ebx + edx + 0x14]
lea eax, [ebx + edx]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 0x14]
push ecx
push edx
push esi
call fcn.004142e0
mov eax, dword [ebp + 0x14]
push eax
push edi
lea ecx, [esp + 0x80]
push esi
push ecx
call fcn.004149e0
mov eax, dword [esp + 0x58]
add eax, 1
add esp, 0x48
add ebx, 0x20
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jl 0x414b20
mov esi, dword [esp + 0x1c]
test esi, esi
js 0x414bec
mov edx, dword [0x4c6060]
push edx
and esi, 0x3fffffff
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x14]
push 0x17
shl esi, 5
push esi
push ecx
mov ecx, eax
call fcn.004023e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret