Function at 0x10025921
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002595e
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
movzx eax, word [eax]
and eax, 0xfff
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
jmp 0x10025b86
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x18]
push eax
push 0x4e6f
push 0x4e97
lea eax, [ebp - 0x14]
push eax
call fcn.10024d09
add esp, 0x14
mov dword [ebp - 8], 0x5b9b55bb
mov dword [ebp - 0x24], 0xedad94e8
mov dword [ebp - 8], 0
jmp 0x100259aa
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xfffffff2
jge 0x10025aac
mov dword [ebp - 0xc], 0
jmp 0x100259c4
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jge 0x100259d7
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x50], 0xbdbdf7c
jmp 0x100259bd
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x50], 0x82d5
jle 0x100259f6
mov dword [ebp - 0x1c], 1
jmp 0x100259fa
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
jl 0x10025a09
mov dword [ebp - 0x20], 1
jmp 0x10025a0d
and dword [ebp - 0x20], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x50]
cmp dword [ebp - 0x20], eax
jl 0x10025a27
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x50], 0
mov dword [ebp - 0x24], 0xfffffffd
cmp dword [ebp - 0x24], 0xfffffff7
je 0x10025a3d
mov dword [ebp - 0x28], 1
jmp 0x10025a41
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0xa5f34bda
je 0x10025a53
mov dword [ebp - 0x2c], 1
jmp 0x10025a57
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x2c], eax
jne 0x10025a6a
or eax, 0xffffffff
jne 0x10025a6a
and dword [ebp - 0x30], 0
jmp 0x10025a71
mov dword [ebp - 0x30], 1
imul eax, dword [ebp - 0x30], 0x9d73
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x50], eax
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10025aa7
push 0x5bd1
push 1
push 0x7cc5
push 0x4a48
call fcn.10024d69
add esp, 0x10
jmp 0x100259a3
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x10025b86
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x24]
and eax, 0x40
je 0x10025ada
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1002571d
add esp, 0xc
jmp 0x10025b86
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x24]
and eax, 0x80
je 0x10025b86
mov dword [ebp - 0x10], 0
jmp 0x10025afb
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x10025b0e
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x58], 0x68206240
jmp 0x10025af4
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x58], 0xffffffee
jmp 0x10025b33
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x58]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x58], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x58], 0x15
jne 0x10025b60
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x10025b5e
push 0x9f3
push 0x1501
push 0
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp 0x10025b1e
mov byte [ebp - 3], 0
movzx eax, byte [ebp - 3]
test eax, eax
je 0x10025b79
push 0
push 0x22f6
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 0x24]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret