Function at 0x100266c8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x90], 0xb364
mov dword [ebp - 0x10], 0xe
jmp 0x100266f9
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jne 0x1002690c
mov dword [ebp - 4], 0xfffffff8
mov dword [ebp - 0x1c], 0
jmp 0x1002671a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jge 0x1002672d
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x4c], 6
jmp 0x10026713
mov dword [ebp - 4], 0xf
jmp 0x1002673d
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffe7
jle 0x100268b0
mov dword [ebp - 0xc], 0xfffffffc
mov dword [ebp - 0xc], 0xfffffff3
jmp 0x1002675e
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffea
jl 0x100268ab
mov dword [ebp - 8], 0xaafe30f5
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 8], 0
jmp 0x10026786
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x100268a6
mov dword [ebp - 0x3c], 0xfffffff6
mov dword [ebp - 0xa4], 1
mov byte [ebp - 0x13], 0
movzx eax, byte [ebp - 0x13]
test eax, eax
je 0x100267c1
push 0x2639
push 0
push 0x1d1f
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xc], 0
jne 0x10026822
mov dword [ebp - 0x40], 0x3f5e
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x40], eax
jg 0x100267e8
mov dword [ebp - 0x58], 1
jmp 0x100267ec
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x99da
jl 0x1002680a
cmp dword [ebp - 4], 0
je 0x1002680a
mov dword [ebp - 0x48], 1
jmp 0x1002680e
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x10]
cmp eax, 6
jne 0x10026822
mov dword [ebp - 0x68], 1
jmp 0x10026826
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x68], eax
jg 0x1002683a
mov dword [ebp - 0x9c], 1
jmp 0x10026841
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x50]
mov dword [ebp + eax*4 - 0x4c], ecx
cmp dword [ebp - 0x50], 0xfffffff6
jae 0x1002686f
mov eax, 0xb752bf39
test eax, eax
jne 0x1002686f
and dword [ebp - 0x60], 0
jmp 0x10026876
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x60], eax
jg 0x10026887
mov dword [ebp - 0x38], 1
jmp 0x1002688b
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x38]
lea eax, [ecx + eax + 0x7ff0b2b2]
add eax, dword [ebp - 0xa4]
mov dword [ebp - 0x3c], eax
jmp 0x1002677f
jmp 0x10026757
jmp 0x10026736
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x54]
mov dword [ebp + eax - 0x4c], ecx
cmp dword [ebp - 0x54], 0xbc46
jle 0x100268d5
mov dword [ebp - 0x5c], 1
jmp 0x100268d9
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xb8], eax
imul eax, dword [ebp - 0x5c], 0x67c8
cmp eax, dword [ebp - 0x90]
jl 0x100268fa
mov dword [ebp - 0x64], 1
jmp 0x100268fe
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x64]
mov dword [ebp - 4], eax
jmp 0x100266f2
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x10026920
push 0
call dword [sym.imp.USER32.dll_GetMenuItemCount]
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10026938
push 0x113a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x10026c4a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xcc], 8
mov dword [ebp - 0xc0], 1
mov dword [ebp - 0xc4], 4
mov dword [ebp - 0x30], 0
jmp 0x10026978
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jge 0x1002698e
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0xb4], 0x77862fd4
jmp 0x10026971
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0xb4], 0xfffffffb
jmp 0x100269bc
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xb4]
dec eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0xb4], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0xb4], 0xffffffe8
jle 0x100269dc
mov dword [ebp - 0x6c], 0x11151
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
jmp 0x100269a1
mov dword [ebp - 0x28], 0
jmp 0x100269ec
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 3
jge 0x10026a02
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0xe8], 1
jmp 0x100269e5
mov byte [ebp - 0x12], 0
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x10026a24
push 0x1352
push 0
push 0
push 0x1fda
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10026a3f
push 0x21bd
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x98], 0xfffffffa
push 4
pop eax
shl eax, 1
mov dword [ebp + eax - 0x7c], 0xfffffff8
jmp 0x10026a93
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x7c]
dec eax
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x7c], eax
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x7c], 0xfffffff4
jge 0x10026c2e
mov dword [ebp - 0x20], 0
jmp 0x10026ab3
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x10026ac9
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x84], 0x25260
jmp 0x10026aac
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x84], 0
jmp 0x10026af7
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x84]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x84], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x84], 0x16
je 0x10026c1e
mov dword [ebp - 0xa0], 0xedad94e8
push 4
pop eax
imul eax, eax, 3
cmp dword [ebp + eax - 0x7c], 0
je 0x10026b4c
mov byte [ebp - 0x17], 0
movzx eax, byte [ebp - 0x17]
test eax, eax
je 0x10026b39
push 0x113a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x7c], 0
je 0x10026b47
jmp 0x10026adc
jmp 0x10026c19
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x24], 0xd
jmp 0x10026b63
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xa
jl 0x10026bff
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 0
jmp 0x10026b84
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 4
jge 0x10026b9a
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0xdc], 0xd0da0bdb
jmp 0x10026b7d
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0xdc], 0xcc2443ac
mov dword [ebp - 0x34], 0
jmp 0x10026bbb
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xfffffff0
jl 0x10026bfa
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x10026bed
push 0
push 0x1fd4
push 0
push 0x21ce
push 0x2644
push 0
push 0x3e7
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [ebp - 0xa0], 0
je 0x10026bf8
jmp 0x10026bfa
jmp 0x10026bb4
jmp 0x10026b5c
mov byte [ebp - 0x14], 0
movzx eax, byte [ebp - 0x14]
test eax, eax
je 0x10026c19
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
jmp 0x10026adc
cmp dword [ebp - 0x98], 0
je 0x10026c29
jmp 0x10026c2e
jmp 0x10026a80
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x94]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret