Function at 0x10010680
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10016334]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, 0xd
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x54], ebx
mov word [ebx + 0x20], ax
mov dword [ebx + 0x28], 0
test edi, edi
js 0x100106bd
cmp dword [ebx + 0x80], 0
jne 0x10010a06
mov eax, dword [0x10016698]
push esi
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100106df
mov esi, dword [eax + 8]
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x100106df
mov edi, dword [eax + 0xc]
jmp 0x100106f0
mov esi, dword [ebx + 0xa0]
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x10010a05
lea eax, [edi + 0x7ff5f448]
cmp eax, 0x2f2
ja 0x10010700
movzx edi, di
push 0x30
push 0x1000000
push dword [0x10016668]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x50], ebx
test ebx, ebx
je 0x10010a05
mov dword [ebx + 0x10], 0
lea eax, [ebp - 0x34]
mov byte [ebx + 0x14], 7
mov dword [ebx + 0x18], 0
mov byte [ebx + 0x1c], 7
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x24], 7
mov dword [ebx + 0x28], 0
mov byte [ebx + 0x2c], 7
mov dword [ebx], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov esi, dword [esi]
push eax
push 0x1000336c
push dword [ebp - 0x4c]
mov esi, dword [esi]
mov ecx, esi
call dword [0x10017168]
call esi
test eax, eax
js 0x100108d7
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x10017168]
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x100108c4
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
push edx
dec eax
push eax
mov esi, dword [ecx]
push ecx
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x10017168]
call esi
mov eax, dword [ebp - 0x34]
mov esi, dword [eax]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, dword [esi + 0x18]
mov ecx, esi
push eax
mov eax, dword [ebp - 0x3c]
dec eax
push eax
push dword [ebp - 0x34]
call dword [0x10017168]
call esi
cmp dword [ebp - 0x40], 0
je 0x1001081a
mov edi, dword [ebp - 0x30]
lea eax, [edi + 0x7ff5f448]
cmp eax, 0x2f2
ja 0x1001081a
movzx edi, di
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], 0
dec eax
mov esi, dword [ecx]
push 0x1000335c
push eax
push ecx
mov esi, dword [esi + 0x14]
mov ecx, esi
call dword [0x10017168]
call esi
test eax, eax
jne 0x100108c4
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x100108c4
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], 0
push ecx
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x44]
mov esi, dword [eax]
push ecx
push eax
mov esi, dword [esi + 0xc]
mov ecx, esi
call dword [0x10017168]
call esi
lea esi, [ebx + 0x28]
test eax, eax
js 0x1001088a
push dword [ebp - 0x44]
mov ecx, esi
call fcn.10003ad2
mov eax, dword [ebp - 0x50]
mov dword [ebx + 4], eax
test byte [ebx + 0x2c], 4
jne 0x100108a8
or byte [esi + 4], 4
test byte [esi + 4], 2
je 0x100108a2
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
push dword [ebp - 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10017168]
call esi
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10017168]
call esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
call fcn.100111a0
test eax, eax
jns 0x10010901
test byte [0x1001669c], 2
je 0x10010986
mov eax, dword [0x10018010]
jmp 0x10010986
mov ecx, dword [ebp - 0x38]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x10017168]
call esi
mov ecx, dword [ebp - 0x40]
test ecx, ecx
jne 0x1001091e
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x38]
push edi
push ebx
push ecx
mov esi, dword [eax]
mov edi, eax
push edi
mov esi, dword [esi + 0x38]
mov ecx, esi
call dword [0x10017168]
call esi
test eax, eax
js 0x10010976
mov eax, dword [edi + 8]
push 1
push ebx
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x10017168]
lea ecx, [edi + 8]
call esi
test eax, eax
js 0x10010973
mov ecx, dword [ebp - 0x54]
mov eax, edi
mov dword [ecx + 0xa4], eax
mov eax, 0xd
mov word [ecx + 0x20], ax
mov eax, dword [ecx + 0xa4]
mov dword [ecx + 0x28], eax
jmp 0x10010986
mov edi, dword [ebp - 0x38]
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10017168]
call esi
test byte [ebx + 0x2c], 2
je 0x1001099c
push dword [ebx + 0x28]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0x28], 0
test byte [ebx + 0x24], 2
je 0x100109b2
push dword [ebx + 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0x20], 0
test byte [ebx + 0x1c], 2
je 0x100109c8
push dword [ebx + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0x18], 0
test byte [ebx + 0x14], 2
je 0x100109de
push dword [ebx + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0x10], 0
push ebx
push dword [0x10016668]
call dword [sym.imp.MSDART.DLL_MpHeapFree]
mov ecx, dword [ebp - 0x40]
add esp, 8
test ecx, ecx
je 0x10010a05
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10017168]
call esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10013ec0
mov esp, ebp
pop ebp
ret 8