Function at 0x10051950
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10143d21
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x101811b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.10040ce0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10117810
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x10184fcc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
push str.PluginBrowserBasic.tpi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10051a66
lea eax, [ebp - 0x218]
push eax
call fcn.10057ba0
add esp, 4
test eax, eax
jne 0x10051a14
mov dword [ebp - 0x24c], 2
jmp 0x10051a70
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x10051a31
mov dword [ebp - 0x24c], 3
jmp 0x10051a70
push str.GetBrowserAcceptorMgr
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10051a4d
mov dword [ebp - 0x24c], 4
jmp 0x10051a70
call eax
xor ecx, ecx
mov dword [ebx + 8], eax
test eax, eax
mov edx, 5
cmove ecx, edx
mov dword [ebp - 0x24c], ecx
jmp 0x10051a70
mov dword [ebp - 0x24c], 1
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x10051a83
mov eax, dword [ecx]
push ebx
push ecx
call dword [eax + 4]
jmp 0x10051b8d
call fcn.10058c20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10051b8d
push 0x2d
push str.d:_buildlib_commonwnd_pluginwndwndmgr.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.1001e980
push 3
push 0x101476d8
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.1001e980
mov byte [ebp - 4], 1
call fcn.10058c20
mov edi, eax
lea ecx, [ebp - 0x2ec]
push 0x2d
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10011dd0
mov esi, eax
push str.init_browserAcceptorMgr_failed._ret:
push esi
mov byte [ebp - 4], 2
call fcn.10014590
add esp, 8
mov ecx, esi
push dword [ebp - 0x24c]
call fcn.10013ed0
push str.__path:
push esi
call fcn.10014590
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.1000dea0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2ec]
call fcn.10014a50
lea ecx, [ebp - 0x230]
call fcn.10005a20
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.10005a20
call fcn.100499a0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebx + 0x10], eax
lea esi, [ebx + 0x50]
xor eax, eax
mov dword [ebp - 0x254], 4
cmp dword [ebx + 8], eax
mov dword [ebp - 0x250], 4
setne al
mov dword [ebx + 4], eax
lea eax, [ebp - 0x250]
push eax
push esi
lea eax, [ebp - 0x254]
push eax
push str.wnd_open_test
push str.SoftwareLudashi
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
mov eax, dword [ebx + 4]
je 0x10051bef
mov dword [esi], 0x7530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret