Function at 0x101adb20
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x3c]
and eax, 0xfffff
xor ecx, ecx
push esi
mov esi, 2
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x50], ecx
cmp eax, 4
jbe 0x101adb7e
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x5c]
push ecx
add edi, 3
shr edi, 2
push edx
lea ecx, [esi + 2]
call fcn.100db050
mov esi, eax
test esi, esi
jl 0x101ae3bc
cmp dword [ebp - 8], 0
jbe 0x101ae3ba
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0xc], edx
cmp eax, 4
jbe 0x101adcdc
mov edi, dword [ebp - 8]
cmp edi, edx
jbe 0x101adcdf
mov esi, 1
lea eax, [edi*4]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], eax
lea esp, [esp]
mov eax, dword [ebx + 4]
cmp dword [edx + eax], 0xffffffff
je 0x101adcc1
mov ecx, eax
mov eax, dword [edx + ecx]
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + ecx]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], esi
cmp esi, edi
jae 0x101adc6e
mov edi, edx
add edi, 4
mov dword [ebp - 0x24], edi
mov edx, dword [ebx + 4]
cmp dword [edi + edx], 0xffffffff
je 0x101adc59
mov esi, dword [edx + esi*4]
mov edx, dword [edi + edx]
mov edi, dword [eax + 0x50]
cmp edi, dword [esi + 0x50]
jne 0x101adc59
mov edi, dword [eax + 0x5c]
cmp edi, dword [esi + 0x5c]
jne 0x101adc59
mov edi, dword [eax + 0x60]
cmp edi, dword [esi + 0x60]
jne 0x101adc59
mov edi, dword [eax + 0x88]
cmp edi, dword [esi + 0x88]
jne 0x101adc59
mov esi, dword [ecx + 0x50]
cmp esi, dword [edx + 0x50]
jne 0x101adc59
mov esi, dword [ecx + 0x5c]
cmp esi, dword [edx + 0x5c]
jne 0x101adc59
mov esi, dword [ecx + 0x60]
cmp esi, dword [edx + 0x60]
jne 0x101adc59
mov esi, dword [ecx + 0x88]
cmp esi, dword [edx + 0x88]
jne 0x101adc59
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, 4
je 0x101adc6e
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
inc esi
add edi, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
cmp esi, dword [ebp - 8]
jb 0x101adbf2
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x1c]
cmp esi, edx
jbe 0x101adcb3
mov edx, esi
mov esi, dword [eax + 0x50]
mov dword [ebp - 0x30], esi
mov esi, dword [ecx + 0x50]
mov dword [ebp - 0x40], esi
mov esi, dword [eax + 0x5c]
mov dword [ebp - 0x34], esi
mov esi, dword [ecx + 0x5c]
mov dword [ebp - 0x44], esi
mov esi, dword [eax + 0x60]
mov eax, dword [eax + 0x88]
mov dword [ebp - 0x38], esi
mov esi, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x88]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], ecx
cmp edx, 4
je 0x101adcdf
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x2c]
add dword [ebp - 0x14], 4
inc esi
add edx, 4
lea eax, [esi - 1]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], esi
cmp eax, edi
jb 0x101adbc0
jmp 0x101adcdf
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push 0xffffffffffffffff
and ecx, 0xfffff
or ecx, 0x50000000
push ecx
lea edx, [ebp - 0x10]
push edx
push eax
call fcn.10169e20
mov esi, eax
test esi, esi
jl 0x101ae3bc
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x34], ecx
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebp - 8]
mov dword [edx + 0x38], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x2c], esi
test ecx, ecx
jbe 0x101ade09
mov edi, dword [ebp - 0xc]
add edi, edi
add edi, edi
lea edx, [ecx*4]
mov dword [ebp - 0x28], edi
cmp esi, dword [ebp - 0xc]
jae 0x101ade06
mov ecx, dword [ebx + 4]
cmp dword [ecx + eax*4], 0xffffffff
je 0x101addf7
cmp dword [ebp - 0x18], 4
mov edi, dword [ecx + eax*4]
mov ecx, dword [edx + ecx]
mov dword [ebp - 0x24], ecx
jbe 0x101addb5
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [edi + 0x50]
jne 0x101addf7
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [edi + 0x5c]
jne 0x101addf7
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [edi + 0x60]
jne 0x101addf7
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [edi + 0x88]
jne 0x101addf7
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x24]
cmp edi, dword [ecx + 0x50]
jne 0x101addf7
mov edi, dword [ebp - 0x44]
cmp edi, dword [ecx + 0x5c]
jne 0x101addf7
mov edi, dword [ebp - 0x48]
cmp edi, dword [ecx + 0x60]
jne 0x101addf7
mov edi, dword [ebp - 0x4c]
cmp edi, dword [ecx + 0x88]
jne 0x101addf7
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + eax*4]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 4]
mov dword [edi + esi*4], ecx
mov ecx, dword [ebx + 4]
mov edi, dword [edx + ecx]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 4]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + esi], edi
mov esi, dword [ebx + 4]
mov dword [esi + eax*4], 0xffffffff
mov esi, dword [ebx + 4]
mov dword [edx + esi], 0xffffffff
mov esi, dword [ebp - 0x2c]
inc esi
add ecx, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 8]
inc eax
add edx, 4
cmp eax, ecx
jb 0x101add3f
mov edx, dword [ebp - 0x10]
cmp ecx, 4
jbe 0x101ae040
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x8040]
mov eax, dword [0x101e316c]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x2c], ecx
test eax, eax
jge 0x101ade2e
xor eax, eax
jmp 0x101ade35
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], 0
je 0x101ade60
mov ecx, dword [eax + 0xc]
xor esi, esi
cmp ecx, esi
jne 0x101ade4a
xor ecx, ecx
mov ebx, ecx
jmp 0x101ade73
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
cmp edx, esi
jne 0x101ade56
mov dword [eax + 0x10], esi
mov dword [ecx], 0xfefefefe
mov ebx, ecx
jmp 0x101ade73
mov ecx, dword [eax + 8]
push 0x10
push pe_nt_image_headers32
call fcn.101d8457
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x101adec7
or eax, 0xffffffff
push eax
push eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
push edi
mov eax, ebx
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 0x94], esi
mov dword [ebx + 0x98], esi
mov dword [ebx + 0x24], esi
call fcn.10165570
cmp eax, esi
mov dword [ebp - 0x14], eax
jl 0x101aded3
mov edi, dword [ebp + 8]
push 0
call fcn.10169830
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x101aded3
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0
mov dword [edx], ebx
jmp 0x101adfe9
mov dword [ebp - 0x14], 0x8007000e
jmp 0x101adfe9
mov ecx, dword [ebx + 0x50]
xor esi, esi
cmp ecx, esi
je 0x101adf07
cmp ecx, 0xffffffff
je 0x101adf07
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x101adeee
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x101adef3
mov eax, dword [ebx]
mov dword [ecx + 0x24], eax
mov eax, dword [ebx]
cmp eax, esi
je 0x101adf01
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
jmp 0x101adf07
mov edx, dword [ebx + 4]
mov dword [ecx + 0x28], edx
mov edi, dword [ebx + 0x94]
cmp edi, esi
je 0x101adf54
cmp byte [edi + 0xc], 0
mov dword [edi + 8], esi
je 0x101adf46
mov esi, dword [edi]
test esi, esi
je 0x101adf40
mov eax, dword [0x101e316c]
test eax, eax
jge 0x101adf2d
xor eax, eax
jmp 0x101adf34
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [edi + 0xc], 0
xor esi, esi
push edi
mov dword [edi], esi
mov dword [edi + 4], esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [ebx + 0x98]
mov dword [ebx + 0x94], esi
cmp edi, esi
je 0x101adfa7
cmp byte [edi + 0xc], 0
mov dword [edi + 8], esi
je 0x101adf99
mov esi, dword [edi]
test esi, esi
je 0x101adf93
mov eax, dword [0x101e316c]
test eax, eax
jge 0x101adf80
xor eax, eax
jmp 0x101adf87
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [edi + 0xc], 0
xor esi, esi
push edi
mov dword [edi], esi
mov dword [edi + 4], esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebx + 0x98], esi
mov eax, dword [0x101e316c]
cmp eax, esi
jge 0x101adfba
xor edi, edi
jmp 0x101adfc3
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], esi
mov eax, dword [edi + 0x10]
add esp, 0xc
cmp eax, esi
je 0x101adfe3
mov dword [eax], ebx
jmp 0x101adfe6
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov esi, dword [ebp - 0x14]
test esi, esi
jl 0x101ae3bc
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov edx, dword [ebp - 0x5c]
mov esi, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [edx + esi*4], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx]
mov edi, dword [edx]
mov ecx, dword [esi + 0x68]
mov dword [edi + 0x68], ecx
mov dl, byte [esi + 0x6c]
mov byte [edi + 0x6c], dl
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
lea eax, [edx + 0x28]
mov edx, dword [eax]
add ecx, 0x28
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
jmp 0x101ae04a
mov ecx, dword [ebx + 0xc]
mov edx, dword [edx + 0xc]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
inc dword [ebp - 4]
mov dword [ebp - 0x18], eax
test eax, eax
ja 0x101adb88
cmp dword [ebp - 4], 1
jbe 0x101ae3ba
mov eax, dword [ebp + 8]
fld1
mov ecx, dword [eax + 0x8024]
sub esp, 8
fstp qword [esp]
push ecx
lea edx, [ebp - 0x4c]
push edx
push eax
mov eax, 4
call fcn.10169cc0
mov esi, eax
test esi, esi
jl 0x101ae3bc
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 4], eax
jbe 0x101ae3ae
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 4]
sub ebx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
cmp ebx, 4
jbe 0x101ae153
mov ebx, 4
mov ecx, ebx
push 0xffffffffffffffff
and ecx, 0xfffff
push 0xffffffffffffffff
or ecx, 0x50000000
push ecx
lea edx, [ebp - 0x10]
push edx
push eax
call fcn.10169e20
mov esi, eax
test esi, esi
jl 0x101ae3bc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x34]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x34], eax
mov edx, dword [ecx + 0x38]
xor esi, esi
xor eax, eax
mov dword [edi + 0x38], edx
cmp ebx, esi
jbe 0x101ae12a
lea ecx, [ebx*4]
mov esi, dword [ebp - 0x5c]
mov edx, dword [edi + 4]
mov esi, dword [esi + eax*4]
mov dword [edx + eax*4], esi
cmp ebx, 2
jbe 0x101ae11d
mov edx, dword [edi + 4]
mov esi, dword [ebp - 0x4c]
mov dword [ecx + edx], esi
inc eax
add ecx, 4
cmp eax, ebx
jb 0x101ae103
mov ecx, dword [ebp + 0xc]
xor esi, esi
cmp dword [ebp - 4], 4
mov edx, dword [edi + 0xc]
jbe 0x101ae38d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x8040]
mov eax, dword [0x101e316c]
cmp eax, esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
jge 0x101ae181
xor eax, eax
jmp 0x101ae188
cmp ebx, 1
jne 0x101ae16a
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x10000001
lea ecx, [ebp - 0x10]
push ecx
jmp 0x101ae0d2
cmp ebx, 2
jne 0x101ae0bb
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x20400001
jmp 0x101ae0ce
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], esi
je 0x101ae1b0
mov ecx, dword [eax + 0xc]
cmp ecx, esi
jne 0x101ae19a
xor ecx, ecx
mov ebx, ecx
jmp 0x101ae1c1
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
cmp edx, esi
jne 0x101ae1a6
mov dword [eax + 0x10], esi
mov dword [ecx], 0xfefefefe
mov ebx, ecx
jmp 0x101ae1c1
mov ecx, dword [eax + 8]
push 0x10
push pe_nt_image_headers32
call fcn.101d8457
mov ebx, eax
cmp ebx, esi
je 0x101ae217
or eax, 0xffffffff
push eax
push eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, ebx
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 0x94], esi
mov dword [ebx + 0x98], esi
mov dword [ebx + 0x24], esi
call fcn.10165570
cmp eax, esi
mov dword [ebp - 0x18], eax
jl 0x101ae225
mov edi, dword [ebp + 8]
push esi
call fcn.10169830
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x101ae223
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ecx], ebx
jmp 0x101ae339
mov dword [ebp - 0x18], 0x8007000e
jmp 0x101ae33c
xor esi, esi
mov ecx, dword [ebx + 0x50]
cmp ecx, esi
je 0x101ae257
cmp ecx, 0xffffffff
je 0x101ae257
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x101ae23e
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x101ae243
mov eax, dword [ebx]
mov dword [ecx + 0x24], eax
mov eax, dword [ebx]
cmp eax, esi
je 0x101ae251
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
jmp 0x101ae257
mov edx, dword [ebx + 4]
mov dword [ecx + 0x28], edx
mov edi, dword [ebx + 0x94]
cmp edi, esi
je 0x101ae2a4
cmp byte [edi + 0xc], 0
mov dword [edi + 8], esi
je 0x101ae296
mov esi, dword [edi]
test esi, esi
je 0x101ae290
mov eax, dword [0x101e316c]
test eax, eax
jge 0x101ae27d
xor eax, eax
jmp 0x101ae284
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [edi + 0xc], 0
xor esi, esi
push edi
mov dword [edi], esi
mov dword [edi + 4], esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [ebx + 0x98]
mov dword [ebx + 0x94], esi
cmp edi, esi
je 0x101ae2f7
cmp byte [edi + 0xc], 0
mov dword [edi + 8], esi
je 0x101ae2e9
mov esi, dword [edi]
test esi, esi
je 0x101ae2e3
mov eax, dword [0x101e316c]
test eax, eax
jge 0x101ae2d0
xor eax, eax
jmp 0x101ae2d7
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [edi + 0xc], 0
xor esi, esi
push edi
mov dword [edi], esi
mov dword [edi + 4], esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebx + 0x98], esi
mov eax, dword [0x101e316c]
cmp eax, esi
jge 0x101ae30a
xor edi, edi
jmp 0x101ae313
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], esi
mov eax, dword [edi + 0x10]
add esp, 0xc
cmp eax, esi
je 0x101ae333
mov dword [eax], ebx
jmp 0x101ae336
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
test esi, esi
jl 0x101ae3bc
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + edx], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov esi, dword [eax + 0x68]
mov ecx, dword [edi + 0xc]
mov ecx, dword [ecx]
mov dword [ecx + 0x68], esi
mov al, byte [eax + 0x6c]
mov byte [ecx + 0x6c], al
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx]
mov edx, dword [edi + 0xc]
mov ecx, dword [edx]
mov edx, dword [eax + 0x28]
add eax, 0x28
add ecx, 0x28
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
jmp 0x101ae394
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
add eax, eax
add eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 4]
jb 0x101ae0a4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp eax, 1
ja 0x101ae093
xor esi, esi
cmp dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
lea ecx, [ecx + ecx*2]
lea edi, [edx + ecx*4 + 0x8140]
je 0x101ae3fc
test eax, eax
ja 0x101ae3de
mov eax, 1
mov ebx, dword [edi]
cmp eax, dword [ebx + 8]
jae 0x101ae3f3
sub dword [ebx + 8], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
mov dword [edi], eax
call fcn.100daed0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8