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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
call fcn.1000ad40
push eax
mov ecx, 0x1025a378
call fcn.10009a80
mov ecx, dword [ebp + 0x1c]
mov esi, eax
test ecx, ecx
je 0x10092b1f
mov eax, dword [ebp + 0x20]
lea edi, [ebp + 0xc]
cmp eax, 8
jb 0x10092ad8
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10092bc9
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10092b04
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10092af9
mov eax, dword [eax + 0x3c]
jmp 0x10092afb
xor eax, eax
test eax, eax
je 0x10092b04
push edi
call eax
jmp 0x10092b0b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10092bc0
test al, 0x10
jne 0x10092bc0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
xor eax, eax
mov word [ebp + 0xc], ax
mov eax, dword [0x1025a378]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 7
cmp eax, 0xffffffff
je 0x10092d26
cmp dword [0x1025a37c], 0xffffffff
je 0x10092d26
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test esi, esi
je 0x10092f44
mov dword [ebp - 0x80], 0
test eax, eax
jne 0x10092f72
mov eax, dword [0x1025a380]
test eax, eax
je 0x10092f72
lea ecx, [ebp - 0x80]
push ecx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push dword [0x1025a378]
call esi
push dword [ebp - 0x80]
push dword [0x1025a37c]
call esi
jmp 0x10092f72
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0xc]
lea edx, [ebp + 0xc]
cmp eax, 8
jb 0x10092bd3
mov edx, edi
push 8
push str.file:___
push 0
push ecx
push edx
call fcn.1002d2d0
add esp, 0x14
test eax, eax
jne 0x10092e70
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10006aa0
push 0x10219d7c
lea ecx, [ebp - 0x4c]
call fcn.10006b40
push str.file:___
lea ecx, [ebp - 0x34]
call fcn.10006b40
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1009b4d0
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.1001d6d0
lea ecx, [ebp - 0x4c]
call fcn.1001d6d0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
jb 0x10092c44
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1000bcb0
add esp, 4
test eax, eax
je 0x10092d39
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.10006a50
lea ecx, [ebp - 0x1c]
call fcn.1001d6d0
mov eax, dword [0x1025a378]
cmp eax, 0xffffffff
je 0x10092cec
cmp dword [0x1025a37c], 0xffffffff
je 0x10092cec
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test esi, esi
je 0x10092cbe
mov dword [ebp - 0x80], 0
test eax, eax
jne 0x10092cec
mov eax, dword [0x1025a380]
test eax, eax
je 0x10092cec
lea ecx, [ebp - 0x80]
push ecx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push dword [0x1025a378]
call esi
push dword [ebp - 0x80]
push dword [0x1025a37c]
call esi
jmp 0x10092cec
test eax, eax
je 0x10092cec
cmp dword [0x1025a384], 0
je 0x10092cec
push dword [0x1025a37c]
call edi
push eax
call dword [0x1025a384]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025a378]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x10092d26
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10092d1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10092faf
push edx
push ecx
call fcn.102134ff
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x10219e0c
lea ecx, [ebp - 0x7c]
call fcn.10006b40
push 0x1021cffc
lea ecx, [ebp - 0x64]
call fcn.10006b40
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1009b4d0
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.1001d6d0
lea ecx, [ebp - 0x7c]
call fcn.1001d6d0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
jb 0x10092d83
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1000bcb0
add esp, 4
test eax, eax
je 0x10092e68
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.10006a50
lea ecx, [ebp - 0x1c]
call fcn.1001d6d0
mov eax, dword [0x1025a378]
cmp eax, 0xffffffff
je 0x10092e2b
cmp dword [0x1025a37c], 0xffffffff
je 0x10092e2b
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test esi, esi
je 0x10092dfd
mov dword [ebp - 0x80], 0
test eax, eax
jne 0x10092e2b
mov eax, dword [0x1025a380]
test eax, eax
je 0x10092e2b
lea ecx, [ebp - 0x80]
push ecx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push dword [0x1025a378]
call esi
push dword [ebp - 0x80]
push dword [0x1025a37c]
call esi
jmp 0x10092e2b
test eax, eax
je 0x10092e2b
cmp dword [0x1025a384], 0
je 0x10092e2b
push dword [0x1025a37c]
call edi
push eax
call dword [0x1025a384]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025a378]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x10092d26
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10092d1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10092faf
jmp 0x10092d1c
lea ecx, [ebp - 0x1c]
call fcn.1001d6d0
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.10006aa0
push ebx
call fcn.10096130
mov eax, dword [0x1025a378]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x10092f0b
cmp dword [0x1025a37c], 0xffffffff
je 0x10092f0b
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test esi, esi
je 0x10092edd
mov dword [ebp - 0x80], 0
test eax, eax
jne 0x10092f0b
mov eax, dword [0x1025a380]
test eax, eax
je 0x10092f0b
lea ecx, [ebp - 0x80]
push ecx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push dword [0x1025a378]
call esi
push dword [ebp - 0x80]
push dword [0x1025a37c]
call esi
jmp 0x10092f0b
test eax, eax
je 0x10092f0b
cmp dword [0x1025a384], 0
je 0x10092f0b
push dword [0x1025a37c]
call edi
push eax
call dword [0x1025a384]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025a378]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x10092d26
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10092d1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10092faa
jmp 0x10092d1c
test eax, eax
je 0x10092f72
cmp dword [0x1025a384], 0
je 0x10092f72
push dword [0x1025a37c]
call edi
push eax
call dword [0x1025a384]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025a378]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x10092d26
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10092d1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10092d1c
call fcn.10200ab0
call fcn.10200ab0
int3