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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10259c04], 0
push ebx
mov ebx, ecx
je 0x101bb38e
cmp dword [0x1025a35c], 0
je 0x101bb38e
mov eax, dword [ebx]
push esi
push edi
call dword [eax + 0x80]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov byte [eax], 0
mov eax, dword [0x1025a378]
cmp eax, 0xffffffff
je 0x101baf76
cmp dword [0x1025a37c], 0xffffffff
je 0x101baf76
push eax
mov dword [ebp - 0xa24], 0
call edi
test eax, eax
jne 0x101baf76
mov eax, dword [0x1025a380]
test eax, eax
je 0x101baf76
lea ecx, [ebp - 0xa24]
push ecx
call eax
push eax
push dword [0x1025a378]
call esi
push dword [ebp - 0xa24]
push dword [0x1025a37c]
call esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
mov esi, dword [0x10259c08]
lea eax, [ebp - 0x20c]
push eax
push 0xb
mov dword [ebx + 0xe4], 6
call fcn.1000aa60
add esp, 0x14
test eax, eax
je 0x101bafbf
mov eax, dword [ebx]
lea ecx, [ebp - 0x20c]
push 0
push esi
push ecx
mov ecx, ebx
call dword [eax + 0x5c]
lea eax, [ebp - 0x20c]
push eax
push 0x16
call fcn.1000aa60
add esp, 8
test eax, eax
je 0x101bafe5
mov eax, dword [ebx]
lea ecx, [ebp - 0x20c]
push 0
push esi
push ecx
mov ecx, ebx
call dword [eax + 0x5c]
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebx + 0xe4], 0
call dword [eax + 0x84]
push 0x14
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa1c], 0
mov dword [ebp - 0xa2c], 0
call fcn.10213511
add esp, 4
mov dword [ebp - 0xa18], 0xffffffff
mov dword [eax], eax
push 0
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push str.SoftwareClientsStartMenuInternet_
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0xa20]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
mov ecx, eax
call fcn.10004230
test eax, eax
jne 0x101bb269
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor esi, esi
mov eax, dword [ebp - 0xa18]
mov dword [ebp - 0xa10], 0x400
cmp eax, 0xffffffff
je 0x101bb11b
cmp esi, eax
jb 0x101bb11b
cmp dword [ebp - 0xa20], 0
je 0x101bb11b
mov edi, esi
sub edi, eax
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101bb0f4
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101bb0bf
mov eax, dword [eax + 0x100]
jmp 0x101bb0c1
xor eax, eax
test eax, eax
je 0x101bb0f4
lea ecx, [ebp - 0xa28]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0xa10]
push ecx
lea ecx, [ebp - 0xa0c]
push ecx
push edi
push dword [ebp - 0xa20]
call eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x101bb245
lea eax, [ebp - 0xa28]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0xa0c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x101bb23d
cmp dword [ebp - 0xa1c], 0
mov eax, 0x103
mov dword [ebp - 0xa18], 0xffffffff
je 0x101bb1b2
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101bb183
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101bb157
mov eax, dword [eax + 0x100]
jmp 0x101bb159
xor eax, eax
test eax, eax
je 0x101bb183
lea ecx, [ebp - 0xa28]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0xa10]
push ecx
lea ecx, [ebp - 0xa0c]
push ecx
push esi
push dword [ebp - 0xa1c]
call eax
jmp 0x101bb1a7
lea eax, [ebp - 0xa28]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0xa0c]
push eax
push esi
push dword [ebp - 0xa1c]
call edi
cmp eax, 0x103
jne 0x101bb245
cmp dword [ebp - 0xa20], 0
je 0x101bb245
mov dword [ebp - 0xa18], esi
mov dword [ebp - 0xa10], 0x400
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101bb220
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101bb1f3
mov eax, dword [eax + 0x100]
jmp 0x101bb1f5
xor eax, eax
test eax, eax
je 0x101bb220
lea ecx, [ebp - 0xa28]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0xa10]
push ecx
lea ecx, [ebp - 0xa0c]
push ecx
push 0
push dword [ebp - 0xa20]
call eax
jmp 0x101bb245
lea eax, [ebp - 0xa28]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0xa0c]
push eax
push 0
push dword [ebp - 0xa20]
call edi
test eax, eax
jne 0x101bb263
push dword [ebx + 0xe0]
lea eax, [ebp - 0xa0c]
mov ecx, ebx
push eax
call fcn.101bb3a0
inc esi
jmp 0x101bb069
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [0x1025a378]
cmp eax, 0xffffffff
je 0x101bb2ad
cmp dword [0x1025a37c], 0xffffffff
je 0x101bb2ad
push eax
call edi
test eax, eax
je 0x101bb2ad
cmp dword [0x1025a384], 0
je 0x101bb2ad
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 eax, dword [ebp - 0xa30]
push dword [eax + 4]
lea eax, [ebp - 0xa30]
push eax
mov ecx, eax
call fcn.10020c80
push 0x14
push dword [ebp - 0xa30]
call fcn.102134ff
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
cmp dword [ebp - 0xa20], 0
je 0x101bb31f
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101bb317
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101bb307
mov eax, dword [eax + 0x11c]
jmp 0x101bb309
xor eax, eax
test eax, eax
je 0x101bb317
push dword [ebp - 0xa20]
call eax
jmp 0x101bb31f
push dword [ebp - 0xa20]
call esi
cmp dword [ebp - 0xa1c], 0
je 0x101bb378
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101bb370
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101bb34c
mov eax, dword [eax + 0x11c]
jmp 0x101bb34e
xor eax, eax
test eax, eax
je 0x101bb370
push dword [ebp - 0xa1c]
call eax
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xa1c]
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret