Function at 0x10001330
Capabilities:
Link many functions at runtime
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [ebp - 0x63c], eax
call pe_dos_header
lea ecx, [0x10009256]
mov dword [esp], ecx
mov dword [esp + 4], eax
call pe_dos_header
lea ecx, [ebp - 0x208]
mov edx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [ebp - 0x640], eax
mov dword [ebp - 0x644], edx
call pe_dos_header
lea ecx, [ebp - 0x208]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, str._s_sNetworkProvider
mov dword [esp + 8], eax
lea eax, str.SystemCurrentControlSetServices_
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x644]
mov dword [esp + 0x10], eax
call sub.MSVCRT.dll_swprintf
lea ecx, [ebp - 0x208]
mov dword [esp], ecx
mov dword [ebp - 0x648], eax
call pe_dos_header
xor ecx, ecx
lea edx, [ebp - 0x208]
sub eax, 1
mov word [ebp + eax*2 - 0x208], 0
mov eax, 0x80000002
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x20019
lea eax, [ebp - 0x20c]
mov dword [esp + 0x10], eax
mov dword [ebp - 0x64c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
cmp eax, 0
jne 0x10001b98
xor eax, eax
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x41c], 0x208
mov edx, dword [ebp - 0x20c]
mov dword [esp], edx
lea edx, str.ProviderPath
mov dword [esp + 4], edx
mov dword [esp + 8], 0
lea edx, [ebp - 0x418]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x41c]
mov dword [esp + 0x14], ecx
mov dword [ebp - 0x650], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
cmp eax, 0
jne 0x10001b73
cmp dword [ebp - 0x418], 1
je 0x1000148a
cmp dword [ebp - 0x418], 2
jne 0x10001b73
mov dword [ebp - 0x420], 0
cmp dword [ebp - 0x418], 2
jne 0x100014ef
lea eax, [ebp - 0x414]
lea ecx, [ebp - 0x628]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x104
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
cmp eax, 0
je 0x100014ea
lea eax, [ebp - 0x414]
lea ecx, [ebp - 0x628]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
sub esp, 8
jmp 0x100014ef
xor eax, eax
mov dword [ebp - 0x41c], 0
mov ecx, dword [ebp - 0x20c]
mov dword [esp], ecx
lea ecx, [0x10009622]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
lea ecx, [ebp - 0x41c]
mov dword [esp + 0x14], ecx
mov dword [ebp - 0x654], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
cmp dword [ebp - 0x41c], 0
je 0x10001631
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x658], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x658]
mov dword [esp + 8], eax
mov dword [ebp - 0x65c], ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x420]
mov edx, dword [ebp - 0x20c]
mov dword [esp], edx
lea edx, [0x10009622]
mov dword [esp + 4], edx
mov dword [esp + 8], 0
lea edx, [ebp - 0x418]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x41c]
mov dword [esp + 0x14], eax
mov dword [ebp - 0x660], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
cmp eax, 0
jne 0x100015ea
cmp dword [ebp - 0x418], 1
je 0x1000162c
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x664], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x664]
mov dword [esp + 8], eax
mov dword [ebp - 0x668], ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
mov dword [ebp - 0x420], 0
jmp 0x10001631
cmp dword [ebp - 0x420], 0
je 0x10001b51
lea eax, [ebp - 0x414]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
sub esp, 4
mov dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0
je 0x10001ad3
mov eax, dword [ebp - 0x62c]
mov dword [esp], eax
lea eax, str.NPGetCaps
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebp - 0x630], eax
mov eax, dword [ebp - 0x62c]
lea ecx, str.loaded_lib__p_n
mov dword [esp], ecx
mov dword [esp + 4], eax
call pe_dos_header
cmp dword [ebp - 0x630], 0
je 0x10001a5b
mov eax, dword [0x1000b534]
add eax, 0xc
mov ecx, dword [0x1000b534]
imul ecx, dword [ecx + 8], 0x34
add eax, ecx
mov dword [ebp - 0x638], eax
mov eax, dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x638]
mov dword [ecx], eax
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x638]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x420]
mov dword [esp], eax
call pe_dos_header
lea ecx, str.name_is__s_n
mov dword [esp], ecx
mov dword [esp + 4], eax
call pe_dos_header
mov ecx, dword [ebp - 0x630]
mov edx, dword [ebp - 0x638]
mov dword [edx + 8], ecx
mov dword [esp], 1
mov dword [ebp - 0x66c], eax
call dword [ebp - 0x630]
sub esp, 4
mov ecx, dword [ebp - 0x638]
mov dword [ecx + 0xc], eax
mov dword [esp], 2
call dword [ebp - 0x630]
sub esp, 4
mov ecx, dword [ebp - 0x638]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x638]
mov eax, dword [eax + 0x10]
lea ecx, str.net_type_is_0x_08x_n
mov dword [esp], ecx
mov dword [esp + 4], eax
call pe_dos_header
mov dword [esp], 0xb
mov dword [ebp - 0x670], eax
call dword [ebp - 0x630]
sub esp, 4
mov ecx, dword [ebp - 0x638]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x638]
cmp dword [eax + 0x14], 0
je 0x1000192f
lea eax, str.supports_enumeration_n
mov dword [esp], eax
call pe_dos_header
mov ecx, dword [ebp - 0x62c]
mov dword [esp], ecx
lea ecx, str.NPOpenEnum
mov dword [esp + 4], ecx
mov dword [ebp - 0x674], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov ecx, dword [ebp - 0x638]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x638]
mov eax, dword [eax + 0x18]
lea ecx, str.NPOpenEnum__p_n
mov dword [esp], ecx
mov dword [esp + 4], eax
call pe_dos_header
mov ecx, dword [ebp - 0x62c]
mov dword [esp], ecx
lea ecx, str.NPEnumResource
mov dword [esp + 4], ecx
mov dword [ebp - 0x678], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov ecx, dword [ebp - 0x638]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x638]
mov eax, dword [eax + 0x1c]
lea ecx, str.NPEnumResource__p_n
mov dword [esp], ecx
mov dword [esp + 4], eax
call pe_dos_header
mov ecx, dword [ebp - 0x62c]
mov dword [esp], ecx
lea ecx, str.NPCloseEnum
mov dword [esp + 4], ecx
mov dword [ebp - 0x67c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov ecx, dword [ebp - 0x638]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x638]
mov eax, dword [eax + 0x20]
lea ecx, str.NPCloseEnum__p_n
mov dword [esp], ecx
mov dword [esp + 4], eax
call pe_dos_header
mov ecx, dword [ebp - 0x62c]
mov dword [esp], ecx
lea ecx, str.NPGetResourceInformation
mov dword [esp + 4], ecx
mov dword [ebp - 0x680], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov ecx, dword [ebp - 0x638]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x638]
mov eax, dword [eax + 0x24]
lea ecx, str.NPGetResourceInformation__p_n
mov dword [esp], ecx
mov dword [esp + 4], eax
call pe_dos_header
mov ecx, dword [ebp - 0x638]
cmp dword [ecx + 0x18], 0
je 0x100018e8
mov eax, dword [ebp - 0x638]
cmp dword [eax + 0x1c], 0
je 0x100018e8
mov eax, dword [ebp - 0x638]
cmp dword [eax + 0x20], 0
jne 0x1000192a
mov eax, dword [ebp - 0x638]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x638]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 0x638]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0x638]
mov dword [eax + 0x14], 0
lea eax, str.Couldnt_load_enumeration_functions_n
mov dword [esp], eax
call pe_dos_header
jmp 0x1000192f
mov dword [esp], 6
call dword [ebp - 0x630]
sub esp, 4
mov dword [ebp - 0x634], eax
mov eax, dword [ebp - 0x634]
and eax, 1
cmp eax, 0
je 0x1000197c
mov eax, dword [ebp - 0x62c]
mov dword [esp], eax
lea eax, str.NPAddConnection
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov ecx, dword [ebp - 0x638]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x634]
and eax, 8
cmp eax, 0
je 0x100019b3
mov eax, dword [ebp - 0x62c]
mov dword [esp], eax
lea eax, str.NPAddConnection3
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov ecx, dword [ebp - 0x638]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x634]
and eax, 2
cmp eax, 0
je 0x100019ea
mov eax, dword [ebp - 0x62c]
mov dword [esp], eax
lea eax, str.NPCancelConnection
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov ecx, dword [ebp - 0x638]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 0x638]
mov eax, dword [eax + 0x28]
lea ecx, str.NPAddConnection__p_n
mov dword [esp], ecx
mov dword [esp + 4], eax
call pe_dos_header
mov ecx, dword [ebp - 0x638]
mov ecx, dword [ecx + 0x2c]
lea edx, str.NPAddConnection3__p_n
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x684], eax
call pe_dos_header
mov ecx, dword [ebp - 0x638]
mov ecx, dword [ecx + 0x30]
lea edx, str.NPCancelConnection__p_n
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x688], eax
call pe_dos_header
mov ecx, dword [0x1000b534]
mov edx, dword [ecx + 8]
add edx, 1
mov dword [ecx + 8], edx
jmp 0x10001ace
mov eax, dword [ebp + 8]
mov dword [esp], eax
call pe_dos_header
lea ecx, str.Provider__s_didnt_export_NPGetCaps_n
mov dword [esp], ecx
mov dword [esp + 4], eax
call pe_dos_header
mov ecx, dword [ebp - 0x420]
mov dword [ebp - 0x68c], eax
mov dword [ebp - 0x690], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x690]
mov dword [esp + 8], eax
mov dword [ebp - 0x694], ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
mov ecx, dword [ebp - 0x62c]
mov dword [esp], ecx
mov dword [ebp - 0x698], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
jmp 0x10001b4c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call pe_dos_header
lea ecx, [ebp - 0x414]
mov dword [esp], ecx
mov dword [ebp - 0x69c], eax
call pe_dos_header
lea ecx, str.Couldnt_load_library__s_for_provider__s_n
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x69c]
mov dword [esp + 8], eax
call pe_dos_header
mov ecx, dword [ebp - 0x420]
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 0x6a4], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x6a4]
mov dword [esp + 8], eax
mov dword [ebp - 0x6a8], ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
jmp 0x10001b6e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call pe_dos_header
lea ecx, str.Couldnt_get_provider_name_for_provider__s_n
mov dword [esp], ecx
mov dword [esp + 4], eax
call pe_dos_header
jmp 0x10001b81
lea eax, str.Couldnt_open_value_ProviderPath_n
mov dword [esp], eax
call pe_dos_header
mov eax, dword [ebp - 0x20c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
jmp 0x10001bb5
mov eax, dword [ebp + 8]
mov dword [esp], eax
call pe_dos_header
lea ecx, str.Couldnt_open_service_key_for_provider__s_n
mov dword [esp], ecx
mov dword [esp + 4], eax
call pe_dos_header
add esp, 0x6c0
pop ebp
ret