Function at 0x100f2350
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10125cf2
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x1016e750]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push dword [0x1016f5d0]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [0x1017045d], 0
push edi
jne 0x100f23c0
call dword [0x101733dc]
jmp 0x100f25cb
call dword [0x101733dc]
mov esi, eax
test edi, edi
mov eax, str.NULL
cmovne eax, edi
push eax
mov dword [esp + 0x20], eax
call ebx
push eax
push esi
lea eax, [esp + 0x1c]
push str.ApiRetRet_.8xLE_dModuleName_ws
push eax
call fcn.10044f30
add esp, 0x14
mov dword [esp + 0xe0], 0
mov ecx, str.GetModuleHandle
mov edx, dword [eax]
call fcn.10043b30
mov dword [esp + 0xe0], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f242d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x100f25bf
cmp dword [0x10173444], esi
je 0x100f25bf
test edi, edi
je 0x100f25bf
push edi
lea eax, [esp + 0x14]
push str.CitrixMode:_GetModuleHandle__s__failed
push eax
call fcn.10044f30
add esp, 0xc
mov dword [esp + 0xe0], 1
mov ecx, 0x101589b4
mov edx, dword [eax]
call fcn.10043b30
lea ecx, [esp + 0x10]
mov dword [esp + 0xe0], 0xffffffff
call fcn.10024080
push 0x5c
push edi
call fcn.101033a1
add esp, 8
test eax, eax
je 0x100f25bf
push ecx
mov ecx, esp
push edi
call fcn.10023fc0
call fcn.1003d290
add esp, 4
test eax, eax
jne 0x100f25bf
push 0xa4
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
call fcn.101078f0
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10023f70
push ecx
mov ecx, esp
mov dword [esp + 0xe4], 2
push edi
call fcn.10023fc0
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
call fcn.1002af10
add esp, 4
test eax, eax
je 0x100f25b6
push esi
push esi
push esi
push ecx
mov ecx, dword [esp + 0x20]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x28]
add eax, 0x10
mov dword [esi], eax
call fcn.1003d3b0
mov byte [esp + 0xf0], 3
lea eax, [esp + 0x24]
push dword [esp + 0x28]
push edi
push str.CitrixMode:_GetModuleHandle_failed_with__s._Retrying_with:__s
push eax
call fcn.10044f30
add esp, 0x20
mov byte [esp + 0xe0], 4
mov ecx, str.GetModuleHandle
mov edx, dword [eax]
call fcn.10043b30
lea ecx, [esp + 0x14]
mov byte [esp + 0xe0], 3
call fcn.10024080
push dword [esp + 0x18]
call dword [0x101733dc]
push dword [esp + 0x1c]
mov esi, eax
call ebx
push eax
push esi
lea eax, [esp + 0x20]
push str.ApiRetRet_.8xLE_dModuleName_ws__CitrixMode:retry_
push eax
call fcn.10044f30
add esp, 0x14
mov byte [esp + 0xe0], 5
mov ecx, str.GetModuleHandle
mov edx, dword [eax]
call fcn.10043b30
lea ecx, [esp + 0x14]
call fcn.10024080
lea ecx, [esp + 0x18]
call fcn.10024080
lea ecx, [esp + 0x10]
call fcn.10024080
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.10103392
mov esp, ebp
pop ebp
ret 4