Function at 0x101692d0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebx + 4], 0
mov esi, dword [edi + 4]
mov dword [ebx + 0x7f20], esi
cmp esi, 0x3fffffff
jbe 0x101692fb
xor eax, eax
jmp 0x10169322
mov eax, dword [0x101e316c]
test eax, eax
jge 0x10169308
xor eax, eax
jmp 0x1016930f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
lea ecx, [esi*4]
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx + 0x7f24], eax
test eax, eax
je 0x101695d0
xor esi, esi
cmp dword [edi + 4], esi
jbe 0x10169371
jmp 0x10169340
mov ecx, dword [edi + 0x7f24]
mov edx, dword [ecx + esi*4]
lea eax, [ebp - 4]
push eax
push edx
push ebx
call fcn.10169f10
test eax, eax
jl 0x1016964c
mov eax, dword [edi + 0x7f24]
mov ecx, dword [eax + esi*4]
mov edx, dword [ebp - 4]
inc esi
mov dword [ecx + 0x38], edx
cmp esi, dword [edi + 4]
jb 0x10169340
mov dword [ebx + 8], 0
mov esi, dword [edi + 8]
mov dword [ebx + 0x7f28], esi
cmp esi, 0x3fffffff
jbe 0x1016938d
xor eax, eax
jmp 0x101693b4
mov eax, dword [0x101e316c]
test eax, eax
jge 0x1016939a
xor eax, eax
jmp 0x101693a1
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
lea ecx, [esi*4]
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx + 0x7f2c], eax
test eax, eax
je 0x101695d0
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10169412
lea esp, [esp]
mov ecx, dword [edi + 0x7f2c]
mov edx, dword [ecx + esi*4]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edx
call fcn.10169fd0
test eax, eax
jl 0x1016964c
mov eax, dword [edi + 0x7f2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [ebp - 4]
mov dword [ecx + 0x2c], eax
cmp dword [eax + 0x18], 0xffffffff
je 0x1016940c
mov edx, dword [eax + 0x18]
mov ecx, dword [edx + 0x38]
mov dword [eax + 0x18], ecx
inc esi
cmp esi, dword [edi + 8]
jb 0x101693d0
mov dword [ebx + 0xc], 0
mov esi, dword [edi + 0xc]
mov dword [ebx + 0x7f30], esi
cmp esi, 0x3fffffff
jbe 0x1016942e
xor eax, eax
jmp 0x10169455
mov eax, dword [0x101e316c]
test eax, eax
jge 0x1016943b
xor eax, eax
jmp 0x10169442
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
lea edx, [esi*4]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx + 0x7f34], eax
test eax, eax
je 0x101695d0
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jbe 0x10169511
mov edx, dword [edi + 0x7f34]
mov eax, dword [edx + ebx*4]
lea ecx, [ebp - 4]
push ecx
push eax
push esi
call fcn.1016a070
test eax, eax
jl 0x1016964c
mov ecx, dword [edi + 0x7f34]
mov edx, dword [ecx + ebx*4]
mov eax, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov ecx, dword [eax + 0x50]
mov ecx, dword [ecx + 0x2c]
mov edx, dword [eax + 0x50]
cmp edx, ecx
je 0x10169507
test edx, edx
je 0x101694db
cmp edx, 0xffffffff
je 0x101694db
mov esi, dword [eax + 4]
test esi, esi
je 0x101694c2
mov edi, dword [eax]
mov dword [esi], edi
mov edi, dword [ebp + 0xc]
jmp 0x101694c7
mov esi, dword [eax]
mov dword [edx + 0x24], esi
mov esi, dword [eax]
test esi, esi
je 0x101694d5
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
jmp 0x101694db
mov esi, dword [eax + 4]
mov dword [edx + 0x28], esi
test ecx, ecx
je 0x10169501
cmp ecx, 0xffffffff
je 0x10169501
mov edx, dword [ecx + 0x28]
mov dword [eax + 4], edx
mov edx, dword [ecx + 0x28]
test edx, edx
je 0x101694f5
mov dword [edx], eax
jmp 0x101694f8
mov dword [ecx + 0x24], eax
mov dword [eax], 0
mov dword [ecx + 0x28], eax
mov esi, dword [ebp + 8]
mov dword [eax + 0x50], ecx
inc ebx
cmp ebx, dword [edi + 0xc]
jb 0x10169471
xor edx, edx
cmp dword [esi + 0xc], edx
jbe 0x10169583
jmp 0x10169520
mov eax, dword [esi + 0x7f34]
mov eax, dword [eax + edx*4]
mov ecx, dword [eax + 0x58]
cmp ecx, 0xffffffff
je 0x10169537
mov ecx, dword [ecx + 0x28]
mov dword [eax + 0x58], ecx
mov ecx, dword [eax + 0x5c]
cmp ecx, 0xffffffff
je 0x10169545
mov ecx, dword [ecx + 0x28]
mov dword [eax + 0x5c], ecx
mov ecx, dword [eax + 0x68]
cmp ecx, 0xffffffff
je 0x10169553
mov ecx, dword [ecx + 0x28]
mov dword [eax + 0x68], ecx
mov ecx, dword [eax + 0x74]
cmp ecx, 0xffffffff
je 0x10169561
mov ecx, dword [ecx + 0x28]
mov dword [eax + 0x74], ecx
mov ecx, dword [eax + 0x78]
cmp ecx, 0xffffffff
je 0x1016956f
mov ecx, dword [ecx + 0x28]
mov dword [eax + 0x78], ecx
mov ecx, dword [eax + 0x7c]
cmp ecx, 0xffffffff
je 0x1016957d
mov ecx, dword [ecx + 0x28]
mov dword [eax + 0x7c], ecx
inc edx
cmp edx, dword [esi + 0xc]
jb 0x10169520
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x10], 0
mov esi, dword [edi + 0x10]
mov dword [ebx + 0x7f38], esi
cmp esi, 0x3fffffff
jbe 0x101695a2
xor eax, eax
jmp 0x101695c9
mov eax, dword [0x101e316c]
test eax, eax
jge 0x101695af
xor eax, eax
jmp 0x101695b6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
lea edx, [esi*4]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x101695de
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 8
xor esi, esi
cmp dword [edi + 0x10], esi
jbe 0x1016964a
jmp 0x101695ea
mov ebx, dword [ebp + 8]
mov edx, dword [edi + 0x14]
mov eax, dword [edx + esi*4]
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call fcn.1016a100
test eax, eax
jl 0x1016964c
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [eax], ecx
jbe 0x10169623
jmp 0x10169610
mov edx, dword [eax + 4]
mov ebx, dword [edx + ecx*4]
mov ebx, dword [ebx + 0x28]
lea edx, [edx + ecx*4]
inc ecx
mov dword [edx], ebx
cmp ecx, dword [eax]
jb 0x10169610
xor ecx, ecx
cmp dword [eax + 8], ecx
jbe 0x10169644
lea ebx, [ebx]
mov edx, dword [eax + 0xc]
mov ebx, dword [edx + ecx*4]
mov ebx, dword [ebx + 0x28]
lea edx, [edx + ecx*4]
inc ecx
mov dword [edx], ebx
cmp ecx, dword [eax + 8]
jb 0x10169630
inc esi
cmp esi, dword [edi + 0x10]
jb 0x101695e7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8