Function at 0x1014e1f0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
xor edi, edi
test esi, esi
je 0x1014e23b
lea ebx, [edi + 5]
lea ebx, [ebx]
mov eax, dword [esi + 8]
test eax, eax
je 0x1014e285
cmp dword [eax + 4], ebx
jne 0x1014e285
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1014e285
push 7
call fcn.1010b520
test al, al
jne 0x1014e285
mov esi, dword [esi + 0xc]
inc edi
test esi, esi
jne 0x1014e210
cmp edi, 7
ja 0x1014e285
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 4], eax
test eax, eax
jbe 0x1014e35f
mov edi, eax
lea ecx, [ecx]
mov edx, dword [ebp + 0x10]
lea eax, [edi + ebx]
shr eax, 1
lea ecx, [eax + eax*8]
shl ecx, 5
mov esi, dword [ecx + edx + 8]
mov ecx, dword [ebp + 0x1c]
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x1014e293
test dl, dl
je 0x1014e281
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x1014e293
add ecx, 2
add esi, 2
test dl, dl
jne 0x1014e265
xor ecx, ecx
jmp 0x1014e298
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jle 0x1014e2a1
lea ebx, [eax + 1]
jmp 0x1014e2a8
jge 0x1014e2b1
mov edi, eax
mov dword [ebp - 4], edi
cmp ebx, edi
jb 0x1014e250
jmp 0x1014e35f
lea ecx, [eax + 1]
mov ebx, eax
mov dword [ebp - 4], ecx
test eax, eax
jbe 0x1014e308
mov edi, dword [ebp + 0x1c]
lea edx, [eax + eax*8]
mov eax, dword [ebp + 0x10]
shl edx, 5
lea esi, [edx + eax - 0x118]
mov ecx, dword [esi]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1014e2f4
test dl, dl
je 0x1014e2f0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1014e2f4
add eax, 2
add ecx, 2
test dl, dl
jne 0x1014e2d4
xor eax, eax
jmp 0x1014e2f9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1014e308
dec ebx
sub esi, 0x120
test ebx, ebx
ja 0x1014e2d0
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
cmp eax, edi
jae 0x1014e35f
mov edx, dword [ebp + 0x10]
lea ecx, [eax + eax*8]
shl ecx, 5
lea esi, [ecx + edx + 8]
nop
mov ecx, dword [esi]
mov eax, dword [ebp + 0x1c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1014e345
test dl, dl
je 0x1014e341
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1014e345
add eax, 2
add ecx, 2
test dl, dl
jne 0x1014e325
xor eax, eax
jmp 0x1014e34a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1014e35f
mov eax, dword [ebp - 4]
inc eax
add esi, 0x120
mov dword [ebp - 4], eax
cmp eax, edi
jb 0x1014e320
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x1014e368
mov dword [eax], ebx
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x1014e374
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
cmp ebx, eax
je 0x1014e285
mov dword [ebp + 0x14], ebx
jae 0x1014e6f5
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x20]
lea edx, [eax + eax*8]
mov eax, dword [ebp + 0x10]
shl edx, 5
add edx, eax
or eax, 0xffffffff
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, 0x11
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov eax, 1
mov dword [ebp + 0x2c], edx
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x28], ecx
test ecx, ecx
je 0x1014e4a5
lea esi, [edx + 0x30]
cmp eax, 7
jae 0x1014e47f
cmp dword [esi], 0
je 0x1014e47f
cmp dword [esi + 0x10], 0xffffffff
jne 0x1014e414
inc eax
mov dword [ebp + 0x1c], eax
jmp 0x1014e5f0
mov ecx, dword [ecx + 8]
mov ebx, dword [ecx + 0x14]
mov edx, dword [ebx]
mov edx, dword [edx + 0x2c]
lea eax, [ebp - 0xc8]
push eax
push 0xa
mov ecx, ebx
call edx
test al, al
je 0x1014e47f
mov eax, dword [esi + 0x10]
mov eax, dword [ebp + eax*4 - 0x44]
mov edi, dword [ebp - 0xc8]
test eax, eax
je 0x1014e530
cmp eax, 2
jne 0x1014e45c
cmp edi, 9
je 0x1014e530
cmp edi, 8
je 0x1014e530
cmp edi, 2
jne 0x1014e526
cmp eax, edi
je 0x1014e53b
cmp eax, 9
je 0x1014e53b
cmp eax, 8
je 0x1014e53b
cmp dword [ebp + 0x28], 0
jne 0x1014e6e5
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x1c]
cmp eax, 7
jae 0x1014e4a5
lea eax, [eax + eax*4]
cmp dword [edx + eax*8 + 8], 0
jne 0x1014e6e5
mov edx, dword [ebp + 0x2c]
mov ecx, dword [edx + 0x10]
or ecx, dword [edx + 0x14]
je 0x1014e4e1
mov eax, dword [edx + 0x18]
cmp eax, 0xffffffff
je 0x1014e4e1
cmp dword [ebp + eax*4 - 0x44], 0
lea eax, [ebp + eax*4 - 0x44]
jne 0x1014e4e1
mov ecx, dword [edx + 0x1c]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [edx + 0x20]
cmp eax, 0xffffffff
je 0x1014e4e1
cmp dword [ebp + eax*4 - 0x28], 0x11
lea eax, [ebp + eax*4 - 0x28]
jne 0x1014e4e1
mov ecx, dword [edx + 0x24]
mov ecx, dword [ecx]
mov dword [eax], ecx
xor ebx, ebx
add edx, 0x24
mov dword [ebp + 0x1c], edx
mov esi, edx
cmp dword [esi - 0xc], 0xffffffff
mov ecx, dword [esi - 8]
je 0x1014e6d0
mov edx, dword [ebp + ebx*4 - 0x44]
test edx, edx
je 0x1014e629
cmp edx, 2
jne 0x1014e606
mov eax, dword [ecx]
cmp eax, 9
je 0x1014e51d
cmp eax, 8
jne 0x1014e606
mov dword [ebp + ebx*4 - 0x44], eax
jmp 0x1014e61e
cmp edi, eax
jne 0x1014e47f
jmp 0x1014e53b
mov eax, dword [esi + 0x10]
add eax, eax
add eax, eax
mov dword [ebp + eax - 0x44], edi
mov edx, dword [esi + 0x18]
cmp dword [ebp + edx*4 - 0x28], 0x11
mov ecx, dword [ebp - 0xc4]
mov eax, edx
jne 0x1014e557
add eax, eax
add eax, eax
mov dword [ebp + eax - 0x28], ecx
jmp 0x1014e56b
lea eax, [ebp + eax*4 - 0x28]
push eax
mov eax, dword [eax]
call fcn.10114340
test eax, eax
jl 0x1014e47f
cmp edi, 2
je 0x1014e5c2
mov eax, dword [esi + 0x20]
test eax, eax
jge 0x1014e58d
mov ecx, dword [ebp - 0x98]
not eax
cmp dword [ebp + eax*4 - 0x60], ecx
lea eax, [ebp + eax*4 - 0x60]
jbe 0x1014e599
mov dword [eax], ecx
jmp 0x1014e599
cmp dword [ebp - 0x98], eax
jb 0x1014e47f
mov eax, dword [esi + 0x24]
test eax, eax
jge 0x1014e5b6
mov ecx, dword [ebp - 0x94]
not eax
cmp dword [ebp + eax*4 - 0x60], ecx
lea eax, [ebp + eax*4 - 0x60]
jbe 0x1014e5c2
mov dword [eax], ecx
jmp 0x1014e5c2
cmp dword [ebp - 0x94], eax
jb 0x1014e47f
mov eax, dword [esi + 8]
and eax, 0x20
xor ecx, ecx
or eax, ecx
je 0x1014e5e4
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
lea ecx, [ebp - 8]
push ecx
mov ecx, ebx
call edx
test byte [eax], 2
jne 0x1014e47f
inc dword [ebp + 0x1c]
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x28]
mov ecx, dword [ecx + 0xc]
add esi, 0x28
mov dword [ebp + 0x28], ecx
test ecx, ecx
jne 0x1014e3fb
jmp 0x1014e48f
mov eax, dword [ecx]
test eax, eax
je 0x1014e61e
lea esp, [esp]
cmp edx, eax
je 0x1014e61e
mov eax, dword [ecx + 4]
add ecx, 4
test eax, eax
jne 0x1014e610
cmp dword [ecx], 0
je case.0x1014e68c.38
jmp 0x1014e633
test ecx, ecx
je 0x1014e633
mov edx, dword [ecx]
mov dword [ebp + ebx*4 - 0x44], edx
mov edx, dword [ebp + ebx*4 - 0x28]
mov edi, dword [esi]
mov ecx, edi
cmp edx, 0x11
je 0x1014e6b7
mov eax, dword [ecx]
cmp eax, 0x11
je 0x1014e65f
cmp eax, 0x12
je case.0x1014e68c.38
cmp edx, eax
je 0x1014e65f
mov eax, dword [ecx + 4]
add ecx, 4
cmp eax, 0x11
jne 0x1014e647
mov ecx, dword [ecx]
cmp ecx, 0x12
je case.0x1014e68c.38
cmp dword [ebp + ebx*4 - 0x44], 6
jne 0x1014e6aa
cmp ecx, 0x11
jne 0x1014e6c1
mov esi, dword [edi]
cmp esi, edx
je 0x1014e6a2
cmp edx, 0x14
je 0x1014e6a2
lea eax, [esi - 0x16]
cmp eax, 0x1b
ja case.0x1014e68c.38
movzx eax, byte [eax + 0x1014eb34]
jmp dword [eax*4 + 0x1014eb24]
cmp edx, 0x16
jmp 0x1014e6a0
cmp edx, 0x20
je 0x1014e6a2
cmp edx, 0x2e
jne case.0x1014e68c.38
cmp esi, 0x11
je case.0x1014e68c.38
mov esi, dword [ebp + 0x1c]
cmp ecx, 0x11
jne 0x1014e6c1
mov ecx, dword [edi]
mov dword [ebp + ebx*4 - 0x28], ecx
jmp 0x1014e6c1
test ecx, ecx
je 0x1014e6c1
mov edx, dword [ecx]
mov dword [ebp + ebx*4 - 0x28], edx
cmp dword [ebp + ebx*4 - 0x60], 0xffffffff
jne 0x1014e6d0
mov dword [ebp + ebx*4 - 0x60], 1
inc ebx
add esi, 0x28
mov dword [ebp + 0x1c], esi
cmp ebx, 7
jb 0x1014e4eb
cmp ebx, 7
je 0x1014e6f5
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebp + 0x14], eax
cmp eax, dword [ebp - 4]
jb 0x1014e388
mov esi, dword [ebp + 0x14]
cmp esi, dword [ebp - 4]
je 0x1014e285
mov eax, dword [0x101e316c]
test eax, eax
jge 0x1014e70e
xor eax, eax
jmp 0x1014e715
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 4]
push 0x10
push 0xb8
call fcn.101d8457
test eax, eax
je 0x1014e734
call fcn.101104e0
mov dword [ebp + 0x1c], eax
test eax, eax
jne 0x1014e74e
mov eax, dword [ebp + 8]
mov edi, 0x8007000e
mov byte [eax + 0x240], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
lea eax, [esi + esi*8]
mov esi, dword [edx + 0x54]
shl eax, 5
mov ecx, dword [eax + ecx + 8]
mov dword [ebp + 0x28], eax
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
js 0x1014e7b8
cmp byte [ecx], 0
jne 0x1014e786
mov eax, dword [ebp + 0x1c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jmp 0x1014e7c2
mov eax, ecx
lea edi, [eax + 1]
jmp 0x1014e790
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1014e790
mov ebx, dword [ebp + 0x1c]
add ebx, 8
push ebx
push ecx
lea ecx, [esi + 0x30]
sub eax, edi
push ecx
add esi, 0x48
push esi
mov edi, eax
call fcn.101bff90
test eax, eax
jge 0x1014e83f
mov edi, eax
test eax, eax
jl 0x1014eb04
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x28]
mov ecx, dword [ecx + edx]
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 0x30], ecx
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 0x64]
mov dword [eax + 0x48], ecx
mov dword [ebp + 0x14], 0
mov eax, dword [ebp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x28]
lea ecx, [eax + edx*8]
mov edx, dword [ebp + 0x10]
cmp dword [ecx + edx + 8], 0
lea ebx, [ecx + edx + 8]
je 0x1014eae5
mov eax, dword [ebx + 8]
or eax, dword [ebx + 0xc]
je 0x1014ead5
cmp dword [ebx + 0x10], 0xffffffff
jne 0x1014e8ac
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1014e89d
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x1014e89d
test eax, eax
jge 0x1014e84c
not eax
mov edx, dword [ebp + eax*4 - 0x60]
mov dword [ebp - 4], edx
jmp 0x1014e851
mov edx, dword [ebx]
mov eax, dword [ebp + 0x1c]
mov dword [eax + 0xc], edx
jmp 0x1014e7c2
jbe 0x1014e851
mov dword [ebp - 4], eax
test ecx, ecx
jge 0x1014e860
not ecx
mov eax, dword [ebp + ecx*4 - 0x60]
mov dword [ebp + 0x2c], eax
jmp 0x1014e865
jbe 0x1014e865
mov dword [ebp + 0x2c], ecx
mov eax, 1
cmp dword [ebp + 0x2c], eax
jne 0x1014eafa
cmp dword [ebp - 4], eax
jne 0x1014eafa
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x1014e8d2
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [ebp + 0x20]
push eax
push 0
call edx
cmp eax, 0xffffffff
jne 0x1014e8d2
mov eax, dword [ebp + 0x20]
jmp 0x1014ea12
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1014e8d2
mov dword [ebp + 0x20], eax
jmp 0x1014ea12
mov eax, dword [ebx + 0x18]
xor edi, edi
cmp eax, 0xffffffff
jne 0x1014e8f7
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
je 0x1014e8d2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [ebp - 8]
push edx
push edi
call eax
cmp eax, 0xffffffff
je 0x1014e9a3
mov edi, 0x80004005
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x1008e184
xor ecx, ecx
call fcn.1010e980
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov esi, dword [ebp + eax*4 - 0x28]
cmp esi, 0xf
jge 0x1014e90c
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + esi*4 + 0x68]
jmp 0x1014e998
mov edx, dword [ebp + 8]
cmp dword [edx + esi*4 + 0xa4], edi
jne 0x1014e98e
mov eax, dword [0x101e316c]
cmp eax, edi
jge 0x1014e925
xor eax, eax
jmp 0x1014e92c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 4]
push 0x10
push 0x30
call fcn.101d8457
cmp eax, edi
je 0x1014e978
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 0xffffffff
mov dword [eax], 0x1008b7c0
mov dword [eax + 4], 6
mov dword [eax + 0x18], 0x10
mov dword [eax + 0x2c], 1
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], edi
mov dword [eax + 0x28], edi
jmp 0x1014e984
mov eax, dword [ebp + 8]
mov byte [eax + 0x240], 1
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + esi*4 + 0xa4], eax
mov edx, dword [ebp + 8]
mov esi, dword [edx + esi*4 + 0xa4]
mov dword [ebp - 8], esi
cmp esi, edi
je 0x1014e734
mov eax, dword [ebx + 0x20]
cmp eax, edi
jge 0x1014e9b0
not eax
mov eax, dword [ebp + eax*4 - 0x60]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x24]
cmp eax, edi
jge 0x1014e9c2
not eax
mov edi, dword [ebp + eax*4 - 0x60]
jmp 0x1014e9c4
mov edi, eax
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x64], edx
mov eax, ecx
xor edx, edx
and eax, 0xc00
cmp dword [ebp + 0x14], edx
je 0x1014e9e4
and ecx, 0x20
xor esi, esi
or ecx, esi
jne 0x1014e9e9
or eax, 0x200
mov ecx, dword [ebp - 0xc]
push edi
mov edi, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebx + 0x10]
push eax
mov eax, dword [ebp + edx*4 - 0x44]
push eax
push ecx
mov ecx, dword [ebp - 8]
call fcn.10112d90
mov dword [ebp + 0x20], eax
test eax, eax
je 0x1014e734
cmp dword [ebp + 0x14], 0
jne 0x1014ea52
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x10]
mov esi, dword [ecx + edx + 0x10]
or esi, dword [ecx + edx + 0x14]
je 0x1014ead5
mov esi, dword [ebp + 0x1c]
mov dword [esi + 0x48], eax
mov dword [esi + 0x34], 0
test eax, eax
je 0x1014ead5
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x34], eax
jmp 0x1014ead5
mov eax, dword [0x101e316c]
test eax, eax
jge 0x1014ea5f
xor eax, eax
jmp 0x1014ea66
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 4]
push 0x10
push 0xb0
call fcn.101d8457
test eax, eax
je 0x1014e734
call fcn.10110380
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x1014e734
mov dword [esi + 0x30], 0xffffffff
mov ecx, dword [ebx + 8]
mov dword [esi + 0x68], ecx
mov edx, dword [ebx + 0xc]
mov dword [esi + 0x6c], edx
mov eax, dword [ebp + 0x20]
mov ecx, eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x34], edi
cmp ecx, edi
je 0x1014eaba
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x34], eax
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x58], edi
mov eax, dword [ecx + 0x54]
cmp eax, edi
je 0x1014eacf
mov dword [eax + 0x58], esi
jmp 0x1014ead2
mov dword [ecx + 0x50], esi
mov dword [ecx + 0x54], esi
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebp + 0x14], eax
cmp eax, 7
jb 0x1014e7ee
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x1c]
xor edi, edi
mov dword [ecx], edx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov edi, 0x80004001
jmp 0x1014e8d7
cmp eax, 0x8007000e
jne 0x1014e8d7
mov eax, dword [ebp + 8]
mov byte [eax + 0x240], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28