Function at 0x10002620
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x68
mov eax, dword [ebp + 0xc]
mov cx, word [ebp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, word [ebp + 8]
lea edi, [0x1000a6f3]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [ebp - 0x20], eax
mov word [ebp - 0x22], cx
call pe_dos_header
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x14
mov dword [ebp - 0x2c], edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
lea edx, [0x1000a250]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xa0
imul eax, dword [ebp - 0x14], 0x50
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [ebp - 0x34], edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10002729
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
mov dword [ebp - 0xc], 0x8007000e
jmp 0x10002830
lea eax, [ebp - 0x1c]
mov ecx, dword [0x1000d420]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor ecx, ecx
lea edx, [0x10008d80]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
sub esp, 8
xor ecx, ecx
mov edx, dword [0x1000d420]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
mov ecx, dword [ebp - 0x18]
lea edx, str.enumerated__d_rfc1766_structures_n
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x50], eax
call pe_dos_header
cmp dword [ebp - 0x18], 0
jne 0x1000280f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x54]
mov dword [esp + 8], eax
mov dword [ebp - 0x58], ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], eax
mov dword [ebp - 0x64], ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
mov dword [ebp - 0xc], 0x80004005
jmp 0x10002830
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
add esp, 0x68
pop esi
pop edi
pop ebp
ret