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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x80c]
push ebx
push esi
push edi
mov dword [ebp - 0x814], eax
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x81c], eax
call fcn.10002490
lea ecx, [ebp - 0x80c]
call fcn.1000a160
mov esi, dword [ebp - 0x80c]
cmp word [esi], 0x40
je 0x10009652
add esi, 0xfffffff0
push esi
call fcn.10002a60
mov ecx, dword [ebp - 0x814]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jmp 0x10009989
mov edi, dword [esi - 0xc]
mov ebx, 1
cmp edi, ebx
jge 0x10009664
mov ebx, edi
test ebx, ebx
jle 0x1000969f
sub edi, ebx
cmp dword [esi - 4], 1
jle 0x10009680
push dword [esi - 0xc]
lea ecx, [ebp - 0x80c]
call fcn.10002c20
mov esi, dword [ebp - 0x80c]
lea ecx, [edi*2 + 2]
push ecx
lea eax, [esi + ebx*2]
push eax
push ecx
push esi
call fcn.10007350
add esp, 0x10
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
lea edi, [eax + 0x10]
mov dword [ebp - 0x810], edi
jl 0x10009956
push 0x10202c44
push esi
call sub.msvcrt.dll_wcsstr
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10009953
sub ebx, esi
sar ebx, 1
cmp ebx, 0xffffffff
je 0x10009953
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x80c]
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.1000a000
push eax
lea ecx, [ebp - 0x810]
call fcn.10002790
mov edx, dword [ebp - 0x808]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009729
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x810]
call fcn.1000a160
push ebx
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x80c]
call fcn.10009ca0
push eax
lea ecx, [ebp - 0x80c]
call fcn.10002790
mov edx, dword [ebp - 0x808]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009773
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push eax
call fcn.10009120
add esp, 8
lea ecx, [ebp - 0x80c]
push eax
call fcn.10002790
mov edx, dword [ebp - 0x808]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100097b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x1025b450]
cmp eax, 0xffffffff
je 0x1000980c
cmp dword [0x1025b454], 0xffffffff
je 0x1000980c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov dword [ebp - 0x808], 0
test edi, edi
jne 0x1000980e
mov eax, dword [0x1025b458]
test eax, eax
je 0x1000980e
lea ecx, [ebp - 0x808]
push ecx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push dword [0x1025b450]
call esi
push dword [ebp - 0x808]
push dword [0x1025b454]
call esi
jmp 0x1000980e
xor edi, edi
mov esi, dword [ebp - 0x80c]
push 0x20
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
mov ecx, 0x1025b450
mov dword [ebp - 0x808], eax
call fcn.10008cd0
cmp dword [ebp - 0x808], 0
je 0x1000994b
push 1
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x810]
call fcn.10009ca0
mov ecx, 0x10202ca0
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000987e
test dx, dx
je 0x1000987a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000987e
add eax, 4
add ecx, 4
test dx, dx
jne 0x10009858
xor edi, edi
jmp 0x10009883
sbb edi, edi
or edi, 1
mov edx, dword [ebp - 0x818]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100098a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x100098b2
push 1
push edi
lea ecx, [ebp - 0x810]
call fcn.100056f0
mov edi, dword [ebp - 0x810]
push edi
call sub.msvcrt.dll__wtoi
add esp, 4
lea ecx, [ebp - 0x804]
push 0x400
push ecx
push eax
push dword [ebp - 0x808]
call dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x818], eax
add eax, eax
cmp eax, 0x800
jae 0x100099aa
push dword [ebp - 0x808]
xor ecx, ecx
mov word [ebp + eax - 0x804], cx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x818], 0
jle 0x10009956
mov ecx, dword [ebp - 0x814]
lea eax, [ebp - 0x804]
push eax
call fcn.10002490
lea ecx, [ebp - 0x810]
call fcn.10007e10
lea ecx, [ebp - 0x80c]
call fcn.10007e10
mov eax, dword [ebp - 0x814]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x810]
jmp 0x10009956
or ebx, 0xffffffff
push dword [ebp - 0x81c]
mov ecx, dword [ebp - 0x814]
call fcn.10002490
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000997e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10009993
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x814]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
call fcn.101c8260
int3