Function at 0x100dbf54
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x100e3998]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
shl eax, 4
add eax, ebx
mov dword [ebp - 0x54], ebx
push edi
mov edi, dword [ebp + 8]
push 0xd
and dword [eax + 8], 0
mov dword [ebp - 0x58], eax
pop ecx
mov word [eax], cx
test edi, edi
js 0x100dbf96
cmp dword [ebx + 0x80], 0
jne 0x100dc243
mov eax, dword [0x100e4064]
push esi
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100dbfb8
mov esi, dword [eax + 8]
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x100dbfb8
mov edi, dword [eax + 0xc]
jmp 0x100dbfc9
mov esi, dword [ebx + 0xa0]
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x100dc242
lea eax, [edi + 0x7ff5f448]
cmp eax, 0x2f2
ja 0x100dbfd9
movzx edi, di
and dword [ebp - 0x40], 0
and dword [ebp - 0x34], 0
push 0x30
push 0xa00000
push dword [0x100e4034]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [ebp - 0x50], eax
test eax, eax
je 0x100dc009
mov ecx, eax
call fcn.1005139f
mov ebx, eax
jmp 0x100dc00b
xor ebx, ebx
test ebx, ebx
je 0x100dc242
mov esi, dword [esi]
lea eax, [ebp - 0x34]
push eax
push 0x100082c4
push dword [ebp - 0x4c]
mov ecx, dword [esi]
call dword [0x100e52dc]
call dword [esi]
test eax, eax
js 0x100dc151
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
and dword [ebp - 0x3c], 0
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x100dc13e
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
push edx
dec eax
push eax
mov esi, dword [ecx]
push ecx
mov ecx, dword [esi + 0x10]
call dword [0x100e52dc]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x34]
mov esi, dword [eax]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov ecx, dword [esi + 0x18]
push eax
mov eax, dword [ebp - 0x3c]
dec eax
push eax
push dword [ebp - 0x34]
call dword [0x100e52dc]
call dword [esi + 0x18]
cmp dword [ebp - 0x40], 0
je 0x100dc0ae
mov edi, dword [ebp - 0x30]
lea eax, [edi + 0x7ff5f448]
cmp eax, 0x2f2
ja 0x100dc0ae
movzx edi, di
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x48]
and dword [ebp - 0x48], 0
push eax
mov eax, dword [ebp - 0x3c]
mov esi, dword [ecx]
dec eax
push 0x10008390
push eax
push ecx
mov ecx, dword [esi + 0x14]
call dword [0x100e52dc]
call dword [esi + 0x14]
test eax, eax
jne 0x100dc13e
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x100dc13e
and dword [ebp - 0x44], 0
lea ecx, [ebp - 0x50]
and dword [ebp - 0x50], 0
mov esi, dword [eax]
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [esi + 0xc]
push eax
call dword [0x100e52dc]
call dword [esi + 0xc]
lea esi, [ebx + 0x28]
test eax, eax
js 0x100dc113
push dword [ebp - 0x44]
mov ecx, esi
call fcn.100508e1
mov eax, dword [ebp - 0x50]
mov dword [ebx + 4], eax
test byte [ebx + 0x2c], 4
jne 0x100dc122
push 0
mov ecx, esi
call fcn.100508e1
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 [0x100e52dc]
call esi
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
and dword [ebp - 0x38], 0
lea ecx, [ebp - 0x38]
call fcn.100397b0
test eax, eax
jns 0x100dc191
test byte [0x100e4068], 2
je 0x100dc215
push 0x9f7
push eax
push 0x10036590
push 0x27dc09
push dword [0x100e711c]
call fcn.100d931d
add esp, 0x14
jmp 0x100dc215
mov ecx, dword [ebp - 0x38]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov ecx, dword [ebp - 0x40]
test ecx, ecx
jne 0x100dc1ae
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 ecx, dword [esi + 0x38]
call dword [0x100e52dc]
call dword [esi + 0x38]
test eax, eax
js 0x100dc205
mov eax, dword [edi + 8]
push 1
push ebx
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x100e52dc]
lea ecx, [edi + 8]
call esi
test eax, eax
js 0x100dc202
mov edx, dword [ebp - 0x54]
mov eax, edi
mov ecx, dword [ebp - 0x58]
push 0xd
mov dword [edx + 0xa4], eax
pop eax
mov word [ecx], ax
mov eax, dword [edx + 0xa4]
mov dword [ecx + 8], eax
jmp 0x100dc215
mov edi, dword [ebp - 0x38]
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov ecx, ebx
call fcn.100513cb
push ebx
push dword [0x100e4034]
call dword [sym.imp.MSDART.DLL_MpHeapFree]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x100dc242
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10040f40
mov esp, ebp
pop ebp
ret 8