Function at 0x41e4e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], esp
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x74], 0x41fec0
lea eax, [esi + 0x70]
mov edx, dword fs:[0]
mov dword [esi + 0x70], edx
mov dword fs:[0], eax
mov dword [esi + 0x60], str.stdout
mov dword [esi + 0x64], 6
movsd xmm0, qword [ecx + 0x10]
movsd xmm2, qword [ecx]
movsd xmm1, qword [ecx + 8]
movsd qword [esi + 0x58], xmm0
movsd qword [esi + 0x50], xmm1
movsd qword [esi + 0x48], xmm2
mov eax, dword [0x43a08c]
test eax, eax
je 0x41e56f
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x41e584
cmp dword [eax], 1
mov edi, eax
jne 0x41e584
add edi, 4
cmp dword [edi], 0
jne 0x41e6d0
jmp 0x41e675
mov ecx, 0x43a08c
call fcn.00411cb0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x41e557
mov eax, dword [0x43a08c]
test eax, eax
je 0x41e5b3
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x41e5c7
mov edi, eax
cmp eax, 1
jne 0x41e607
mov byte [esi + 8], 4
mov dword [esi + 0x78], 4
call fcn.0041c9f0
jmp 0x41e750
mov ecx, 0x43a08c
call fcn.00411cb0
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
jne 0x41e597
call sub.KERNEL32.dll_GetProcessHeap
push 0x14
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x41e893
mov dword [eax], 0
mov dword [eax + 0x10], 0x43a08c
mov edi, eax
mov eax, dword [0x43a08c]
test eax, eax
jne 0x41e600
mov ecx, 0x43a08c
call fcn.00411cb0
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
cmp dword [edi], 0
mov dword [edi], 1
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea edi, [edi + 4]
je 0x41e675
test eax, eax
je 0x41e670
mov dword [esi + 4], edi
mov dword [esi + 0x78], 0
mov dword [esi + 0x3c], eax
push eax
mov dword [esi + 0x38], ecx
call dword [ecx]
add esp, 4
mov eax, dword [esi + 0x38]
mov edi, dword [esi + 4]
mov ebx, dword [esi + 0x3c]
cmp dword [eax + 4], 0
je 0x41e670
cmp dword [eax + 8], 9
jae 0x41e660
call sub.KERNEL32.dll_GetProcessHeap
push ebx
jmp 0x41e668
call sub.KERNEL32.dll_GetProcessHeap
push dword [ebx - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp dword [edi], 0
jne 0x41e6d0
mov dword [edi], 0xffffffff
mov eax, dword [edi + 4]
test eax, eax
je 0x41e6c3
movsd xmm0, qword [esi + 0x58]
movsd xmm2, qword [esi + 0x48]
movsd xmm1, qword [esi + 0x50]
mov ecx, dword [edi + 8]
lea edx, [esi + 0x20]
mov dword [esi + 4], edi
mov dword [esi + 0x78], 2
lea edi, [esi + 0x10]
movsd qword [esi + 0x30], xmm0
movsd qword [esi + 0x28], xmm1
movsd qword [esi + 0x20], xmm2
push edx
push eax
push edi
call dword [ecx + 0x1c]
add esp, 0xc
mov eax, dword [esi + 4]
inc dword [eax]
jmp 0x41e730
mov dword [edi], 0
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x78], 0xffffffff
call fcn.0041c9f0
movsd xmm0, qword [esi + 0x58]
movsd xmm2, qword [esi + 0x48]
movsd xmm1, qword [esi + 0x50]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea eax, [esi + 0x20]
mov dword [esi + 0x78], 1
lea ecx, [esi + 0x10]
lea edx, [esi + 8]
movsd qword [esi + 0x30], xmm0
movsd qword [esi + 0x28], xmm1
movsd qword [esi + 0x20], xmm2
push eax
call fcn.0041dd20
add esp, 4
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x41e730
lea ecx, [esi + 8]
mov dword [esi + 0x78], 0xffffffff
call fcn.0041ce60
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp al, 4
mov dword [esi + 0xc], ecx
mov dword [esi + 8], eax
jne 0x41e7ca
mov dword [esi + 0x78], 4
call fcn.0041c9f0
movsd xmm0, qword [esi + 0x58]
movsd xmm2, qword [esi + 0x48]
movsd xmm1, qword [esi + 0x50]
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
lea eax, [esi + 0x20]
mov dword [esi + 0x78], 5
lea ecx, [esi + 0x40]
lea edx, [esi + 0x10]
movsd qword [esi + 0x30], xmm0
movsd qword [esi + 0x28], xmm1
movsd qword [esi + 0x20], xmm2
push eax
call fcn.0041dd20
add esp, 4
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x41e7a4
lea ecx, [esi + 0x10]
mov dword [esi + 0x78], 4
call fcn.0041ce60
mov al, byte [esi + 8]
cmp al, 4
ja 0x41e832
cmp al, 2
je 0x41e832
cmp byte [esi + 0x40], 3
jne 0x41e7d6
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
cmp byte [esi + 0x40], 3
je 0x41e7b9
movsd xmm0, qword [esi + 0x40]
lea eax, [esi + 0x60]
lea ecx, [esi + 0x20]
mov edx, 0x432358
mov dword [esi + 0x20], 0x432348
mov dword [esi + 0x24], 2
mov dword [esi + 0x28], 0
mov dword [esi + 0x78], 6
mov dword [esi + 0x10], eax
lea eax, [esi + 8]
mov dword [esi + 0x14], 0x40c200
mov dword [esi + 0x18], eax
lea eax, [esi + 0x10]
mov dword [esi + 0x1c], 0x4198b0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 2
movsd qword [esi + 8], xmm0
call fcn.00419b40
ud2
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov dword [esi + 4], ecx
mov ecx, dword [ecx + 4]
mov dword [esi + 0x78], 3
push eax
call dword [ecx]
add esp, 4
mov ebx, dword [esi + 4]
mov eax, dword [ebx + 4]
cmp dword [eax + 4], 0
je 0x41e876
mov edi, dword [ebx]
cmp dword [eax + 8], 9
jae 0x41e866
call sub.KERNEL32.dll_GetProcessHeap
push edi
jmp 0x41e86e
call sub.KERNEL32.dll_GetProcessHeap
push dword [edi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetProcessHeap
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp byte [esi + 0x40], 3
je 0x41e7b9
jmp 0x41e7d6
mov ecx, 0x14
mov edx, 4
call fcn.00404cd0
ud2