Function at 0x4091f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4160f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x4251a4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push edi
push 1
push edi
xor eax, ebp
push str.struct_HINSTANCE_____stdcall_CHookLoadLibrary::XLLoadLibraryExWOfKernelBase_const_wchar_t__void__unsigned_long_
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push 0x41a548
push str.struct_HINSTANCE_____stdcall_CHookLoadLibrary::XLLoadLibraryExWOfKernelBase_const_wchar_t__void__unsigned_long_
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
call fcn.00408360
mov dword [ebp - 4], edi
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 1
mov ecx, dword [0x425064]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, edi
jne 0x40939b
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x409278
cmp esi, 8
jne 0x4093b0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov eax, ebp
add eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x4251ec]
jl 0x4092a9
cmp eax, dword [0x4251e8]
jg 0x4092a9
mov dword [ebp - 0x30], 1
nop
cmp dword [ebp - 0x30], 1
jne 0x4092d9
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.00408bc0
add esp, 4
test al, al
je 0x4092d9
push str.mswsock.dll
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.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__::operator_wchar_t_const__]
jmp 0x4093b0
cmp esi, 8
jne 0x4093b0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x4251f4]
jl 0x409306
cmp eax, dword [0x4251f0]
jg 0x409306
mov dword [ebp - 0x30], 1
nop
cmp dword [ebp - 0x30], 1
jne 0x4093b0
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::iterator___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::begin_void_]
mov esi, eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::iterator___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::end_void_]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x2c]
mov edi, eax
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::iterator___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::begin_void_]
mov edx, dword [sym.imp.MSVCR71.dll_tolower]
mov ecx, dword [esi]
mov eax, dword [eax]
push edx
mov edx, dword [edi]
push ecx
push edx
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.004039e0
add esp, 0x14
call fcn.004076b0
mov esi, dword [eax + 4]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.004076b0
mov ecx, eax
call fcn.00404600
cmp dword [eax], esi
jne 0x4093ab
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00408660
xor eax, eax
jmp 0x409430
mov ecx, dword [0x425064]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x4093ad
xor edi, edi
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [0x425204]
add esp, 4
test al, al
je 0x4093df
mov edx, dword [ebp - 0x3c]
push esi
push edx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [0x42521c]
mov dword [ebp - 0x38], eax
push 0x41a4e8
call fcn.00402d00
add esp, 4
test eax, eax
jne 0x409411
mov eax, dword [ebp - 0x38]
push ebx
push eax
push str.XLLoadLibraryExWOfKernelBase_handle:0x_X_dll_name:_s._n
push edi
push 0x41a4e8
call fcn.00407790
add esp, 8
push eax
call fcn.004082d0
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00408660
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00414f09
mov esp, ebp
pop ebp
ret 0xc