Function at 0x10007550
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100131c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x100131cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1000757d
mov eax, 0x800401f0
jmp 0x1000763a
mov eax, 0x9c
call fcn.10012220
mov edi, esp
test edi, edi
jne 0x10007597
mov eax, 0x8007000e
jmp 0x1000763a
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 0x100075f4
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 0x100076a8
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 [0x100136c0]
push 0x24
push ecx
mov ecx, esi
call dword [0x100142a8]
call esi
mov dword [edi + 0x90], eax
test eax, eax
je 0x10007635
test byte [eax + 0x1c], 2
mov eax, dword [eax + 0x20]
jne 0x1000764e
test eax, eax
jne 0x10007650
mov eax, 0x80070057
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011760
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 0x100077a0
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 [0x100131cc]
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 0x100077a0
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 0x10007724
mov esi, dword [0x100136c0]
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 0x10007724
push dword [edi + 0x8c]
call fcn.10006058
mov eax, dword [edi + 0x68]
lea ecx, [edi + 0x54]
push ecx
movzx eax, byte [eax]
and eax, 0x3f
mov esi, dword [eax*4 + 0x10001028]
mov ecx, esi
call dword [0x100142a8]
call esi
cmp dword [edi + 0x94], 0xffff
mov ebx, eax
je 0x10007784
mov esi, dword [0x100136c0]
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 0x10007784
push dword [edi + 0x8c]
mov ecx, dword [edi + 0x7c]
call fcn.100060d3
mov eax, dword [edi + 0x7c]
and dword [eax + 8], 0
cmp dword [edi + 0x74], 0
jne 0x10007799
push ebx
call sym.OLETHK32.dll_TransformHRESULT_3216
mov ebx, eax
mov eax, ebx
jmp 0x1000763a
mov eax, 0x80004005
jmp 0x1000763a