Function at 0x4a8050
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d836
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x578750]
xor eax, ebp
mov dword [ebp - 0x1a8], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2cc], ecx
mov dword [ebp - 0x194], str.Word2010
mov dword [ebp - 0x190], str.SOFTWAREMicrosoftOffice14.0WordInstallRoot
mov dword [ebp - 0x18c], 0x54f4b8
mov dword [ebp - 0x188], 0x54f4c4
mov dword [ebp - 0x184], 5
xor eax, eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], str.Word2007
mov dword [ebp - 0x178], str.SOFTWAREMicrosoftOffice12.0WordInstallRoot
mov dword [ebp - 0x174], 0x54f550
mov dword [ebp - 0x170], 0x54f55c
mov dword [ebp - 0x16c], 4
xor ecx, ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], str.Word2003
mov dword [ebp - 0x160], str.SOFTWAREMicrosoftOffice11.0WordInstallRoot
mov dword [ebp - 0x15c], 0x54f5e8
mov dword [ebp - 0x158], 0x54f5f4
mov dword [ebp - 0x154], 3
xor edx, edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], str.Word2002
mov dword [ebp - 0x148], str.SOFTWAREMicrosoftOffice10.0WordInstallRoot
mov dword [ebp - 0x144], 0x54f680
mov dword [ebp - 0x140], 0x54f68c
mov dword [ebp - 0x13c], 2
xor eax, eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], str.Word2000
mov dword [ebp - 0x130], str.SOFTWAREMicrosoftOffice9.0WordInstallRoot
mov dword [ebp - 0x12c], 0x54f718
mov dword [ebp - 0x128], str.WINWORD.EXE
mov dword [ebp - 0x124], 1
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], str.Excel2010
mov dword [ebp - 0x118], str.SOFTWAREMicrosoftOffice14.0ExcelInstallRoot
mov dword [ebp - 0x114], 0x54f7b4
mov dword [ebp - 0x110], 0x54f7c0
mov dword [ebp - 0x10c], 5
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x104], str.Excel2007
mov dword [ebp - 0x100], str.SOFTWAREMicrosoftOffice12.0ExcelInstallRoot
mov dword [ebp - 0xfc], 0x54f84c
mov dword [ebp - 0xf8], 0x54f858
mov dword [ebp - 0xf4], 4
xor eax, eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], str.Excel2003
mov dword [ebp - 0xe8], str.SOFTWAREMicrosoftOffice11.0ExcelInstallRoot
mov dword [ebp - 0xe4], 0x54f8e4
mov dword [ebp - 0xe0], 0x54f8f0
mov dword [ebp - 0xdc], 3
xor ecx, ecx
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], str.Excel2002
mov dword [ebp - 0xd0], str.SOFTWAREMicrosoftOffice10.0ExcelInstallRoot
mov dword [ebp - 0xcc], 0x54f97c
mov dword [ebp - 0xc8], 0x54f988
mov dword [ebp - 0xc4], 2
xor edx, edx
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0xbc], str.Excel2000
mov dword [ebp - 0xb8], str.SOFTWAREMicrosoftOffice9.0ExcelInstallRoot
mov dword [ebp - 0xb4], 0x54fa10
mov dword [ebp - 0xb0], str.EXCEL.EXE
mov dword [ebp - 0xac], 1
xor eax, eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], 0x54fa30
mov dword [ebp - 0xa0], str.SOFTWAREMicrosoftOffice14.0CommonInstallRoot
mov dword [ebp - 0x9c], 0x54faa4
mov dword [ebp - 0x98], 0x54fab0
mov dword [ebp - 0x94], 5
xor ecx, ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], 0x54fac8
mov dword [ebp - 0x88], str.SOFTWAREMicrosoftOffice12.0CommonInstallRoot
mov dword [ebp - 0x84], 0x54fb3c
mov dword [ebp - 0x80], 0x54fb48
mov dword [ebp - 0x7c], 4
xor edx, edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], 0x54fb60
mov dword [ebp - 0x70], str.SOFTWAREMicrosoftOffice11.0CommonInstallRoot
mov dword [ebp - 0x6c], 0x54fbd4
mov dword [ebp - 0x68], 0x54fbe0
mov dword [ebp - 0x64], 3
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0x54fbf8
mov dword [ebp - 0x58], str.SOFTWAREMicrosoftOffice10.0CommonInstallRoot
mov dword [ebp - 0x54], 0x54fc6c
mov dword [ebp - 0x50], 0x54fc78
mov dword [ebp - 0x4c], 2
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], str.Mail
mov dword [ebp - 0x40], str.SOFTWAREMicrosoftOffice9.0CommonInstallRoot
mov dword [ebp - 0x3c], str.Path
mov dword [ebp - 0x38], 0x54fd10
mov dword [ebp - 0x34], 1
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x1a4], reloc.TranslateMemoryCJ.dll_Ordinal_2
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0x20019
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x2c8], 0x104
lea ecx, [ebp - 0x2b8]
call fcn.00401b80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c0]
call fcn.00401b80
mov byte [ebp - 4], 1
push 0x54f252
lea ecx, [ebp - 0x2c0]
call fcn.00401c60
mov dword [ebp - 0x1a0], 0
jmp 0x4a8452
mov ecx, dword [ebp - 0x1a0]
add ecx, 1
mov dword [ebp - 0x1a0], ecx
cmp dword [ebp - 0x1a0], 5
jge 0x4a8543
mov edx, dword [ebp - 0x1a0]
imul edx, edx, 0x18
mov eax, dword [ebp + edx - 0x190]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00402b30
lea ecx, [ebp - 0x2bc]
push ecx
mov edx, dword [ebp - 0x198]
push edx
mov eax, dword [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.004d6200
push eax
mov ecx, dword [ebp - 0x1a4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a8531
invalid
xchg ebp, eax
cmp ch, bh