Function at 0x437784
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.0043a8f5
test al, al
je 0x4377a9
or dword [ebp + 8], 0x200
mov ecx, dword [edi + 0x20]
call fcn.00435cab
xor edx, edx
push 0x30
inc edx
pop ecx
mov dword [ebp - 8], eax
call fcn.00444cf4
xor edx, edx
push 0x38
inc edx
pop ecx
mov dword [ebp - 4], eax
call fcn.00444cf4
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], 0x4375d2
mov ecx, dword [edi + 8]
call fcn.00444c8a
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
call fcn.00444cbc
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.00444cbc
mov dword [esi + 8], eax
mov ecx, dword [edi + 4]
call fcn.00444cbc
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 0x437887
mov eax, dword [ebx]
mov dword [esi], eax
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jne 0x437862
call fcn.004450d3
jmp 0x437867
call fcn.004450ae
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov ebx, dword [ebx + 0x20]
test ebx, ebx
je 0x437887
cmp word [ebx], 0
je 0x437887
mov ecx, ebx
call fcn.00444cbc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
call fcn.004363a7
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x437895
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 0xc], eax
cmp byte [0x4c6d08], dl
je 0x4378e4
mov eax, dword [0x4c6d0c]
cmp eax, 0xffffffff
je 0x4378e4
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4378e6
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 [0x4c6d0c]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x4378e6
xor esi, esi
mov eax, dword [ebp - 0xc]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c6d08], 0
mov esi, dword [0x4c6d0c]
je 0x437934
cmp esi, 0xffffffff
je 0x437934
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x43792a
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 [0x4c6d0c]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, esi
mov esi, dword [0x4c6d0c]
jmp 0x437936
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c6d08], 0
mov dword [ebp - 0xc], esp
je 0x43797a
cmp esi, 0xffffffff
je 0x43797a
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x43797c
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 [0x4c6d0c]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
jmp 0x43797c
xor esi, esi
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
cmp byte [0x4c6d08], 0
mov eax, dword [0x4c6d0c]
je 0x4379c8
cmp eax, 0xffffffff
je 0x4379c8
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4379be
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 [0x4c6d0c]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, dword [0x4c6d0c]
mov dword [ebp - 0xc], esi
jmp 0x4379cc
and dword [ebp - 0xc], 0
cmp byte [0x4c6d08], 0
je 0x437a07
cmp eax, 0xffffffff
je 0x437a07
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x437a03
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 [0x4c6d0c]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov edi, esi
jmp 0x437a09
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.004363a7
mov ecx, dword [edi + 0x18]
push esi
push eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, eax
call fcn.00421177
test eax, eax
je 0x437a3e
mov esi, dword [ebp - 4]
add eax, 8
mov dword [esi + 0x14], eax
jmp 0x437a47
mov eax, dword [ebp - 4]
and dword [eax + 0x14], 0
mov esi, eax
cmp dword [esi + 0x24], 0
jne 0x437a68
cmp byte [0x4c9461], 0
je 0x437a68
mov ecx, dword [ebx + 0x10]
call fcn.00435bdc
mov ecx, eax
call fcn.00444cbc
mov dword [esi + 0x24], eax
test dword [ebp + 8], 0x200
mov ecx, esi
je 0x437a7a
xor edx, edx
call dword [esi + 0x1c]
jmp 0x437a7f
call fcn.004710df
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 4