Function at 0x100db843
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x100e4a78]
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 0x100db885
cmp dword [ebx + 0x80], 0
jne 0x100dbb32
mov eax, dword [0x100e5110]
push esi
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100db8a7
mov esi, dword [eax + 8]
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x100db8a7
mov edi, dword [eax + 0xc]
jmp 0x100db8b8
mov esi, dword [ebx + 0xa0]
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x100dbb31
lea eax, [edi + 0x7ff5f448]
cmp eax, 0x2f2
ja 0x100db8c8
movzx edi, di
and dword [ebp - 0x40], 0
and dword [ebp - 0x34], 0
push 0x30
push 0xa00000
push dword [0x100e510c]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [ebp - 0x50], eax
test eax, eax
je 0x100db8f8
mov ecx, eax
call fcn.10053ae0
mov ebx, eax
jmp 0x100db8fa
xor ebx, ebx
test ebx, ebx
je 0x100dbb31
mov esi, dword [esi]
lea eax, [ebp - 0x34]
push eax
push 0x100084a8
push dword [ebp - 0x4c]
mov ecx, dword [esi]
call dword [0x100e6364]
call dword [esi]
test eax, eax
js 0x100dba40
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 [0x100e6364]
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x100dba2d
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 [0x100e6364]
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 [0x100e6364]
call dword [esi + 0x18]
cmp dword [ebp - 0x40], 0
je 0x100db99d
mov edi, dword [ebp - 0x30]
lea eax, [edi + 0x7ff5f448]
cmp eax, 0x2f2
ja 0x100db99d
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 0x100084b8
push eax
push ecx
mov ecx, dword [esi + 0x14]
call dword [0x100e6364]
call dword [esi + 0x14]
test eax, eax
jne 0x100dba2d
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x100dba2d
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 [0x100e6364]
call dword [esi + 0xc]
lea esi, [ebx + 0x28]
test eax, eax
js 0x100dba02
push dword [ebp - 0x44]
mov ecx, esi
call fcn.100de08e
mov eax, dword [ebp - 0x50]
mov dword [ebx + 4], eax
test byte [ebx + 0x2c], 4
jne 0x100dba11
push 0
mov ecx, esi
call fcn.100de08e
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 [0x100e6364]
call esi
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100e6364]
call esi
and dword [ebp - 0x38], 0
lea ecx, [ebp - 0x38]
call fcn.1003d9f0
test eax, eax
jns 0x100dba80
test byte [0x100e5114], 2
je 0x100dbb04
push 0xa16
push eax
push 0x10036b70
push 0x285809
push dword [0x100e811c]
call fcn.100d5b23
add esp, 0x14
jmp 0x100dbb04
mov ecx, dword [ebp - 0x38]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100e6364]
call esi
mov ecx, dword [ebp - 0x40]
test ecx, ecx
jne 0x100dba9d
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 [0x100e6364]
call dword [esi + 0x38]
test eax, eax
js 0x100dbaf4
mov eax, dword [edi + 8]
push 1
push ebx
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x100e6364]
lea ecx, [edi + 8]
call esi
test eax, eax
js 0x100dbaf1
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 0x100dbb04
mov edi, dword [ebp - 0x38]
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100e6364]
call esi
mov ecx, ebx
call fcn.10054171
push ebx
push dword [0x100e510c]
call dword [sym.imp.MSDART.DLL_MpHeapFree]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x100dbb31
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100e6364]
call esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10041550
leave
ret 8