Function at 0x100ef770
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
mov dword [esi + 0x10394], ebx
call fcn.10175680
cmp eax, ebx
jl 0x100efc02
xor edi, edi
mov dword [ebp - 8], edi
lea ebx, [ebx]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x10398], ebx
cmp ecx, ebx
jbe 0x100ef7b4
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
jmp 0x100ef7b6
xor eax, eax
xor edx, edx
cmp ecx, ebx
jbe 0x100efc09
mov ecx, dword [eax + 0x3c]
and ecx, 0xfff00000
cmp ecx, 0x11b00000
jne 0x100efb1e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 0x40]
and eax, 0x800
xor ecx, ecx
or eax, ecx
je 0x100efb1e
cmp edi, 1
jne 0x100ef812
mov eax, dword [esi + 0x10388]
mov ecx, dword [esi + 0x10394]
mov edi, dword [esi + 0x1038c]
lea ecx, [eax + ecx*4]
mov eax, dword [esi + 0x10398]
mov dword [edi + eax*4], ecx
mov eax, dword [esi + 0x10]
inc edx
mov dword [ebp - 0x20], edx
cmp edx, eax
jb 0x100ef826
mov edx, eax
xor edi, edi
mov dword [ebp - 0x20], edx
jmp 0x100ef82c
mov ecx, dword [esi + 0x14]
mov edi, dword [ecx + edx*4]
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
mov ebx, dword [ecx + 0x68]
mov dword [ebp - 0x24], edi
cmp eax, ebx
jne 0x100ef856
mov ecx, dword [edi + 0x3c]
and ecx, 0xfff00000
cmp ecx, 0x22c00000
je 0x100efb04
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x100ef8b5
call fcn.10168680
cmp eax, ebx
jne 0x100efafc
mov eax, dword [edi + 0x3c]
and eax, 0xfff00000
cmp eax, 0x22700000
jne 0x100ef885
inc dword [ebp - 0xc]
mov dword [edi + 0x3c], 0x22d00001
jmp 0x100ef812
cmp eax, 0x74100000
jne 0x100ef89b
inc dword [ebp - 0xc]
mov dword [edi + 0x3c], 0x74700001
jmp 0x100ef812
cmp eax, 0x74300000
jne 0x100efafc
inc dword [ebp - 0xc]
mov dword [edi + 0x3c], 0x74800001
jmp 0x100ef812
cmp ecx, 1
jne 0x100efafc
mov eax, dword [esi + 0x10398]
mov edx, dword [esi + 0x10390]
cmp dword [edx + eax*4], 0
jne 0x100efa94
push 0
push eax
mov eax, dword [esi + 0x8024]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push esi
mov eax, 0xc
call fcn.10169d70
test eax, eax
jl 0x100efc02
mov eax, dword [0x101e316c]
mov edx, dword [esi + 0x8064]
mov dword [ebp - 4], edx
test eax, eax
jge 0x100ef90b
xor eax, eax
jmp 0x100ef912
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], 0
je 0x100ef939
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x100ef923
mov ebx, ecx
jmp 0x100ef94a
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
test edx, edx
jne 0x100ef92f
mov dword [eax + 0x10], edx
mov dword [ecx], 0xfefefefe
mov ebx, ecx
jmp 0x100ef94a
mov ecx, dword [eax + 8]
push 0x10
push pe_nt_image_headers32
call fcn.101d8457
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
je 0x100ef99d
or eax, 0xffffffff
push ecx
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 4]
push ecx
push eax
mov eax, ebx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x98], ecx
mov dword [ebx + 0x24], ecx
call fcn.10165570
mov dword [ebp - 4], eax
test eax, eax
jl 0x100ef9a4
push 0
mov edi, esi
call fcn.10169830
mov dword [ebp - 4], eax
test eax, eax
jl 0x100ef9a4
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], ebx
jmp 0x100ef9eb
mov eax, 0x8007000e
jmp 0x100ef9f3
mov edi, ebx
call fcn.101654a0
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100ef9b8
xor edi, edi
jmp 0x100ef9c1
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push pe_nt_image_headers32
push 0xfe
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 0
mov eax, dword [edi + 0x10]
add esp, 0xc
test eax, eax
je 0x100ef9e5
mov dword [eax], ebx
jmp 0x100ef9e8
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x24]
xor ecx, ecx
cmp eax, ecx
jl 0x100efc02
push 1
push 1
push 0x74600001
lea ecx, [ebp - 0x14]
push ecx
push esi
call fcn.10169e20
test eax, eax
jl 0x100efc02
mov eax, dword [edi + 0x34]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x34], eax
mov ecx, dword [edi + 0x38]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x10], 0xffffffff
mov eax, dword [esi + 0x10394]
mov ecx, dword [esi + 0x10388]
mov dword [ecx + eax*4], edi
mov eax, dword [edi + 0x10]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jae 0x100efa4d
mov ebx, dword [esi + 0x14]
cmp dword [ebx + eax*4], edi
je 0x100efa72
mov eax, ecx
test eax, eax
jbe 0x100efa6c
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + eax*4]
lea esp, [esp]
sub ecx, 4
dec eax
cmp dword [ecx], edi
je 0x100efa6d
test eax, eax
ja 0x100efa60
dec eax
cmp eax, 0xffffffff
je 0x100efa7f
mov ecx, dword [esi + 0x14]
mov dword [ecx + eax*4], edx
mov dword [edx + 0x10], eax
or dword [esi + 0x18], 6
dec dword [esi + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [edx + 4]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
jmp 0x100efae1
mov ecx, dword [esi + 0x10394]
mov edx, dword [esi + 0x10388]
mov dword [edx + ecx*4], edi
mov eax, dword [edi + 0x10]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jae 0x100efab5
mov edx, dword [esi + 0x14]
cmp dword [edx + eax*4], edi
je 0x100efad3
mov eax, ecx
test eax, eax
jbe 0x100efacd
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + eax*4]
sub ecx, 4
dec eax
cmp dword [ecx], edi
je 0x100eface
test eax, eax
ja 0x100efac1
dec eax
cmp eax, 0xffffffff
je 0x100efae1
mov edx, dword [esi + 0x14]
mov dword [edx + eax*4], 0
or dword [esi + 0x18], 6
mov eax, dword [esi + 0x10398]
mov ecx, dword [esi + 0x10390]
inc dword [esi + 0x10394]
inc dword [ecx + eax*4]
mov edx, dword [ebp - 0x20]
lea eax, [ecx + eax*4]
inc dword [ebp - 0xc]
jmp 0x100ef812
mov eax, 1
cmp dword [ebp - 8], eax
jne 0x100efb15
mov dword [edi + 0x3c], 0x74100001
add dword [esi + 0x10398], eax
mov edi, dword [ebp - 8]
mov ecx, dword [esi + 0x10]
inc edx
cmp edx, ecx
jb 0x100efb2c
xor eax, eax
mov edx, ecx
jmp 0x100efb32
mov eax, dword [esi + 0x14]
mov eax, dword [eax + edx*4]
cmp edx, ecx
jb 0x100ef7c0
xor ebx, ebx
cmp dword [esi + 0x10398], ebx
je 0x100efc09
cmp edi, ebx
jne 0x100efbef
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 0x10388], eax
mov eax, dword [esi + 0x10398]
xor ecx, ecx
add esp, 4
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 0x1038c], eax
mov eax, dword [esi + 0x10398]
xor ecx, ecx
add esp, 4
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esi + 0x10398]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push ebx
push eax
mov dword [esi + 0x10390], eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [esi + 0x10388], ebx
je 0x100efc12
cmp dword [esi + 0x1038c], ebx
je 0x100efc12
cmp dword [esi + 0x10390], ebx
je 0x100efc12
mov dword [esi + 0x10398], ebx
inc edi
mov dword [ebp - 8], edi
cmp edi, 2
jb 0x100ef7a0
push esi
call fcn.1016a7f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret