Function at 0x1016b9b0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi + 4]
push edi
xor edi, edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0xc], edi
cmp edx, edi
jbe 0x1016b9e4
mov eax, dword [esi + 0x7f24]
mov eax, dword [eax]
jmp 0x1016b9e6
xor eax, eax
xor ebx, ebx
cmp edx, edi
jbe 0x1016ba11
lea esp, [esp]
mov eax, dword [eax + 0x10]
and eax, 0x20
xor ecx, ecx
or eax, ecx
je 0x1016b9fd
inc edi
inc ebx
cmp ebx, edx
jae 0x1016ba0d
mov ecx, dword [esi + 0x7f24]
mov eax, dword [ecx + ebx*4]
jmp 0x1016b9f0
test edi, edi
jne 0x1016ba1f
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10164550
mov esi, eax
test esi, esi
jl 0x1016bf13
mov edx, dword [ebp + 8]
push edx
call fcn.10175ad0
mov esi, eax
test esi, esi
jl 0x1016bf13
mov eax, dword [ebp + 8]
xor edx, edx
cmp dword [eax + 0x10], edx
jbe 0x1016ba55
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
jmp 0x1016ba58
mov dword [ebp - 8], edx
mov ecx, dword [eax + 4]
cmp ecx, edx
jbe 0x1016ba69
mov eax, dword [eax + 0x7f24]
mov eax, dword [eax]
jmp 0x1016ba6b
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
cmp ecx, edx
jbe 0x1016bca7
mov ebx, dword [ebp + 8]
lea esp, [esp]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x10]
and eax, 0x20
xor ecx, ecx
or eax, ecx
je 0x1016bc77
mov eax, dword [ebx + 0x8040]
lea edx, [ebp - 0x10]
push edx
push eax
call fcn.10169fd0
mov esi, eax
test esi, esi
jl 0x1016bf13
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
or dword [eax + 8], 0x40
xor edx, edx
mov dword [eax + 0xc], ecx
mov dword [eax + 4], 0x10090360
mov dword [eax + 0x10], edx
mov esi, dword [ebx + 8]
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edx
jbe 0x1016badc
mov eax, dword [ebx + 0x7f2c]
mov eax, dword [eax]
jmp 0x1016bade
xor eax, eax
cmp esi, edx
jbe 0x1016bb1e
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 0x24]
jne 0x1016bb0b
mov eax, dword [eax + 0x24]
test eax, eax
je 0x1016bb0b
cmp dword [eax + 0x20], 0
je 0x1016bb05
or ecx, 0xffffffff
cmp dword [eax + 0x5c], ecx
jne 0x1016bb05
cmp dword [eax + 0x58], ecx
jne 0x1016bb05
inc edi
mov eax, dword [eax]
test eax, eax
jne 0x1016baf1
inc edx
cmp edx, esi
jae 0x1016bb1b
mov eax, dword [ebx + 0x7f2c]
mov eax, dword [eax + edx*4]
jmp 0x1016bae2
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x24]
add edi, 0x18
cmp dword [edi], 0xffffffff
mov dword [ebp - 0x14], edi
jne 0x1016bb8b
mov edx, dword [ebx + 0x8050]
lea ecx, [ebp - 0x18]
push ecx
push edx
call fcn.10169fd0
mov esi, eax
test esi, esi
jl 0x1016bf13
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x18], ecx
cmp dword [ecx + 0x40], 0
je 0x1016bb6e
cmp dword [ecx + 0x20], 0xffffffff
je 0x1016bb6e
mov edx, dword [eax + 0xc]
or dword [eax + 8], 0x800
mov dword [eax + 0xc], edx
mov ecx, dword [ecx + 0x40]
mov dword [eax + 4], ecx
push 0x26
push 0
push 0
push eax
push edi
push ebx
call fcn.10169c20
mov esi, eax
test esi, esi
jl 0x1016bf13
mov eax, dword [edi]
mov dword [eax + 0x74], eax
cmp dword [ebp - 4], 0
je 0x1016bc77
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xc]
jbe 0x1016bbd2
lea esi, [ebp - 0x3c]
call fcn.100da650
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov esi, dword [ebp - 0x34]
push ecx
push edx
mov ecx, 4
call fcn.100db050
mov esi, eax
test esi, esi
jl 0x1016bf13
mov ebx, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0xc], eax
mov ecx, dword [ebx + 8]
xor esi, esi
xor edi, edi
test ecx, ecx
jbe 0x1016bbe7
mov edx, dword [ebx + 0x7f2c]
mov eax, dword [edx]
jmp 0x1016bbe9
xor eax, eax
xor edx, edx
test ecx, ecx
jbe 0x1016bc4a
nop
mov ecx, dword [ebp - 0x24]
cmp dword [eax + 0x18], ecx
jne 0x1016bc2f
mov eax, dword [eax + 0x24]
test eax, eax
je 0x1016bc2f
or ecx, 0xffffffff
cmp dword [eax + 0x20], 0
je 0x1016bc29
cmp dword [eax + 0x5c], ecx
jne 0x1016bc29
cmp dword [eax + 0x58], ecx
jne 0x1016bc29
test edi, edi
jne 0x1016bc1f
mov ecx, dword [eax + 0x18]
mov edi, dword [ebx + 0x14]
mov edi, dword [edi + ecx*4]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + esi*4], eax
inc esi
or ecx, 0xffffffff
mov eax, dword [eax]
test eax, eax
jne 0x1016bc02
mov ecx, dword [ebx + 8]
inc edx
cmp edx, ecx
jb 0x1016bc3d
xor eax, eax
mov edx, ecx
jmp 0x1016bc46
mov eax, dword [ebx + 0x7f2c]
mov eax, dword [eax + edx*4]
cmp edx, ecx
jb 0x1016bbf0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
push ecx
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
push edx
mov edx, dword [ebp - 0x10]
push 0
push ecx
mov ecx, dword [ebp - 0x3c]
push edx
push eax
push ecx
push edi
push ebx
call fcn.1016ad30
mov esi, eax
test esi, esi
jl 0x1016bf13
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebx + 4]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, eax
jb 0x1016bc93
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
mov ecx, eax
jmp 0x1016bc9f
mov edx, dword [ebx + 0x7f24]
mov edx, dword [edx + ecx*4]
mov dword [ebp - 0x24], edx
cmp ecx, eax
jb 0x1016ba80
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x10]
xor ebx, ebx
cmp ecx, ebx
jbe 0x1016bcba
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
jmp 0x1016bcbc
xor eax, eax
xor esi, esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
cmp ecx, ebx
jbe 0x1016bef2
lea esp, [esp]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax]
and ecx, 0xfffff
xor edx, edx
div ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], eax
cmp eax, ebx
jbe 0x1016becd
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
cmp ecx, ebx
jbe 0x1016bea8
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + eax]
mov edi, dword [ecx + 0x50]
mov eax, dword [edi + 8]
and eax, 0x1000000
xor edx, edx
or eax, edx
je 0x1016be94
or edx, 0xffffffff
cmp dword [ecx + 0x5c], edx
je 0x1016be94
cmp dword [ecx + 0x74], ecx
jne 0x1016be94
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x10], eax
cmp dword [eax + 0x18], edx
jne 0x1016be5e
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x8050]
lea edx, [ebp - 0x1c]
push edx
push eax
call fcn.10169fd0
mov esi, eax
test esi, esi
jl 0x1016bf13
mov ecx, dword [edi + 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [esi + 0x18], ecx
mov eax, dword [0x101e316c]
xor edi, edi
cmp eax, edi
jge 0x1016bd7e
xor eax, eax
jmp 0x1016bd85
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], edi
je 0x1016bdad
mov ecx, dword [eax + 0xc]
cmp ecx, edi
jne 0x1016bd97
xor ecx, ecx
mov ebx, ecx
jmp 0x1016bdbe
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
cmp edx, edi
jne 0x1016bda3
mov dword [eax + 0x10], edi
mov dword [ecx], 0xfefefefe
mov ebx, ecx
jmp 0x1016bdbe
mov ecx, dword [eax + 8]
push 0x10
push pe_nt_image_headers32
call fcn.101d8457
mov ebx, eax
cmp ebx, edi
je 0x1016be08
or eax, 0xffffffff
push edi
push edi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
push esi
mov eax, ebx
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0x94], edi
mov dword [ebx + 0x98], edi
mov dword [ebx + 0x24], edi
call fcn.10165570
mov esi, eax
cmp esi, edi
jl 0x1016be0f
push edi
mov edi, dword [ebp + 8]
call fcn.10169830
mov esi, eax
test esi, esi
jl 0x1016be0f
mov edx, dword [ebp - 0x10]
xor esi, esi
mov dword [edx + 0x18], ebx
jmp 0x1016be56
mov esi, 0x8007000e
jmp 0x1016be56
mov edi, ebx
call fcn.101654a0
mov eax, dword [0x101e316c]
test eax, eax
jge 0x1016be23
xor edi, edi
jmp 0x1016be2c
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 0x1016be50
mov dword [eax], ebx
jmp 0x1016be53
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
test esi, esi
jl 0x1016bf13
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x18]
mov dword [eax + 0x74], eax
mov eax, dword [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [ecx + 0x18]
push 1
push ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x8040]
push edx
mov edx, dword [ebp - 0xc]
push edx
mov edx, dword [eax + 4]
add edx, dword [ebp - 4]
push edx
push eax
push ecx
call fcn.1016ad30
mov esi, eax
test esi, esi
jl 0x1016bf13
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 4
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0xc]
jb 0x1016bd04
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
inc edx
lea eax, [ecx*4]
add dword [ebp - 4], eax
xor ebx, ebx
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x20]
jb 0x1016bcf3
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x28]
mov ecx, dword [edi + 0x10]
inc esi
mov dword [ebp - 0x28], esi
cmp esi, ecx
jb 0x1016bee1
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x28], esi
jmp 0x1016bee7
mov eax, dword [edi + 0x14]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x2c], eax
cmp esi, ecx
jb 0x1016bcd0
mov edi, dword [ebp + 8]
push edi
call fcn.101645a0
mov esi, eax
call fcn.10164720
test eax, eax
je 0x1016bf11
test esi, esi
je 0x1016bf11
mov esi, 1
jmp 0x1016bf13
xor esi, esi
cmp dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
lea ecx, [ecx + ecx*2]
lea edi, [edx + ecx*4 + 0x8140]
je 0x1016bf53
test eax, eax
ja 0x1016bf35
mov eax, 1
mov ebx, dword [edi]
cmp eax, dword [ebx + 8]
jae 0x1016bf4a
sub dword [ebx + 8], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
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 4