Function at 0x408da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4160aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x4251a4]
push ebx
xor eax, ebp
push esi
push edi
mov dword [esp + 0x64], eax
call fcn.00407720
mov esi, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00405570
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
xor edi, edi
mov dword [esi + 8], edi
mov dword [eax], eax
mov esi, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push edi
mov dword [esi + 8], esi
push edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edi
call sub.WS2_32.dll_WSCEnumProtocols
cmp eax, 0xffffffff
jne 0x408e68
cmp dword [esp + 0x10], 0x2747
jne 0x408e68
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x408e3b
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
mov ebx, eax
add esp, 4
cmp ebx, edi
mov dword [esp + 0x1c], ebx
jne 0x408e87
push str.CHookLoadLibrary::GetDllPathOfAllInstalledProviders
call fcn.00402d00
add esp, 4
test eax, eax
jne 0x408e68
push str.lyc:Need_more_memory.
push edi
push str.CHookLoadLibrary::GetDllPathOfAllInstalledProviders
call fcn.00407790
add esp, 8
push eax
call fcn.004082d0
add esp, 8
xor al, al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414f09
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push edi
call sub.WS2_32.dll_WSCEnumProtocols
mov esi, eax
cmp esi, 0xffffffff
jne 0x408edd
push str.CHookLoadLibrary::GetDllPathOfAllInstalledProviders
call fcn.00402d00
add esp, 4
test eax, eax
jne 0x408ed1
mov eax, dword [esp + 0x10]
push eax
push str.lyc:WSCEnumProtocols_failed.Error_code_is__u.
push edi
push str.CHookLoadLibrary::GetDllPathOfAllInstalledProviders
call fcn.00407790
add esp, 8
push eax
call fcn.004082d0
add esp, 0xc
push ebx
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
jmp 0x408e68
lea ecx, [esp + 0x24]
call fcn.00406660
mov dword [esp + 0x74], edi
cmp esi, edi
jle 0x408fa0
add ebx, 0x14
mov dword [esp + 0x14], esi
lea esp, [esp]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
call sub.WS2_32.dll_WSCGetProviderPath
cmp eax, 0xffffffff
jne 0x408f87
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x408f87
add eax, eax
push eax
call fcn.00414cb6
mov esi, eax
add esp, 4
cmp esi, edi
je 0x408f87
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push ebx
call sub.WS2_32.dll_WSCGetProviderPath
test eax, eax
jne 0x408f7e
push esi
lea ecx, [esp + 0x4c]
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 [esp + 0x74], 1
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00405490
mov byte [esp + 0x74], 0
lea ecx, [esp + 0x48]
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_]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x14]
add ebx, 0x274
dec eax
mov dword [esp + 0x14], eax
jne 0x408f00
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.MSVCR71.dll_free]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
je 0x4090bb
add eax, 0xc
push eax
lea ecx, [esp + 0x4c]
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x74], 2
push edi
push edi
lea ecx, [esp + 0x50]
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]
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
call ebx
mov esi, eax
cmp esi, edi
je 0x409095
lea edx, [esi + esi]
push edx
call fcn.00414cb6
mov edi, eax
add esp, 4
test edi, edi
je 0x409093
push esi
push edi
lea ecx, [esp + 0x50]
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 ebx
test eax, eax
je 0x40908a
push edi
lea ecx, [esp + 0x4c]
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__]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x4c]
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 ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x4c]
mov esi, 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_]
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x4c]
mov ebx, 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 ecx, dword [sym.imp.MSVCR71.dll_tolower]
mov edx, dword [esi]
push ecx
mov ecx, dword [ebx]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004039e0
add esp, 0x14
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00407720
mov ecx, eax
call fcn.00405490
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
xor edi, edi
mov byte [esp + 0x74], 0
lea ecx, [esp + 0x48]
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_]
lea ecx, [esp + 0x14]
call fcn.00402940
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jne 0x408fc0
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00406600
mov al, 1
jmp 0x408e6a