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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
mov ebx, edx
mov edx, str.magnet:_
call fcn.0043985f
test al, al
je 0x43670a
or dword [ebp + 8], 0x200
mov ecx, dword [edi + 0x20]
call fcn.00434c4d
xor edx, edx
push 0x30
inc edx
pop ecx
mov dword [ebp - 8], eax
call fcn.00443c00
xor edx, edx
push 0x38
inc edx
pop ecx
mov dword [ebp - 4], eax
call fcn.00443c00
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], 0x436540
mov ecx, dword [edi + 8]
call fcn.00443b96
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
call fcn.00443bc8
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
call fcn.00443bc8
mov dword [esi + 8], eax
mov ecx, dword [edi + 4]
call fcn.00443bc8
mov dword [esi + 4], eax
mov ax, word [edi + 0x1a]
mov word [esi + 0x12], ax
mov ax, word [edi + 0x1c]
mov word [esi + 0x14], ax
mov ax, word [edi + 0x18]
mov word [esi + 0x10], ax
mov al, byte [edi + 0x24]
and al, 1
mov byte [esi + 0x20], al
mov eax, dword [edi + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x24], eax
test ebx, ebx
je 0x4367e8
mov eax, dword [ebx]
mov dword [esi], eax
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jne 0x4367c3
call fcn.00443fdf
jmp 0x4367c8
call fcn.00443fba
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov ebx, dword [ebx + 0x20]
test ebx, ebx
je 0x4367e8
cmp word [ebx], 0
je 0x4367e8
mov ecx, ebx
call fcn.00443bc8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
call fcn.00435349
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4367f6
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 0xc], eax
cmp byte [0x4c3bb0], dl
je 0x436845
mov eax, dword [0x4c3bb4]
cmp eax, 0xffffffff
je 0x436845
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436847
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x436847
xor esi, esi
mov eax, dword [ebp - 0xc]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c3bb0], 0
mov esi, dword [0x4c3bb4]
je 0x436895
cmp esi, 0xffffffff
je 0x436895
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x43688b
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, esi
mov esi, dword [0x4c3bb4]
jmp 0x436897
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c3bb0], 0
mov dword [ebp - 0xc], esp
je 0x4368db
cmp esi, 0xffffffff
je 0x4368db
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4368dd
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x4368dd
xor esi, esi
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
cmp byte [0x4c3bb0], 0
mov eax, dword [0x4c3bb4]
je 0x436929
cmp eax, 0xffffffff
je 0x436929
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x43691f
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, dword [0x4c3bb4]
mov dword [ebp - 0xc], esi
jmp 0x43692d
and dword [ebp - 0xc], 0
cmp byte [0x4c3bb0], 0
je 0x436968
cmp eax, 0xffffffff
je 0x436968
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x436964
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov edi, esi
jmp 0x43696a
xor edi, edi
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx + 0x10]
mov esi, dword [eax + 0x14]
call fcn.00435349
mov ecx, dword [edi + 0x18]
push esi
push eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, eax
call fcn.004203bf
test eax, eax
je 0x43699f
mov esi, dword [ebp - 4]
add eax, 8
mov dword [esi + 0x14], eax
jmp 0x4369a8
mov eax, dword [ebp - 4]
and dword [eax + 0x14], 0
mov esi, eax
cmp dword [esi + 0x24], 0
jne 0x4369c9
cmp byte [0x4c62f9], 0
je 0x4369c9
mov ecx, dword [ebx + 0x10]
call fcn.00434b97
mov ecx, eax
call fcn.00443bc8
mov dword [esi + 0x24], eax
test dword [ebp + 8], 0x200
mov ecx, esi
je 0x4369db
xor edx, edx
call dword [esi + 0x1c]
jmp 0x4369e0
call fcn.0046fbd4
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 4