Function at 0x100f2660
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10125d62
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x1016e750]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x1016f5d0]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [0x1017045d], 0
push esi
push edi
push ebx
jne 0x100f26da
call dword [0x10173414]
jmp 0x100f2903
call dword [0x10173414]
push dword [esp + 0x20]
mov esi, eax
test edi, edi
mov eax, str.NULL
cmovne eax, edi
push ebx
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [esp + 0x28]
push str.ApiRetRet_dLE_dModuleName_wsdwFlags_.8xphModule_x
push eax
call fcn.10044f30
add esp, 0x1c
mov dword [esp + 0xe8], 0
mov ecx, str.GetModuleHandleEx
mov edx, dword [eax]
call fcn.10043b30
mov dword [esp + 0xe8], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f2750
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x100f28f7
cmp dword [0x10173444], esi
je 0x100f28f7
test bl, 4
jne 0x100f28f7
test edi, edi
je 0x100f28f7
push edi
lea eax, [esp + 0x18]
push str.CitrixMode:_GetModuleHandleEx__s__failed
push eax
call fcn.10044f30
add esp, 0xc
mov dword [esp + 0xe8], 1
mov ecx, 0x10158bb8
mov edx, dword [eax]
call fcn.10043b30
lea ecx, [esp + 0x14]
mov dword [esp + 0xe8], 0xffffffff
call fcn.10024080
push 0x5c
push edi
call fcn.101033a1
add esp, 8
test eax, eax
je 0x100f28f7
push ecx
mov ecx, esp
push edi
call fcn.10023fc0
call fcn.1003d290
add esp, 4
test eax, eax
jne 0x100f28f7
push 0xa4
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x38]
push eax
call fcn.101078f0
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.10023f70
push ecx
mov ecx, esp
mov dword [esp + 0xec], 2
push edi
call fcn.10023fc0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
call fcn.1002af10
add esp, 4
test eax, eax
je 0x100f28ee
push esi
push esi
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
mov edx, dword [esp + 0xa0]
lea ecx, [esp + 0x2c]
add eax, 0x10
mov dword [esi], eax
call fcn.1003d3b0
mov byte [esp + 0xf8], 3
lea eax, [esp + 0x28]
push dword [esp + 0x2c]
push edi
push str.CitrixMode:_GetModuleHandleEx_failed_with__s._Retrying_with:__s
push eax
call fcn.10044f30
add esp, 0x20
mov byte [esp + 0xe8], 4
mov ecx, str.GetModuleHandleEx
mov edx, dword [eax]
call fcn.10043b30
lea ecx, [esp + 0x18]
mov byte [esp + 0xe8], 3
call fcn.10024080
mov edi, dword [esp + 0x20]
push edi
push dword [esp + 0x20]
push ebx
call dword [0x10173414]
push edi
push ebx
push dword [esp + 0x2c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [esp + 0x2c]
push str.ApiRetRet_dLE_dModuleName_wsdwFlags_.8xphModule_x__CitrixMode:retry_
push eax
call fcn.10044f30
add esp, 0x1c
mov byte [esp + 0xe8], 5
mov ecx, str.GetModuleHandleEx
mov edx, dword [eax]
call fcn.10043b30
lea ecx, [esp + 0x18]
call fcn.10024080
lea ecx, [esp + 0x1c]
call fcn.10024080
lea ecx, [esp + 0x14]
call fcn.10024080
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.10103392
mov esp, ebp
pop ebp
ret 0xc