Function at 0x1001c7c0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100296f9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1004f970]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x1004f9b0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1001c7fe
call fcn.100117b0
mov edx, dword [edi]
mov edx, dword [edx + 4]
lea ebp, [eax + 0x2f4]
mov eax, dword [esp + 0x44]
push eax
push ebp
mov ecx, edi
call edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi + 8]
cmp eax, ecx
jbe 0x1001c864
mov edx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov edx, dword [edx]
sub eax, ecx
push edx
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x40], 0
call dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::operator___wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x1001c8f0
cmp eax, dword [edi + 4]
push ebp
jge 0x1001c8e2
mov esi, dword [esp + 0x44]
mov edx, dword [esi]
mov eax, dword [edx + 4]
movzx ecx, word [eax + esi + 0x30]
mov ebx, dword [eax + esi + 0x10]
add eax, esi
mov dword [esp + 0x44], ecx
mov edx, 0x20
mov word [eax + 0x30], dx
mov eax, dword [esi]
mov eax, dword [eax + 4]
movzx ecx, byte [edi + 0xc]
add eax, esi
neg ecx
sbb ecx, ecx
and ecx, 0xffffffc0
sub ecx, 0xffffff80
xor ecx, dword [eax + 0x10]
push esi
and ecx, 0x1c0
xor dword [eax + 0x10], ecx
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, dword [edi + 4]
mov dword [eax + esi + 0x18], ecx
call dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::operator___wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov cx, word [esp + 0x48]
mov word [eax + esi + 0x30], cx
mov edx, dword [esi]
mov eax, dword [edx + 4]
add esp, 8
and ebx, 0xffff
mov dword [eax + esi + 0x10], ebx
jmp 0x1001c8f0
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::operator___wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8