Function at 0x10079d80
Capabilities:
Get common file path
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
add ebx, 0xa0
push edi
mov dword [ebp - 0x220], esi
mov edi, dword [esi]
add edi, 0xe0
cmp dword [ebx + 4], 0
jne 0x10079eec
mov eax, dword [0x1025b450]
cmp eax, 0xffffffff
je 0x10079e18
cmp dword [0x1025b454], 0xffffffff
je 0x10079e18
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], 0
test eax, eax
jne 0x10079e22
mov eax, dword [0x1025b458]
test eax, eax
je 0x10079e22
lea ecx, [ebp - 0x218]
push ecx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push dword [0x1025b450]
call esi
push dword [ebp - 0x218]
push dword [0x1025b454]
call esi
jmp 0x10079e22
mov dword [ebp - 0x21c], 0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
call fcn.100ddff0
test eax, eax
je 0x10079e85
push 2
call fcn.100db7b0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10002a60
lea esi, [eax + 0x10]
lea eax, [ebx + 8]
push eax
push ebx
push 0x200
push 0
push esi
call fcn.1008e2e0
add esp, 0x1c
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10079ec9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10079ec9
push 0
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10079eae
push str.MicrosoftInternet_ExplorerQuick_Launch_
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebx + 8]
push eax
push ebx
push 0x200
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1008e2e0
add esp, 0x14
push dword [ebp - 0x21c]
mov ecx, 0x1025b450
call fcn.10008cd0
cmp dword [ebx + 4], 0
jne 0x10079ee6
xor bl, bl
jmp 0x10079f8f
mov esi, dword [ebp - 0x220]
test edi, edi
je 0x10079ef7
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
call fcn.1007ee90
cmp dword [ebp - 0x210], 0
je 0x10079f3a
push dword [ebp + 8]
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x214]
push 0x200
push eax
call fcn.10096370
test al, al
jne 0x10079f2e
xor bl, bl
jmp 0x10079f3c
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x210]
add dword [ecx + 0x1c], eax
mov bl, 1
mov esi, dword [ebp - 0x214]
lea ecx, [ebp - 0x214]
push dword [esi + 4]
call fcn.100291c0
mov eax, dword [ebp - 0x214]
push 0x40
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x214]
mov dword [eax], esi
mov eax, dword [ebp - 0x214]
mov dword [eax + 8], esi
push dword [ebp - 0x214]
mov dword [ebp - 0x210], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
test edi, edi
je 0x10079f8f
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10079fb7
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10079fb7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10079fb7
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8