Function at 0x100092ca
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x1c], edx
push 0xc
mov dword [esp + 0x14], esi
xor ebx, ebx
call fcn.10007e5e
mov ecx, eax
test ecx, ecx
jne 0x100092f9
mov eax, dword [esi + 0x1c]
jmp 0x100095c9
mov esi, dword [ebp + 8]
mov edi, ebx
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x24], eax
test eax, eax
je 0x1000933c
push 0x2c
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10009328
mov dword [eax], 0x1000101c
mov dword [eax + 0x1c], ebx
jmp 0x1000932e
mov eax, ebx
mov dword [esp + 0x14], ebx
test eax, eax
jne 0x10009342
mov eax, 0x8007000e
jmp 0x100095c9
mov eax, ebx
mov dword [esp + 0x14], eax
push 1
push 0xc
push dword [esp + 0x24]
mov dword [esi + 8], eax
mov esi, dword [0x100156d0]
mov ecx, esi
call dword [0x10016308]
call esi
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], esi
push 2
pop edx
test eax, eax
je 0x10009409
movzx eax, word [eax]
push 9
pop ecx
cmp ax, dx
je 0x10009385
cmp ax, cx
jne 0x10009409
cmp dword [esi], 1
jne 0x10009409
push dword [0x100151dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test dword [eax + 0x44], 0x20000000
je 0x10009406
movzx eax, word [esi + 4]
mov esi, dword [0x100156f0]
mov ecx, esi
push 8
push eax
call dword [0x10016308]
call esi
mov dword [esp + 0x20], eax
test eax, eax
jne 0x100093c8
mov eax, 0x80070057
jmp 0x100095c9
push eax
call dword [sym.imp.GDI32.dll_GetObjectType]
mov ecx, dword [ebp + 0xc]
push 2
pop edx
movzx ecx, word [ecx]
cmp cx, dx
jne 0x100093e2
cmp eax, 7
je 0x100093f2
push 9
pop edx
cmp cx, dx
jne 0x10009402
cmp eax, 5
jne 0x10009402
push 2
pop edx
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esi], 0x10
jmp 0x1000940b
mov esi, dword [esp + 0x18]
push 2
pop edx
mov ecx, ebx
mov eax, dword [esi]
sub eax, ebx
je 0x10009585
sub eax, 1
je 0x100094e9
sub eax, 1
je 0x100094c1
sub eax, edx
je 0x100094bb
sub eax, 4
je 0x10009489
sub eax, 8
je 0x10009461
sub eax, 0x10
je 0x10009448
mov edi, 0x80070057
jmp 0x1000956e
mov eax, dword [ebp + 8]
movzx edx, word [esi + 4]
add eax, 4
mov ecx, dword [esp + 0x10]
push eax
call fcn.10008a63
jmp 0x10009565
test ecx, ecx
jne 0x1000947e
movzx eax, word [esi + 4]
mov esi, dword [0x100156f0]
mov ecx, esi
push 8
push eax
call dword [0x10016308]
call esi
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x10009588
push ebx
push ebx
push 0xb
mov ecx, dword [esp + 0x1c]
push ebx
push dword [esi + 4]
mov ecx, dword [ecx + 0x28]
push ebx
call fcn.10006ba1
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
neg edi
sbb edi, edi
and edi, 0x7ff8fff2
add edi, 0x8007000e
jmp 0x1000956a
push ebx
push ebx
push 0xa
jmp 0x1000948d
mov edx, dword [esi + 4]
mov esi, dword [esp + 0x10]
mov ecx, esi
push ebx
push ebx
call fcn.10007bf7
mov ecx, dword [ebp + 8]
test eax, eax
mov dword [ecx + 4], eax
mov eax, ecx
jne 0x10009588
mov edi, dword [esi + 0x1c]
jmp 0x1000956a
mov eax, dword [ebp + 0xc]
movzx edx, word [esi + 4]
test eax, eax
je 0x1000954b
movzx eax, word [eax]
cmp ax, word [0x100155b8]
je 0x10009539
cmp ax, word [0x100156c0]
je 0x10009539
cmp eax, 0xf
jne 0x1000954b
mov esi, dword [0x100156c8]
mov ecx, esi
push edx
call dword [0x10016308]
call esi
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
neg edi
sbb edi, edi
and edi, 0x7ff8ffa9
add edi, 0x80070057
jmp 0x1000956a
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
add eax, 4
push eax
call fcn.10008c76
jmp 0x10009565
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
add eax, 4
push eax
push 0xc0
mov dword [eax], ebx
call fcn.10008830
mov edi, eax
mov eax, dword [ebp + 8]
test edi, edi
jns 0x10009588
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100095c7
push eax
mov dword [eax], 0x1000101c
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x100095c7
mov eax, dword [ebp + 8]
cmp dword [esp + 0x14], ebx
je 0x100095c7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10009598
movzx ebx, word [ecx]
mov esi, dword [0x100156d0]
mov ecx, esi
push ebx
push dword [esp + 0x28]
push eax
push 1
push 0xc
push dword [esp + 0x30]
call dword [0x10016308]
call esi
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x28]
call fcn.10008ff7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10