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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 7
mov esi, ecx
push 0x48ee34
push esi
mov dword [ebp - 0xc], edx
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
je 0x41501b
xor al, al
jmp 0x4152dd
add esi, 7
mov eax, esi
mov dword [ebp - 0x10], esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x415026
mov ebx, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub eax, ecx
mov dword [ebp - 8], eax
cmp byte [0x4c3bb0], dl
je 0x415075
mov eax, dword [0x4c3bb4]
cmp eax, 0xffffffff
je 0x415075
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x415077
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 0x415077
xor esi, esi
mov eax, dword [ebp - 8]
inc eax
mov dword [esi + 0x14], eax
cmp byte [0x4c3bb0], 0
mov esi, dword [0x4c3bb4]
je 0x4150c5
cmp esi, 0xffffffff
je 0x4150c5
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4150bb
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 0x4150c7
xor eax, eax
mov eax, dword [eax + 0x14]
call section..text
cmp byte [0x4c3bb0], 0
mov dword [ebp - 8], esp
je 0x41510b
cmp esi, 0xffffffff
je 0x41510b
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x41510d
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 0x41510d
xor esi, esi
mov eax, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp byte [0x4c3bb0], 0
mov eax, dword [0x4c3bb4]
je 0x415159
cmp eax, 0xffffffff
je 0x415159
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x41514f
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 - 8], esi
jmp 0x41515d
and dword [ebp - 8], 0
cmp byte [0x4c3bb0], 0
je 0x415198
cmp eax, 0xffffffff
je 0x415198
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x415194
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 ecx, esi
jmp 0x41519a
xor ecx, ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov ecx, dword [ecx + 0x18]
push eax
push dword [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp + 8]
add esp, 0xc
mov byte [ebp - 1], 0
test ecx, ecx
je 0x4151be
and dword [ecx], 0
mov ebx, dword [ebp + 0xc]
lea edi, [eax + 1]
mov dl, 0x26
mov ecx, edi
call fcn.00439af6
mov dl, 0x3d
mov ecx, edi
mov dword [ebp + 0xc], eax
call fcn.00439af6
mov ecx, edi
mov esi, eax
call fcn.00442462
test esi, esi
je 0x4151ed
mov ecx, esi
call fcn.00442462
push 2
push 0x48ff9c
push edi
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x415253
test esi, esi
je 0x415253
push 9
push str.urn:btih:
push esi
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x415253
add esi, 9
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x415221
sub eax, ecx
cmp eax, 0x20
jne 0x41523e
mov ecx, dword [ebp - 0xc]
push eax
push esi
push 0x14
pop edx
call fcn.00441f2f
jmp 0x41524e
cmp eax, 0x28
jne 0x4152c1
mov ecx, dword [ebp - 0xc]
push eax
mov edx, esi
call fcn.00414197
mov byte [ebp - 1], al
jmp 0x4152c1
cmp dword [ebp + 8], 0
je 0x41527f
push 2
push 0x48ff8c
push edi
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x41527f
test esi, esi
je 0x4152c1
mov ecx, esi
call fcn.00443b96
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4152c1
test ebx, ebx
je 0x4152c1
push 2
push 0x48ff88
push edi
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x4152c1
test esi, esi
je 0x4152c1
mov ecx, esi
call fcn.00443b96
mov esi, eax
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 4]
jb 0x4152b3
mov ecx, ebx
call fcn.0042cef9
mov eax, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 8], ecx
mov ecx, dword [ebx]
mov dword [ecx + eax*4], esi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4151c4
cmp byte [ebp - 1], 0
jne 0x4152da
mov ecx, dword [ebp + 8]
call fcn.0043a24c
mov al, byte [ebp - 1]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 8