Function at 0x4191b0
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4512f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
mov esi, ecx
mov dword [esp + 0x18], ebx
jne 0x4191f1
mov esi, dword [esp + 0x30]
push 0x4681a0
mov ecx, esi
call fcn.00444b90
jmp 0x419598
cmp word [ebp], bx
jne 0x41920c
mov esi, dword [esp + 0x30]
push 0x4681a0
mov ecx, esi
call fcn.00444b90
jmp 0x419598
mov eax, dword [0x463e90]
mov dword [esp + 0x34], eax
push ebp
lea ecx, [esp + 0x38]
push str.Applications_s_shellopencommand
push ecx
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00443656
mov eax, dword [esp + 0x40]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419312
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x208
push ecx
push 0x105
lea ecx, [esp + 0x3c]
call fcn.00444f4c
mov edx, dword [esp + 0x14]
push eax
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
call fcn.00444f9c
test ebx, ebx
jne 0x419312
mov ecx, dword [esp + 0x34]
push ebx
push 1
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.00418ca0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 2
call fcn.00444c63
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 1
call fcn.00444b1c
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.00419100
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.00444b1c
test ebx, ebx
je 0x419312
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call fcn.00444889
jmp 0x419582
push ebp
lea eax, [esp + 0x38]
push str.Applications_s_shelleditcommand
push eax
call fcn.00443656
mov edx, dword [esp + 0x40]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4193ec
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
push 0x105
mov dword [esp + 0x1c], 0x208
call fcn.00444f4c
mov ecx, dword [esp + 0x14]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
mov ebx, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
call fcn.00444f9c
test ebx, ebx
jne 0x4193ec
mov eax, dword [esp + 0x34]
push ebx
push 1
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.00418ca0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 3
call fcn.00444c63
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 1
call fcn.00444b1c
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, esi
call fcn.00419100
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.00444b1c
test ebx, ebx
jne 0x419518
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [esp + 0x38]
call fcn.00444cb3
push ebp
lea ecx, [esp + 0x38]
call fcn.00444f0d
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4194dc
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x208
push ecx
push 0x105
lea ecx, [esp + 0x3c]
call fcn.00444f4c
mov edx, dword [esp + 0x14]
push eax
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
call fcn.00444f9c
test ebx, ebx
jne 0x4194dc
mov ecx, dword [esp + 0x34]
push ebx
push 1
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.00418ca0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 4
call fcn.00444c63
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 1
call fcn.00444b1c
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.00419100
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00444b1c
test esi, esi
je 0x4194dc
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call fcn.00444889
jmp 0x419582
push 0x105
lea ecx, [esp + 0x38]
call fcn.00444f4c
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebp
push esi
call ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
call fcn.00444f9c
mov eax, dword [esp + 0x34]
push eax
call edi
test eax, eax
je 0x41952a
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00444889
jmp 0x419582
push 0x105
lea ecx, [esp + 0x38]
call fcn.00444f4c
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebp
push esi
call ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
call fcn.00444f9c
mov edx, dword [esp + 0x34]
push edx
call edi
test eax, eax
je 0x419572
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.00444889
jmp 0x419582
mov esi, dword [esp + 0x30]
push 0x4681a0
mov ecx, esi
call fcn.00444b90
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], 1
mov byte [esp + 0x28], 0
call fcn.00444b1c
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8