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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0x30], eax
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
cmp esi, dword [eax + 4]
je 0x10134d8f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
lea esp, [esp]
mov eax, dword [0x1025a378]
mov edi, dword [esi + 0x3c]
cmp eax, 0xffffffff
je 0x10134a56
cmp dword [0x1025a37c], 0xffffffff
je 0x10134a56
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov dword [ebp - 0x28], ecx
test edi, edi
je 0x10134a26
mov dword [ebp - 0x20], 0
test ecx, ecx
jne 0x10134a5d
mov eax, dword [0x1025a380]
test eax, eax
je 0x10134a5d
lea ecx, [ebp - 0x20]
push ecx
call eax
push eax
push dword [0x1025a378]
call ebx
push dword [ebp - 0x20]
push dword [0x1025a37c]
call ebx
jmp 0x10134a5d
test ecx, ecx
je 0x10134a5d
cmp dword [0x1025a384], 0
je 0x10134a5d
push dword [0x1025a37c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call dword [0x1025a384]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025a378]
call ebx
jmp 0x10134a5d
mov dword [ebp - 0x28], 0
mov eax, dword [esi + 0x30]
cmp eax, 0x90000
ja 0x10134b0e
je 0x10134af6
cmp eax, 0x40000
je 0x10134abb
cmp eax, 0x70000
jne 0x10134ce7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10134a8d
mov eax, dword [esi]
push dword [esi + 0x38]
push eax
call fcn.100e9e20
add esp, 8
cmp dword [esi + 0x34], 0
je 0x10134ce7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10134aad
mov eax, dword [esi]
push eax
call fcn.100e4190
add esp, 4
jmp 0x10134ce7
cmp dword [esi + 0x38], 0
jne 0x10134ad4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10134acb
mov eax, dword [esi]
push eax
call fcn.100e4950
add esp, 4
cmp dword [esi + 0x34], 0
je 0x10134ce7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10134ae8
mov eax, dword [esi]
push eax
call fcn.100e4190
add esp, 4
jmp 0x10134ce7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10134b00
mov eax, dword [esi]
push dword [esi + 0x3c]
push eax
call fcn.100e99d0
jmp 0x10134ce4
cmp eax, 0xa0000
je 0x10134cd1
cmp eax, 0xb0000
jne 0x10134ce7
push esi
lea ecx, [ebp - 0x1c]
call fcn.10006aa0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
jb 0x10134b3e
mov eax, ecx
lea edx, [ebp - 0x1c]
jb 0x10134b45
mov edx, ecx
mov ecx, dword [ebp - 0xc]
lea ebx, [ebp - 0x1c]
lea edi, [edx + ecx*2]
mov edx, dword [ebp - 0x20]
jb 0x10134b55
mov ebx, edx
cmp ebx, edi
je 0x10134b83
sub eax, ebx
mov dword [ebp - 0x20], eax
mov esi, eax
movzx eax, word [ebx]
push eax
call fcn.102135d1
mov word [esi + ebx], ax
add esp, 4
add ebx, 2
cmp ebx, edi
jne 0x10134b60
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
jb 0x10134b94
mov eax, edx
mov dword [ebp - 0x24], edx
cmp ecx, 9
jb 0x10134bc2
add ecx, 0xfffffff8
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x2c], ecx
sub ecx, eax
sar ecx, 1
je 0x10134bc2
jmp 0x10134bb0
cmp word [eax], 0x73
je 0x10134c42
add eax, 2
sub ecx, 1
jne 0x10134bb0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10134bcc
mov eax, dword [esi]
push eax
call fcn.100ea0c0
add esp, 4
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x10134c0f
mov edx, dword [ebp - 0x20]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10134c05
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10134da3
push ecx
push edx
call fcn.102134ff
add esp, 8
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x10134c19
mov edi, dword [esi]
test edi, edi
je 0x10134ce7
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10134ca8
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10134c9d
mov eax, dword [eax + 0x3c]
jmp 0x10134c9f
mov edx, str.startmenu
mov ebx, eax
mov edi, 9
sub ebx, edx
mov cx, word [ebx + edx]
cmp cx, word [edx]
jne 0x10134c92
add edx, 2
sub edi, 1
jne 0x10134c50
sub eax, dword [ebp - 0x24]
sar eax, 1
cmp eax, 0xffffffff
je 0x10134bc2
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10134c79
mov eax, dword [esi]
push 0
push 0
push 0
push eax
push str.startunpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x10134bd5
mov ecx, dword [ebp - 0x2c]
add eax, 2
jmp 0x10134ba2
xor eax, eax
test eax, eax
je 0x10134ca8
push edi
call eax
jmp 0x10134caf
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10134ce7
test al, 0x10
jne 0x10134ce7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10134cc2
mov eax, dword [esi]
push 1
push 1
push eax
call fcn.100e4770
add esp, 0xc
jmp 0x10134ce7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10134cdb
mov eax, dword [esi]
push dword [esi + 0x3c]
push eax
call fcn.100ea040
add esp, 8
mov eax, dword [0x1025a378]
cmp eax, 0xffffffff
je 0x10134d75
cmp dword [0x1025a37c], 0xffffffff
je 0x10134d75
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call ebx
cmp dword [ebp - 0x28], 0
je 0x10134d43
mov dword [ebp - 0x28], 0
test eax, eax
jne 0x10134d75
mov eax, dword [0x1025a380]
test eax, eax
je 0x10134d75
lea ecx, [ebp - 0x28]
push ecx
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push dword [0x1025a378]
call ebx
push dword [ebp - 0x28]
push dword [0x1025a37c]
call ebx
jmp 0x10134d7b
test eax, eax
je 0x10134d75
cmp dword [0x1025a384], 0
je 0x10134d75
push dword [0x1025a37c]
call ebx
push eax
call dword [0x1025a384]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025a378]
call ebx
jmp 0x10134d7b
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x30]
add esi, 0x44
mov dword [ebp - 0x24], esi
cmp esi, dword [eax + 4]
jne 0x101349d0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10212f74
mov esp, ebp
pop ebp
ret
call fcn.10200ab0
int3