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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4c143c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
xor ebx, ebx
mov esi, ecx
push 0x104
push ebx
push eax
mov dword [ebp - 0x210], ebx
call fcn.0045b1d0
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0045b1d0
add esp, 0x18
mov dword [ebp - 0x214], 0x104
lea eax, [ebp - 0x210]
push eax
push 0x20119
push ebx
push str.SoftwareMcAfeeMcInstInstallSettings
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, eax
cmp edx, 2
jne 0x43e49d
mov ecx, dword [esi + 0x110]
test ecx, ecx
je 0x43e53c
cmp dword [0x4c12e0], ebx
je 0x43e53c
cmp dword [0x4c3630], ebx
je 0x43e53c
mov eax, dword [ecx]
push str.McInst_is_not_currently_installed.
push ecx
call dword [eax + 0x10]
jmp 0x43e5b1
test edx, edx
je 0x43e4cc
mov ecx, dword [esi + 0x110]
test ecx, ecx
je 0x43e53c
cmp dword [0x4c12e0], ebx
je 0x43e53c
mov eax, dword [ecx]
push edx
push str.RegOpenKeyEx___failed._Error:__d._Unable_to_open_McInst_InstallSettings_key
push ecx
call dword [eax + 0x14]
jmp 0x43e5f8
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 1
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
mov ebx, 0x4a38dc
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, eax
cmp edx, 2
jne 0x43e543
mov ecx, dword [esi + 0x110]
test ecx, ecx
je 0x43e530
cmp dword [0x4c12e0], 0
je 0x43e530
cmp dword [0x4c3630], 0
je 0x43e530
mov eax, dword [ecx]
push ebx
push str.McInst_is_not_currently_installed___s_not_set_.
push ecx
call dword [eax + 0x10]
add esp, 0xc
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x43e678
test edx, edx
je 0x43e568
mov ecx, dword [esi + 0x110]
test ecx, ecx
je 0x43e530
cmp dword [0x4c12e0], 0
je 0x43e530
mov eax, dword [ecx]
push edx
push str.RegQueryValueEx___failed._Error:__d._Unable_to_read_current_installed_McInst_folder_form_registry
push ecx
call dword [eax + 0x14]
jmp 0x43e52d
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00465df5
add esp, 0xc
test eax, eax
je 0x43e5b5
mov ecx, dword [esi + 0x110]
test ecx, ecx
je 0x43e53c
cmp dword [0x4c12e0], 0
je 0x43e53c
mov eax, dword [ecx]
push str.String_copy_failure._Unable_to_determine_if_an_existing_copy_McInst_is_installed
push ecx
call dword [eax + 0x14]
pop ecx
pop ecx
jmp 0x43e53c
push str.McInst.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
jne 0x43e600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0x110]
test edx, edx
je 0x43e53c
cmp dword [0x4c12e0], 0
je 0x43e53c
mov ecx, dword [edx]
push eax
push str.Unable_to_build_full_path_to_currently_installed_McInst._PathAppend___failed._Error:__d
push edx
call dword [ecx + 0x14]
add esp, 0xc
jmp 0x43e53c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x43e64d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0x110]
test edx, edx
je 0x43e53c
cmp dword [0x4c12e0], 0
je 0x43e53c
mov ecx, dword [edx]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.McInst.exe_does_not_exist_in_the_expected_path__s._PathFileExists___returned_FALSE._Error:__d
push edx
call dword [ecx + 0x18]
add esp, 0x10
jmp 0x43e53c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea ecx, [ebp - 0x108]
push ecx
call fcn.00461890
pop ecx
push eax
lea ecx, [ebp - 0x108]
push ecx
mov ecx, edi
call fcn.0040e292
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458eeb
leave
ret 4