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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416111
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 + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push esi
push 1
push esi
push str.struct_HINSTANCE_____stdcall_CHookLoadLibrary::XLLoadLibraryExW_const_wchar_t__void__unsigned_long_
push 0x41a790
xor eax, ebp
push str.struct_HINSTANCE_____stdcall_CHookLoadLibrary::XLLoadLibraryExW_const_wchar_t__void__unsigned_long_
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], ebx
call fcn.00408360
mov dword [ebp - 4], esi
push edi
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__::constructor_wchar_t_const__]
mov byte [ebp - 4], 1
mov eax, dword [0x425064]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x409636
mov edi, dword [ebp + 0x10]
xor ecx, ecx
cmp edi, ecx
je 0x4094d9
cmp edi, 8
jne 0x40964b
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
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 0x40950a
cmp eax, dword [0x4251e8]
jg 0x40950a
mov dword [ebp - 0x30], 1
nop
cmp dword [ebp - 0x30], 1
jne 0x40953c
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 0x40953a
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 0x40964b
xor ecx, ecx
cmp edi, 8
jne 0x40964b
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x4251f4]
jl 0x409569
cmp eax, dword [0x4251f0]
jg 0x409569
mov dword [ebp - 0x30], 1
nop
cmp dword [ebp - 0x30], 1
jne 0x40964b
lea ecx, [ebp - 0x30]
push ecx
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_]
lea edx, [ebp - 0x34]
push edx
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__::end_void_]
mov ebx, eax
lea eax, [ebp - 0x44]
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__::begin_void_]
mov ecx, dword [sym.imp.MSVCR71.dll_tolower]
mov edx, dword [edi]
push ecx
mov ecx, dword [ebx]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.004039e0
add esp, 0x14
call fcn.004076b0
mov edi, dword [eax + 4]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.004076b0
mov ecx, eax
call fcn.00404600
cmp dword [eax], edi
jne 0x409645
push 0x41a748
call fcn.00402d00
add esp, 4
test eax, eax
jne 0x409613
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
push str.lyc:It_is_an_invalid_hook.Module_name_is__s.
push 0
push 0x41a748
call fcn.00407790
add esp, 8
push eax
call fcn.004082d0
add esp, 0xc
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 0x4096f1
mov eax, dword [0x425064]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x409648
mov ebx, dword [ebp - 0x40]
mov edi, 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 0x4096a1
mov eax, dword [0x425200]
test eax, eax
jne 0x40967f
push edi
push ebx
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 [0x425214]
jmp 0x40969f
mov ecx, dword [0x425064]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
push ebx
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.004091f0
mov esi, eax
push 0x41a748
call fcn.00402d00
add esp, 4
test eax, eax
jne 0x4096d3
mov edx, dword [ebp - 0x38]
push edx
push esi
push str.XLLoadLibraryExW_handle:0x_X_dll_name:_s._n
push eax
push 0x41a748
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, esi
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