Function at 0x100ea970
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf4
mov edx, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x1c]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x10344]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov byte [ebp - 0x3c], 0
mov byte [ebp - 0x3b], 1
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov byte [ebp - 0x4c], 0
mov byte [ebp - 0x4b], 1
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x2b], 1
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov byte [ebp - 0x5c], 0
mov byte [ebp - 0x5b], 1
cmp eax, edi
jne 0x100ea9f3
lea ebx, [ebp - 0x24]
call fcn.100b4160
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edx + 0x10380]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [edx + 0x10370]
mov edx, dword [edx + 0x10354]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
mov ebx, eax
cmp eax, edi
jbe 0x100eaa38
mov ecx, eax
lea esi, [ebp - 0x38]
call fcn.100f8970
mov ecx, dword [ebp - 0x88]
cmp eax, edi
jne 0x100eab57
mov dword [ebp - 0x30], ebx
xor esi, esi
cmp esi, edi
jl 0x100eb044
mov edi, ecx
test ecx, ecx
jbe 0x100eaa5b
lea esi, [ebp - 0x58]
call fcn.100f8a80
test eax, eax
jne 0x100eab5e
mov dword [ebp - 0x50], edi
xor esi, esi
test esi, esi
jl 0x100eb044
mov ecx, dword [ebp - 0x8c]
mov edi, ecx
test ecx, ecx
jbe 0x100eaa84
lea esi, [ebp - 0x48]
call fcn.100f8970
test eax, eax
jne 0x100eab65
mov dword [ebp - 0x40], edi
xor esi, esi
test esi, esi
jl 0x100eb044
push 0
push 1
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov eax, 0x24
call fcn.100b41f0
mov esi, eax
test esi, esi
jl 0x100eb044
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x74]
push edx
push 1
push ecx
lea edx, [ebp - 0x24]
shl eax, 4
push edx
call fcn.100b41f0
mov esi, eax
test esi, esi
jl 0x100eb044
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x50]
push 1
lea eax, [eax + eax*2]
add eax, eax
push ecx
lea edx, [ebp - 0x24]
add eax, eax
push edx
call fcn.100b41f0
mov esi, eax
test esi, esi
jl 0x100eb044
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x40]
push 1
push ecx
lea edx, [ebp - 0x24]
shl eax, 4
push edx
call fcn.100b41f0
mov esi, eax
test esi, esi
jl 0x100eb044
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ecx + 0x10344], eax
jbe 0x100ead17
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10344]
jae 0x100eab6c
mov edi, dword [ecx + 0x1033c]
add edi, dword [ebp - 0x28]
jmp 0x100eab6e
mov esi, eax
jmp 0x100eaa3d
mov esi, eax
jmp 0x100eaa60
mov esi, eax
jmp 0x100eaa89
xor edi, edi
mov eax, dword [edi + 4]
cmp eax, dword [ecx + 0x10360]
jae 0x100eab8a
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0x10358]
lea ecx, [eax + edx*4]
mov dword [ebp - 4], ecx
jmp 0x100eab91
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
mov ebx, dword [edi + 0x14]
cmp ecx, esi
sbb eax, eax
and eax, edx
mov dword [eax], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
cmp ecx, esi
sbb eax, eax
and eax, edx
mov dword [eax + 4], ebx
cmp ecx, esi
sbb eax, eax
lea ecx, [ebp - 0x10]
and eax, edx
mov eax, dword [eax + 4]
push ecx
xor ebx, ebx
lea ecx, [ebp - 0x68]
call fcn.100da500
mov esi, eax
test esi, esi
jl 0x100eb017
cmp dword [edi + 0x18], ebx
jne 0x100eac10
cmp dword [edi + 0x28], ebx
jne 0x100ead49
mov edx, dword [ebp - 4]
xor eax, eax
cmp dword [edx + 0xc], eax
jbe 0x100eac9f
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x10350]
mov dword [ecx], edi
inc eax
add ecx, 4
cmp eax, dword [edx + 0xc]
jb 0x100eabf7
mov dword [ebp - 0x10], ecx
jmp 0x100eac9f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
cmp eax, dword [edi + 0x28]
jne 0x100ead49
xor esi, esi
mov dword [ebp - 0x14], esi
test eax, eax
jbe 0x100eac9f
mov ecx, dword [ebp + 8]
cmp esi, dword [edx + 0xc]
jae 0x100eac38
mov eax, dword [edx + 4]
lea eax, [eax + esi*2]
jmp 0x100eac3a
xor eax, eax
movzx eax, word [eax]
cmp eax, dword [ecx + 0x10370]
jae 0x100eac50
mov ecx, dword [ecx + 0x10368]
lea ecx, [ecx + eax*8]
jmp 0x100eac52
xor ecx, ecx
mov ebx, dword [edi + 0x28]
xor eax, eax
test ebx, ebx
jbe 0x100eac7e
mov esi, dword [ecx]
xor edx, edx
cmp eax, ebx
jae 0x100eac6a
mov ecx, dword [edi + 0x20]
add ecx, edx
jmp 0x100eac6c
xor ecx, ecx
cmp esi, dword [ecx]
je 0x100eac78
inc eax
add edx, 0x14
cmp eax, ebx
jb 0x100eac63
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
cmp eax, ebx
jae 0x100ead49
mov ecx, dword [edi + 0x1c]
add ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
inc esi
add eax, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
cmp esi, dword [edx + 0xc]
jb 0x100eac28
mov edi, dword [ebp - 8]
cmp edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [edx + 0xc]
mov edx, dword [edx + 4]
sbb eax, eax
and eax, ebx
add eax, 8
push eax
push 1
push edx
lea edx, [ebp - 0x24]
lea eax, [ecx + ecx]
push edx
call fcn.100b41f0
mov esi, eax
test esi, esi
jl 0x100eb017
cmp edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x68]
sbb eax, eax
and eax, ebx
add eax, 0xc
push eax
mov eax, dword [ebp - 0x60]
push 2
add eax, eax
push ecx
lea edx, [ebp - 0x24]
add eax, eax
push edx
call fcn.100b41f0
mov esi, eax
test esi, esi
jl 0x100eb017
mov eax, dword [ebp + 8]
add dword [ebp - 0x28], 0x30
inc edi
add ebx, 0x10
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ebx
cmp edi, dword [eax + 0x10344]
jb 0x100eab3e
xor ebx, ebx
cmp dword [ebp - 0x8c], ebx
jbe 0x100eae90
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0xc], ebx
jmp 0x100ead30
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x10380]
jae 0x100ead53
mov eax, dword [eax + 0x10378]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x100ead5a
mov esi, 0x80004005
jmp 0x100eb017
mov dword [ebp - 4], 0
cmp ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [edx + 0xc]
sbb eax, eax
and eax, edi
push eax
push 2
push ecx
lea eax, [ebp - 0x24]
push eax
or eax, 0xffffffff
call fcn.100b41f0
mov esi, eax
test esi, esi
jl 0x100eb017
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0x20]
cmp ebx, esi
sbb eax, eax
and eax, edi
mov word [eax + 4], dx
mov eax, dword [ecx]
mov eax, dword [eax + 0x48]
push 7
mov dword [ebp - 0x14], eax
call fcn.100a9f30
test al, al
je 0x100eadbd
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx + 0x1c]
cmp ebx, esi
sbb eax, eax
and eax, edi
mov word [eax + 6], dx
jmp 0x100eadcc
cmp ebx, esi
sbb eax, eax
and eax, edi
mov ecx, 1
mov word [eax + 6], cx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
cmp edx, 0xffffffff
je 0x100eae13
cmp byte [ecx + 0x1c], 0
je 0x100eae13
mov eax, dword [edx + 0x50]
mov ecx, dword [eax + 0x18]
cmp ecx, 0xffffffff
je 0x100ead49
cmp dword [ecx + 0x20], 0xffff
ja 0x100ead49
mov cx, word [ecx + 0x20]
cmp ebx, esi
sbb eax, eax
and eax, edi
mov word [eax + 8], cx
mov dx, word [edx + 0xb4]
mov ecx, dword [ebp - 4]
jmp 0x100eae22
cmp ebx, esi
sbb eax, eax
and eax, edi
mov edx, 0xffff
mov word [eax + 8], dx
cmp ebx, esi
sbb eax, eax
and eax, edi
mov word [eax + 0xa], dx
mov edx, dword [ecx + 8]
cmp edx, 0xffffffff
je 0x100eae40
cmp byte [ecx + 0x1d], 0
je 0x100eae40
mov dx, word [edx + 0x60]
jmp 0x100eae45
mov edx, 0xffff
cmp ebx, esi
sbb eax, eax
and eax, edi
mov word [eax + 0xc], dx
mov edx, dword [ecx + 0xc]
cmp edx, 0xffffffff
je 0x100eae6d
cmp byte [ecx + 0x1e], 0
je 0x100eae6d
mov cx, word [edx + 0x60]
cmp ebx, esi
sbb eax, eax
and eax, edi
mov word [eax + 0xe], cx
jmp 0x100eae7c
cmp ebx, esi
sbb eax, eax
and eax, edi
mov edx, 0xffff
mov word [eax + 0xe], dx
add dword [ebp - 0xc], 0x24
inc ebx
add edi, 0x10
cmp ebx, dword [ebp - 0x8c]
jb 0x100ead30
xor edi, edi
cmp dword [ebp - 0x88], edi
jbe 0x100eaf9a
mov ebx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 0x10370]
jae 0x100eaebd
mov eax, dword [eax + 0x10368]
lea ecx, [eax + edi*8]
mov dword [ebp - 8], ecx
jmp 0x100eaec4
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
lea edx, [ebp - 0xf0]
push edx
push 3
call eax
test al, al
je 0x100ead49
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [edx + 8]
mov ecx, dword [ecx + 0xc]
cmp edi, esi
sbb eax, eax
and eax, ebx
push eax
push 2
push ecx
lea edx, [ebp - 0x24]
push edx
or eax, 0xffffffff
call fcn.100b41f0
mov esi, eax
test esi, esi
jl 0x100eb017
mov esi, dword [ebp - 0x50]
cmp edi, esi
sbb eax, eax
xor ecx, ecx
and eax, ebx
mov word [eax + 4], cx
mov ecx, dword [ebp - 8]
cmp byte [ecx + 4], 0
je 0x100eaf38
mov edx, dword [ebp - 0xa0]
cmp edi, esi
sbb eax, eax
add edx, 0xf
and eax, ebx
shr edx, 4
jmp 0x100eaf40
cmp edi, esi
sbb eax, eax
and eax, ebx
xor edx, edx
mov word [eax + 6], dx
cmp byte [ecx + 5], 0
je 0x100eaf59
mov dx, word [ebp - 0xb4]
cmp edi, esi
sbb eax, eax
and eax, ebx
jmp 0x100eaf61
cmp edi, esi
sbb eax, eax
and eax, ebx
xor edx, edx
mov word [eax + 8], dx
cmp byte [ecx + 6], 0
je 0x100eaf7e
mov cx, word [ebp - 0xb0]
cmp edi, esi
sbb eax, eax
and eax, ebx
mov word [eax + 0xa], cx
jmp 0x100eaf8a
cmp edi, esi
sbb eax, eax
and eax, ebx
xor edx, edx
mov word [eax + 0xa], dx
inc edi
add ebx, 0xc
cmp edi, dword [ebp - 0x88]
jb 0x100eaea4
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
add edi, 3
shr edi, 2
neg eax
sbb eax, eax
and eax, 2
add edi, eax
mov esi, edi
call fcn.1016a960
mov ebx, eax
test ebx, ebx
jne 0x100eafc3
mov esi, 0x8007000e
jmp 0x100eaff3
push edi
lea ecx, [ebp - 0x24]
push ecx
mov eax, ebx
call fcn.100b4410
mov esi, eax
test esi, esi
jl 0x100eaff3
mov ecx, dword [ebp + 0xc]
push ebx
lea edx, [edi*4]
push edx
push 0x45434649
call fcn.101dab5e
mov esi, eax
test esi, esi
jl 0x100eaff3
xor esi, esi
test ebx, ebx
je 0x100eb017
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100eb004
xor eax, eax
jmp 0x100eb00b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [ebp - 0x5c], 0
je 0x100eb044
mov edi, dword [ebp - 0x68]
test edi, edi
je 0x100eb044
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100eb031
xor eax, eax
jmp 0x100eb038
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
push edi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [ebp - 0x2c], 0
je 0x100eb071
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x100eb071
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100eb05e
xor eax, eax
jmp 0x100eb065
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [ebp - 0x4c], 0
je 0x100eb09e
mov edi, dword [ebp - 0x58]
test edi, edi
je 0x100eb09e
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100eb08b
xor eax, eax
jmp 0x100eb092
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [ebp - 0x3c], 0
je 0x100eb0cb
mov edi, dword [ebp - 0x48]
test edi, edi
je 0x100eb0cb
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100eb0b8
xor eax, eax
jmp 0x100eb0bf
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
push edi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ebx, [ebp - 0x24]
call fcn.100b4160
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8