Function at 0x402910
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
push 0
push eax
mov dword [ebp - 0x638], ecx
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x630], 0
call fcn.00517830
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x634]
add esp, 0xc
push eax
push 0x20019
push 0
push 0x692bec
push SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402a79
lea eax, [ebp - 0x62c]
push eax
push 0x20019
push 0
push str.shell
push dword [ebp - 0x634]
call esi
test eax, eax
jne 0x402a79
lea eax, [ebp - 0x630]
push eax
push 0x20019
push 0
push str.opencommand
push dword [ebp - 0x62c]
call esi
test eax, eax
jne 0x402a79
lea eax, [ebp - 0x628]
mov dword [ebp - 0x628], 0x104
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x620], 1
push eax
lea eax, [ebp - 0x620]
push eax
push 0
push 0x692be4
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x62c]
call edi
push dword [ebp - 0x630]
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0051b9cd
push 0x692be8
push eax
call fcn.0051798a
add esp, 0xc
mov dword [ebp - 0x624], eax
test eax, eax
je 0x402a79
add eax, 2
push 0x692be8
push eax
call fcn.0051798a
add esp, 8
test eax, eax
je 0x402a79
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x624]
add eax, 2
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402bfc
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00517830
add esp, 0xc
mov dword [ebp - 0x62c], 0
lea eax, [ebp - 0x62c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x402bfc
push 0x208
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00517830
add esp, 0xc
mov dword [ebp - 0x624], 0x104
lea eax, [ebp - 0x624]
mov dword [ebp - 0x620], 1
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x620]
push eax
push 0
push 0x692be4
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402baa
push dword [ebp - 0x62c]
call edi
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00517830
add esp, 0xc
lea eax, [ebp - 0x414]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402b60
lea eax, [ebp - 0x414]
mov ecx, 0x10
mov esi, str.Internet_Exploreriexplore.exe
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402bfc
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0x414]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x402b90
jmp 0x402bd0
xor ecx, ecx
nop dword [eax]
movzx eax, word [ebp + ecx - 0x61c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x402bb0
push dword [ebp - 0x62c]
call edi
push 0
push 0
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004e5695
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f77
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x638]
push ebx
call fcn.00402c20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f77
mov esp, ebp
pop ebp
ret 4