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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [ebp + 8]
push eax
call 0x10000000
add esp, 4
push eax
push 0x10009304
call 0x10000000
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push 0x10009308
push str._s_sNetworkProvider
lea edx, [ebp - 0x228]
push edx
call 0x10000000
add esp, 4
push eax
lea eax, [ebp - 0x228]
push eax
call sub.MSVCRT.dll_swprintf
add esp, 0x14
lea ecx, [ebp - 0x228]
push ecx
call 0x10000000
add esp, 4
xor edx, edx
mov word [ebp + eax*2 - 0x22a], dx
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x228]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100036b4
mov dword [ebp - 0x10], 0x208
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.ProviderPath
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000369b
cmp dword [ebp - 0x18], 1
je 0x100032bd
cmp dword [ebp - 0x18], 2
jne 0x1000369b
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x18], 2
jne 0x100032fb
push 0x104
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x100032fb
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
push 0x10009398
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], 0
je 0x10003378
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push str.Name
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000335e
cmp dword [ebp - 0x18], 1
je 0x10003378
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x1000367f
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10003640
push str.NPGetCaps
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
push edx
push str.loaded_lib__p_n
call 0x10000000
add esp, 8
cmp dword [ebp - 0x14], 0
je 0x10003607
mov eax, dword [0x10009c8c]
imul ecx, dword [eax + 8], 0x34
mov edx, dword [0x10009c8c]
lea eax, [edx + ecx + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0xc]
push edx
call 0x10000000
add esp, 4
push eax
push str.name_is__s_n
call 0x10000000
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
push 1
call dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
push 2
call dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
push str.net_type_is_0x_08x_n
call 0x10000000
add esp, 8
push 0xb
call dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x14], 0
je 0x10003556
push str.supports_enumeration_n
call 0x10000000
add esp, 4
push str.NPOpenEnum
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
push str.NPOpenEnum__p_n
call 0x10000000
add esp, 8
push str.NPEnumResource
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
push str.NPEnumResource__p_n
call 0x10000000
add esp, 8
push str.NPCloseEnum
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
push str.NPCloseEnum__p_n
call 0x10000000
add esp, 8
push str.NPGetResourceInformation
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
push ecx
push str.NPGetResourceInformation__p_n
call 0x10000000
add esp, 8
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0
je 0x10003521
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
je 0x10003521
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x20], 0
jne 0x10003556
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0
push str.Couldnt_load_enumeration_functions_n
call 0x10000000
add esp, 4
push 6
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x1000357b
push str.NPAddConnection
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0x20]
and eax, 8
je 0x10003598
push str.NPAddConnection3
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x20]
and eax, 2
je 0x100035b5
push str.NPCancelConnection
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
push ecx
push str.NPAddConnection__p_n
call 0x10000000
add esp, 8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
push eax
push str.NPAddConnection3__p_n
call 0x10000000
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
push edx
push str.NPCancelConnection__p_n
call 0x10000000
add esp, 8
mov eax, dword [0x10009c8c]
mov ecx, dword [eax + 8]
add ecx, 1
mov edx, dword [0x10009c8c]
mov dword [edx + 8], ecx
jmp 0x1000363e
mov eax, dword [ebp + 8]
push eax
call 0x10000000
add esp, 4
push eax
push str.Provider__s_didnt_export_NPGetCaps_n
call 0x10000000
add esp, 8
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1000367d
mov eax, dword [ebp + 8]
push eax
call 0x10000000
add esp, 4
push eax
lea ecx, [ebp - 0x430]
push ecx
call 0x10000000
add esp, 4
push eax
push str.Couldnt_load_library__s_for_provider__s_n
call 0x10000000
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10003699
mov eax, dword [ebp + 8]
push eax
call 0x10000000
add esp, 4
push eax
push str.Couldnt_get_provider_name_for_provider__s_n
call 0x10000000
add esp, 8
jmp 0x100036a8
push str.Couldnt_open_value_ProviderPath_n
call 0x10000000
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100036ce
mov edx, dword [ebp + 8]
push edx
call 0x10000000
add esp, 4
push eax
push str.Couldnt_open_service_key_for_provider__s_n
call 0x10000000
add esp, 8
mov esp, ebp
pop ebp
ret