Function at 0x437764
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.0043a8d4
test al, al
je 0x437789
or dword [ebp + 8], 0x200
mov ecx, dword [edi + 0x20]
call fcn.00435c8a
xor edx, edx
push 0x30
inc edx
pop ecx
mov dword [ebp - 8], eax
call fcn.00444d49
xor edx, edx
push 0x38
inc edx
pop ecx
mov dword [ebp - 4], eax
call fcn.00444d49
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], 0x4375b2
mov ecx, dword [edi + 8]
call fcn.00444cdf
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
call fcn.00444d11
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.00444d11
mov dword [esi + 8], eax
mov ecx, dword [edi + 4]
call fcn.00444d11
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 0x437867
mov eax, dword [ebx]
mov dword [esi], eax
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jne 0x437842
call fcn.00445128
jmp 0x437847
call fcn.00445103
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov ebx, dword [ebx + 0x20]
test ebx, ebx
je 0x437867
cmp word [ebx], 0
je 0x437867
mov ecx, ebx
call fcn.00444d11
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
call fcn.00436386
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x437875
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 0xc], eax
cmp byte [0x4c5ce8], dl
je 0x4378c4
mov eax, dword [0x4c5cec]
cmp eax, 0xffffffff
je 0x4378c4
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4378c6
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 [0x4c5cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x4378c6
xor esi, esi
mov eax, dword [ebp - 0xc]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c5ce8], 0
mov esi, dword [0x4c5cec]
je 0x437914
cmp esi, 0xffffffff
je 0x437914
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x43790a
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 [0x4c5cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, esi
mov esi, dword [0x4c5cec]
jmp 0x437916
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c5ce8], 0
mov dword [ebp - 0xc], esp
je 0x43795a
cmp esi, 0xffffffff
je 0x43795a
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x43795c
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 [0x4c5cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x43795c
xor esi, esi
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
cmp byte [0x4c5ce8], 0
mov eax, dword [0x4c5cec]
je 0x4379a8
cmp eax, 0xffffffff
je 0x4379a8
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x43799e
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 [0x4c5cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, dword [0x4c5cec]
mov dword [ebp - 0xc], esi
jmp 0x4379ac
and dword [ebp - 0xc], 0
cmp byte [0x4c5ce8], 0
je 0x4379e7
cmp eax, 0xffffffff
je 0x4379e7
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4379e3
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 [0x4c5cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov edi, esi
jmp 0x4379e9
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.00436386
mov ecx, dword [edi + 0x18]
push esi
push eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, eax
call fcn.0042114f
test eax, eax
je 0x437a1e
mov esi, dword [ebp - 4]
add eax, 8
mov dword [esi + 0x14], eax
jmp 0x437a27
mov eax, dword [ebp - 4]
and dword [eax + 0x14], 0
mov esi, eax
cmp dword [esi + 0x24], 0
jne 0x437a48
cmp byte [0x4c8421], 0
je 0x437a48
mov ecx, dword [ebx + 0x10]
call fcn.00435bbb
mov ecx, eax
call fcn.00444d11
mov dword [esi + 0x24], eax
test dword [ebp + 8], 0x200
mov ecx, esi
je 0x437a5a
xor edx, edx
call dword [esi + 0x1c]
jmp 0x437a5f
call fcn.00470f5c
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 4