Function at 0x42bfe0
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], 0x4368b0
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 [0x452064]
test eax, eax
je 0x42c06f
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x42c084
cmp dword [eax], 1
mov edi, eax
jne 0x42c084
add edi, 4
cmp dword [edi], 0
jne 0x42c1d0
jmp 0x42c175
mov ecx, 0x452064
call fcn.0041d970
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x42c057
mov eax, dword [0x452064]
test eax, eax
je 0x42c0b3
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x42c0c7
mov edi, eax
cmp eax, 1
jne 0x42c107
mov byte [esi + 8], 4
mov dword [esi + 0x78], 4
call fcn.0042a3c0
jmp 0x42c250
mov ecx, 0x452064
call fcn.0041d970
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
jne 0x42c097
call sub.KERNEL32.dll_GetProcessHeap
push 0x14
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x42c393
mov dword [eax], 0
mov dword [eax + 0x10], 0x452064
mov edi, eax
mov eax, dword [0x452064]
test eax, eax
jne 0x42c100
mov ecx, 0x452064
call fcn.0041d970
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 0x42c175
test eax, eax
je 0x42c170
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 0x42c170
cmp dword [eax + 8], 9
jae 0x42c160
call sub.KERNEL32.dll_GetProcessHeap
push ebx
jmp 0x42c168
call sub.KERNEL32.dll_GetProcessHeap
push dword [ebx - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp dword [edi], 0
jne 0x42c1d0
mov dword [edi], 0xffffffff
mov eax, dword [edi + 4]
test eax, eax
je 0x42c1c3
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 0x42c230
mov dword [edi], 0
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x78], 0xffffffff
call fcn.0042a3c0
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.0042b820
add esp, 4
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x42c230
lea ecx, [esi + 8]
mov dword [esi + 0x78], 0xffffffff
call fcn.0042a880
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp al, 4
mov dword [esi + 0xc], ecx
mov dword [esi + 8], eax
jne 0x42c2ca
mov dword [esi + 0x78], 4
call fcn.0042a3c0
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.0042b820
add esp, 4
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x42c2a4
lea ecx, [esi + 0x10]
mov dword [esi + 0x78], 4
call fcn.0042a880
mov al, byte [esi + 8]
cmp al, 4
ja 0x42c332
cmp al, 2
je 0x42c332
cmp byte [esi + 0x40], 3
jne 0x42c2d6
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 0x42c2b9
movsd xmm0, qword [esi + 0x40]
lea eax, [esi + 0x60]
lea ecx, [esi + 0x20]
mov edx, 0x448e50
mov dword [esi + 0x20], 0x448e40
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], 0x40ce30
mov dword [esi + 0x18], eax
lea eax, [esi + 0x10]
mov dword [esi + 0x1c], 0x425730
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 2
movsd qword [esi + 8], xmm0
call fcn.004259c0
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 0x42c376
mov edi, dword [ebx]
cmp dword [eax + 8], 9
jae 0x42c366
call sub.KERNEL32.dll_GetProcessHeap
push edi
jmp 0x42c36e
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 0x42c2b9
jmp 0x42c2d6
mov ecx, 0x14
mov edx, 4
call fcn.0040dcf0
ud2