Function at 0x4377ca
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.0043a916
test al, al
je 0x4377ef
or dword [ebp + 8], 0x200
mov ecx, dword [edi + 0x20]
call fcn.00435cb7
xor edx, edx
push 0x30
inc edx
pop ecx
mov dword [ebp - 8], eax
call fcn.00444d26
xor edx, edx
push 0x38
inc edx
pop ecx
mov dword [ebp - 4], eax
call fcn.00444d26
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], 0x437618
mov ecx, dword [edi + 8]
call fcn.00444cbc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
call fcn.00444cee
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.00444cee
mov dword [esi + 8], eax
mov ecx, dword [edi + 4]
call fcn.00444cee
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 0x4378cd
mov eax, dword [ebx]
mov dword [esi], eax
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jne 0x4378a8
call fcn.00445105
jmp 0x4378ad
call fcn.004450e0
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov ebx, dword [ebx + 0x20]
test ebx, ebx
je 0x4378cd
cmp word [ebx], 0
je 0x4378cd
mov ecx, ebx
call fcn.00444cee
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
call fcn.004363b4
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4378db
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 0xc], eax
cmp byte [0x4c6ce8], dl
je 0x43792a
mov eax, dword [0x4c6cec]
cmp eax, 0xffffffff
je 0x43792a
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x43792c
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 [0x4c6cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x43792c
xor esi, esi
mov eax, dword [ebp - 0xc]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c6ce8], 0
mov esi, dword [0x4c6cec]
je 0x43797a
cmp esi, 0xffffffff
je 0x43797a
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x437970
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 [0x4c6cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, esi
mov esi, dword [0x4c6cec]
jmp 0x43797c
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c6ce8], 0
mov dword [ebp - 0xc], esp
je 0x4379c0
cmp esi, 0xffffffff
je 0x4379c0
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4379c2
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 [0x4c6cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x4379c2
xor esi, esi
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
cmp byte [0x4c6ce8], 0
mov eax, dword [0x4c6cec]
je 0x437a0e
cmp eax, 0xffffffff
je 0x437a0e
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x437a04
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 [0x4c6cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, dword [0x4c6cec]
mov dword [ebp - 0xc], esi
jmp 0x437a12
and dword [ebp - 0xc], 0
cmp byte [0x4c6ce8], 0
je 0x437a4d
cmp eax, 0xffffffff
je 0x437a4d
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x437a49
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 [0x4c6cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov edi, esi
jmp 0x437a4f
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.004363b4
mov ecx, dword [edi + 0x18]
push esi
push eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, eax
call fcn.0042113d
test eax, eax
je 0x437a84
mov esi, dword [ebp - 4]
add eax, 8
mov dword [esi + 0x14], eax
jmp 0x437a8d
mov eax, dword [ebp - 4]
and dword [eax + 0x14], 0
mov esi, eax
cmp dword [esi + 0x24], 0
jne 0x437aae
cmp byte [0x4c9441], 0
je 0x437aae
mov ecx, dword [ebx + 0x10]
call fcn.00435be8
mov ecx, eax
call fcn.00444cee
mov dword [esi + 0x24], eax
test dword [ebp + 8], 0x200
mov ecx, esi
je 0x437ac0
xor edx, edx
call dword [esi + 0x1c]
jmp 0x437ac5
call fcn.00471181
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 4