Function at 0x100f2010
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10125c88
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [0x1017045d], 0
jne 0x100f2078
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x10173424]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test ecx, ecx
je 0x100f22da
test eax, eax
je 0x100f22da
mov ebx, 0x514
cmp eax, ebx
cmova ebx, eax
lea eax, [ebx + ebx]
push eax
call fcn.10104809
mov ecx, dword [0x10175444]
add esp, 4
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [ecx - 0xc], 0
je 0x100f2121
test esi, esi
je 0x100f20cb
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp esi, eax
jne 0x100f2121
mov ecx, dword [0x10175444]
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100f20d0
sub edx, esi
sar edx, 1
cmp edx, ebx
jb 0x100f20f0
push ebx
push ecx
push edi
call fcn.1010552a
add esp, 0xc
jmp 0x100f2103
mov edx, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x100f20f2
mov esi, edi
lea ecx, [esi + 2]
jmp 0x100f2110
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100f2110
sub esi, ecx
sar esi, 1
jmp 0x100f212c
push ebx
push edi
push esi
call dword [0x10173424]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
test esi, esi
je 0x100f2251
push 0
lea edx, [ebx + ebx]
mov ecx, edi
call fcn.100f1340
add esp, 4
cmp dword [0x101728c0], 0
je 0x100f21c2
lea ecx, [ebp + 8]
call fcn.10023f70
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push ecx
mov ecx, esp
push edi
call fcn.10023fc0
call fcn.100cfec0
test eax, eax
je 0x100f21b3
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push esi
push edi
push str.FakeModuleFileNames:_correcting_module_filename__s_back_to:__s
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 1
mov ecx, 0x10158804
mov edx, dword [eax]
call fcn.10043b30
lea ecx, [ebp - 0x14]
call fcn.10024080
push esi
push ebx
push edi
call fcn.10104b58
add esp, 0xc
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.10024080
mov ebx, dword [ebp + 0x10]
mov ecx, edi
lea edx, [ebx - 1]
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f21d0
sub ecx, esi
mov esi, dword [ebp + 0xc]
sar ecx, 1
cmp ecx, edx
jb 0x100f21f3
push edx
push edi
push esi
call fcn.1010552a
add esp, 0xc
jmp 0x100f2210
mov edx, esi
mov ecx, edi
sub edx, edi
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x100f2200
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f2215
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, ebx
jbe 0x100f2236
mov esi, ebx
mov dword [ebp - 0x10], 0x7a
jmp 0x100f2254
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100f2240
sub esi, ecx
sar esi, 1
jmp 0x100f2254
mov ebx, dword [ebp + 0x10]
push edi
call fcn.10103713
add esp, 4
mov eax, 0x1012ec60
test esi, esi
cmovne eax, dword [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp + 0xc]
push str.ApiRetRet_dLE_dnSize_d_s
push eax
call fcn.10044f30
add esp, 0x18
mov dword [ebp - 4], 2
mov ecx, 0x10158804
mov edx, dword [eax]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100f22ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push ecx
push dword [ebp + 8]
call dword [0x10173424]
mov esi, eax
call ebx
jmp 0x100f22bd