Function at 0x410c60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x410efc
mov eax, dword [esp + 0x24]
mov edx, dword [ecx]
test eax, eax
je 0x410eb8
add edx, dword [eax]
jo 0x410f18
test edx, edx
js 0x410f2a
mov ecx, 0x49ef40
call fcn.00409ca0
mov ebx, dword [esp + 0x28]
mov ecx, eax
test ebx, ebx
je 0x410d9c
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
sub eax, 1
mov dword [esp + 0x30], eax
seto al
movzx eax, al
mov ebp, eax
jo 0x410f18
test ecx, ecx
je 0x410ed0
mov dword [esp + 0x2c], ecx
jmp 0x410d8e
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
cmp ebp, eax
jae 0x410f1d
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
cmp ebp, eax
jae 0x410f1d
mov eax, dword [esp + 0x28]
mov ebx, ebp
shl ebx, 4
lea edx, [eax + ebx]
mov esi, dword [edx + 8]
test esi, esi
je 0x410d13
add dword [esi - 8], 8
add ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 8]
test eax, eax
je 0x410d7c
lea edi, [eax - 8]
mov dword [esp + 0x34], edi
mov edi, dword [eax - 8]
lea ecx, [edi - 8]
mov dword [eax - 8], ecx
cmp ecx, 7
ja 0x410d7c
mov edi, dword [0x49c308]
mov dword [esp + 0x3c], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x38], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov ecx, dword [esp + 0x38]
add edi, 0x2c
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, dword [esp + 0x34]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00405190
mov edx, dword [esp + 0x3c]
mov dword [ebx + 8], esi
fld qword [edx + 0x10]
add ebp, 1
fstp qword [ebx + 0x10]
jo 0x410f18
cmp dword [esp + 0x30], ebp
jge 0x410ce0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x410ef2
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
sub eax, 1
mov dword [esp + 0x30], eax
seto al
movzx eax, al
mov ebp, eax
jo 0x410f18
mov edi, ecx
jmp 0x410e85
mov eax, dword [edi]
cmp ebx, eax
jae 0x410f22
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
cmp ebp, eax
jae 0x410f1d
mov esi, ebp
shl esi, 4
add esi, dword [esp + 0x24]
mov edx, dword [esi + 8]
test edx, edx
je 0x410dfc
add dword [edx - 8], 8
shl ebx, 4
add ebx, edi
mov eax, dword [ebx + 8]
test eax, eax
je 0x410e73
lea ecx, [eax - 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax - 8]
sub ecx, 8
mov dword [eax - 8], ecx
cmp ecx, 7
ja 0x410e73
mov eax, dword [0x49c308]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x34], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
add eax, 0x2c
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00405190
mov edx, dword [esp + 0x3c]
mov dword [ebx + 8], edx
fld qword [esi + 0x10]
add ebp, 1
fstp qword [ebx + 0x10]
jo 0x410f18
cmp dword [esp + 0x30], ebp
jl 0x410ef0
mov eax, dword [esp + 0x28]
mov ebx, ebp
test eax, eax
je 0x410e99
add ebx, dword [eax]
jo 0x410f18
test edi, edi
jne 0x410dd0
mov eax, 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0040a570
lea esi, [esi]
test edx, edx
js 0x410f2a
mov ecx, 0x49ef40
call fcn.00409ca0
mov ecx, eax
jmp 0x410cad
mov edx, dword [esp + 0x30]
test edx, edx
js 0x410d9c
mov eax, 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0040a570
lea esi, [esi]
mov ecx, edi
add esp, 0x4c
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
test edx, edx
je 0x410f07
mov edx, dword [edx]
jmp 0x410c8d
add esp, 0x4c
mov ecx, 0x49ef40
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00409ca0
call fcn.00409ba0
sub eax, 1
jmp 0x410ee1
sub eax, 1
jmp 0x410ea6
mov dword [esp], edx
sar edx, 0x1f
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], edx
call fcn.0040b690
lea esi, [esi]