Function at 0x10007700
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100131b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x100131bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1000772d
mov eax, 0x800401f0
jmp 0x100077ea
mov eax, 0x9c
call fcn.10012c00
mov edi, esp
test edi, edi
jne 0x10007747
mov eax, 0x8007000e
jmp 0x100077ea
mov edx, dword [ebp + 0x10]
lea eax, [edi + 0x14]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [edi + 0x54], edx
mov dword [edi + 0x58], edx
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], eax
mov dword [edi + 0x70], esi
mov dword [edi + 0x74], esi
cmp ebx, 0xf0000000
jb 0x100077a4
mov eax, 0x10002410
mov dword [edi + 0x94], 0xffff
mov ecx, 0x10001988
mov dword [edi + 4], eax
add ebx, sym.OLETHK32.dll_Ordinal_7
mov dword [edi + 8], 0x67
or dword [edi + 0x5c], 0xffffffff
mov edx, 0xffff
mov dword [edi + 0xc], ecx
mov dword [edi + 0x78], esi
jmp 0x10007858
mov dword [edi + 0x5c], 1
lea eax, [edx + 4]
mov ecx, dword [edx]
push 1
mov dword [edi + 0x58], eax
mov dword [edi + 0x8c], ecx
mov esi, dword [0x100136a8]
push 0x24
push ecx
mov ecx, esi
call dword [0x100142a8]
call esi
mov dword [edi + 0x90], eax
test eax, eax
je 0x100077e5
test byte [eax + 0x1c], 2
mov eax, dword [eax + 0x20]
jne 0x100077fe
test eax, eax
jne 0x10007800
mov eax, 0x80070057
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100120c0
leave
ret 0xc
mov eax, dword [eax]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x90]
mov edx, dword [edi + 0x10]
mov ecx, dword [eax + 0xc]
mov dword [edi + 0x94], ecx
test edx, edx
je 0x10007950
mov eax, dword [edi + 0x8c]
shl ecx, 4
mov dword [edi + 0x78], eax
mov eax, dword [ecx + 0x10001b78]
sub eax, 0xc
mov dword [edi + 4], eax
mov eax, dword [ecx + 0x10001b7c]
mov dword [edi + 8], eax
mov eax, dword [edx]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x64]
mov dword [eax], edx
add dword [edi + 0x64], 4
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x94]
mov eax, dword [eax + ebx*4]
push dword [0x100131bc]
mov dword [edi], eax
mov dword [edi + 0x68], eax
mov eax, dword [ecx + ebx*4]
mov dword [edi + 0x6c], eax
mov dword [edi + 0x80], edx
mov dword [edi + 0x84], ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [edi + 0x98], eax
test eax, eax
je 0x10007950
mov eax, dword [eax + 0x40]
xor ecx, ecx
inc ecx
mov dword [edi + 0x7c], eax
mov dword [eax + 8], ecx
cmp dword [edi + 0x94], 0xffff
je 0x100078d4
mov esi, dword [0x100136a8]
push ecx
push 0x24
push dword [edi + 0x8c]
mov ecx, esi
call dword [0x100142a8]
call esi
mov dword [edi + 0x90], eax
test byte [eax + 0x1c], 2
jne 0x100078d4
push dword [edi + 0x8c]
call fcn.1000618f
mov eax, dword [edi + 0x68]
movzx eax, byte [eax]
and eax, 0x3f
mov esi, dword [eax*4 + 0x10001028]
lea eax, [edi + 0x54]
push eax
mov ecx, esi
call dword [0x100142a8]
call esi
cmp dword [edi + 0x94], 0xffff
mov ebx, eax
je 0x10007934
mov esi, dword [0x100136a8]
mov ecx, esi
push 1
push 0x24
push dword [edi + 0x8c]
call dword [0x100142a8]
call esi
mov dword [edi + 0x90], eax
test byte [eax + 0x1c], 2
jne 0x10007934
push dword [edi + 0x8c]
mov ecx, dword [edi + 0x7c]
call fcn.10006210
mov eax, dword [edi + 0x7c]
and dword [eax + 8], 0
cmp dword [edi + 0x74], 0
jne 0x10007949
push ebx
call sym.OLETHK32.dll_TransformHRESULT_3216
mov ebx, eax
mov eax, ebx
jmp 0x100077ea
mov eax, 0x80004005
jmp 0x100077ea