Function at 0x101af420
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
mov dl, byte [eax + 0x6c]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0x68]
push ebx
push esi
push edi
mov edi, dword [ecx]
mov byte [ebp - 5], dl
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xc], edi
cmp dword [edi + 0x64], 0
jne 0x101af592
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
je 0x101af46f
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x10], eax
jbe 0x101af592
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 5]
cmp eax, 0xffffffff
je 0x101af48f
mov edx, dword [edi + 0x68]
lea ecx, [ecx]
cmp eax, edx
je 0x101af48f
mov cl, byte [eax + 0x6c]
mov eax, dword [eax + 0x68]
cmp eax, 0xffffffff
jne 0x101af480
cmp eax, dword [edi + 0x68]
jne 0x101af592
cmp cl, byte [edi + 0x6c]
jne 0x101af592
mov ebx, 1
mov dword [ebp - 0x30], edi
cmp ebx, dword [ebp + 0x14]
jae 0x101af539
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x30]
sub eax, ecx
lea esi, [ecx + 4]
mov dword [ebp - 0x10], eax
jmp 0x101af4c5
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi]
cmp dword [ecx + 0x64], ebx
jne 0x101af51e
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x101af4dc
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x10], eax
jbe 0x101af51e
mov eax, dword [ecx + 0x50]
cmp eax, dword [edi + 0x50]
jne 0x101af51e
mov edx, dword [ecx + 0x60]
cmp edx, dword [edi + 0x60]
jne 0x101af51e
mov eax, dword [ecx + 0x5c]
cmp eax, dword [edi + 0x5c]
jne 0x101af51e
mov eax, dword [ebp - 0x18]
mov dl, byte [ebp - 5]
cmp eax, 0xffffffff
je 0x101af511
mov edi, dword [ecx + 0x68]
cmp eax, edi
je 0x101af511
mov dl, byte [eax + 0x6c]
mov eax, dword [eax + 0x68]
cmp eax, 0xffffffff
jne 0x101af502
cmp eax, dword [ecx + 0x68]
jne 0x101af51b
cmp dl, byte [ecx + 0x6c]
je 0x101af527
mov edi, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x78]
cmp ecx, dword [esi]
jne 0x101af4c7
jmp 0x101af536
mov edx, dword [ebp - 0x10]
mov dword [edx + esi], ecx
inc ebx
add esi, 4
cmp ebx, dword [ebp + 0x14]
jb 0x101af4c2
cmp ebx, dword [ebp + 0x14]
jne 0x101af58f
mov ebx, dword [ebp + 0x14]
xor edi, edi
xor edx, edx
test ebx, ebx
jbe 0x101af56d
mov esi, dword [ebp + 0xc]
lea esp, [esp]
mov eax, dword [ebp + edx*4 - 0x30]
mov ecx, dword [eax + 0xc]
cmp ecx, 0xffffffff
je 0x101af568
mov eax, dword [esi + 0x10]
sub eax, ecx
mov ecx, eax
imul ecx, eax
add edi, ecx
inc edx
cmp edx, ebx
jb 0x101af550
cmp dword [ebp - 0x14], edi
jbe 0x101af58f
mov edx, ebx
lea eax, [edx*4]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x14], edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edi, dword [ebp - 0xc]
mov edi, dword [edi + 0x78]
mov dword [ebp - 0xc], edi
cmp edi, dword [ebp - 0x1c]
jne 0x101af451
cmp dword [ebp - 0x14], 0xffffffff
je 0x101af5cd
mov eax, dword [ebp + 0x14]
lea ecx, [eax*4]
mov eax, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x40]
push edx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push 0xffffffffffffffff
push 0xffffffffffffffff
and ecx, 0xfffff
or ecx, 0x10000000
push ecx
lea edx, [ebp - 0x14]
push edx
push ebx
call fcn.10169e20
test eax, eax
jl 0x101af8f6
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x34]
mov edi, dword [ebp - 0x14]
mov dword [edi + 0x34], ecx
mov edx, dword [eax + 0x38]
mov dword [edi + 0x38], edx
mov dword [ebp - 0x10], 0
jbe 0x101af8ce
lea esp, [esp]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi + 4]
add esi, esi
add esi, esi
mov edx, dword [esi + ecx]
mov dword [esi + eax], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov eax, dword [edi + 0xc]
mov edx, dword [ebx + 0x8040]
add eax, esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x101e316c]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], edx
test eax, eax
jge 0x101af659
xor eax, eax
jmp 0x101af660
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], 0
je 0x101af687
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x101af671
mov ebx, ecx
jmp 0x101af698
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
test edx, edx
jne 0x101af67d
mov dword [eax + 0x10], edx
mov dword [ecx], 0xfefefefe
mov ebx, ecx
jmp 0x101af698
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 0x101af6f7
mov edx, dword [ebp - 0xc]
or eax, 0xffffffff
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x98], ecx
mov dword [ebx + 0x24], ecx
mov ecx, dword [ebp - 0x1c]
push ecx
push edx
mov eax, ebx
call fcn.10165570
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x101af701
mov edi, dword [ebp + 8]
push 0
call fcn.10169830
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x101af701
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [eax], ebx
jmp 0x101af836
mov eax, 0x8007000e
jmp 0x101af83e
mov ecx, dword [ebx + 0x50]
test ecx, ecx
je 0x101af733
cmp ecx, 0xffffffff
je 0x101af733
mov eax, dword [ebx + 4]
test eax, eax
je 0x101af71a
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x101af71f
mov eax, dword [ebx]
mov dword [ecx + 0x24], eax
mov eax, dword [ebx]
test eax, eax
je 0x101af72d
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
jmp 0x101af733
mov edx, dword [ebx + 4]
mov dword [ecx + 0x28], edx
mov edi, dword [ebx + 0x94]
test edi, edi
je 0x101af790
cmp byte [edi + 0xc], 0
mov dword [edi + 8], 0
je 0x101af77a
mov ecx, dword [edi]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x101af776
mov eax, dword [0x101e316c]
test eax, eax
jge 0x101af760
xor eax, eax
jmp 0x101af76a
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [edi + 0xc], 0
push edi
mov dword [edi], 0
mov dword [edi + 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [ebx + 0x98]
xor eax, eax
mov dword [ebx + 0x94], eax
cmp edi, eax
je 0x101af7ef
mov dword [edi + 8], eax
cmp byte [edi + 0xc], al
je 0x101af7d7
mov ecx, dword [edi]
mov dword [ebp - 0x20], ecx
cmp ecx, eax
je 0x101af7d3
mov ecx, dword [0x101e316c]
cmp ecx, eax
jl 0x101af7c4
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax]
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [edi + 0xc], 0
push edi
mov dword [edi], 0
mov dword [edi + 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebx + 0x98], eax
mov ecx, dword [0x101e316c]
cmp ecx, eax
jge 0x101af803
xor edi, edi
jmp 0x101af80c
push ecx
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 0x101af830
mov dword [eax], ebx
jmp 0x101af833
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
xor ecx, ecx
cmp eax, ecx
jl 0x101af8f6
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + eax]
mov dl, byte [ebp - 5]
mov byte [ecx + 0x6c], dl
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + eax]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x68], edx
mov eax, dword [edi + 4]
mov eax, dword [esi + eax]
mov ecx, dword [eax + 0x40]
mov edx, dword [eax + 0x44]
mov eax, dword [edi + 0xc]
mov eax, dword [esi + eax]
and ecx, 0xff7fffff
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov ecx, dword [edi + 4]
mov edx, dword [esi + ecx]
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + eax]
mov edx, dword [edx + 0x4c]
mov dword [ecx + 0x4c], edx
mov eax, dword [edi + 4]
mov ecx, dword [esi + eax]
mov edx, dword [edi + 0xc]
mov eax, dword [esi + edx]
mov ecx, dword [ecx + 0x78]
mov ebx, dword [ebp + 8]
mov dword [eax + 0x78], ecx
mov eax, dword [edi + 4]
mov ecx, dword [esi + eax]
mov edx, dword [edi + 0xc]
mov edx, dword [esi + edx]
mov dword [ecx + 0x78], edx
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + eax]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
inc eax
mov dword [esi + edx], ecx
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp + 0x14]
jb 0x101af620
mov eax, dword [ebp + 0xc]
push 0
push eax
lea ecx, [ebp - 0x14]
push ecx
push 1
mov edi, ebx
call fcn.1016a230
test eax, eax
jl 0x101af8f6
push ebx
call fcn.10175ad0
test eax, eax
jl 0x101af8f6
mov eax, dword [ebp + 0x18]
inc dword [eax]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14