Function at 0x402f71
Capabilities:
Get file size
Query or enumerate registry value
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 8], esi
mov dword [ebp + 8], ebx
movsx eax, byte [esi]
mov edi, dword [sym.imp.MSVCRT.dll_isspace]
push eax
call edi
test eax, eax
pop ecx
je 0x402fa9
movsx eax, byte [esi + 1]
inc esi
push eax
call edi
test eax, eax
pop ecx
jne 0x402f99
mov dword [ebp - 8], esi
mov al, byte [esi]
cmp al, 0x27
je 0x402fe1
cmp al, 0x22
je 0x402fe1
mov dword [ebp - 4], esi
cmp al, bl
je 0x402fce
movsx eax, al
push eax
call edi
test eax, eax
pop ecx
jne 0x402fce
mov al, byte [esi + 1]
inc esi
mov dword [ebp - 8], esi
jmp 0x402fb6
movsx eax, byte [esi]
push eax
call edi
test eax, eax
pop ecx
je 0x402ffe
mov byte [esi], bl
inc esi
mov dword [ebp - 8], esi
jmp 0x402ffe
inc esi
mov cl, al
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov al, byte [esi]
cmp al, bl
je 0x402ffa
cmp al, cl
je 0x402ffa
inc esi
mov dword [ebp - 8], esi
jmp 0x402fea
cmp byte [esi], cl
je 0x402fd9
mov edi, dword [ebp - 4]
cmp byte [edi], bl
je 0x403069
push ebx
push 0x8000080
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x403213
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x403076
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x403071
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 8], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
jge 0x402f88
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp + 8], ebx
jmp 0x403057
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
add esi, edi
cmp edi, ebx
je 0x4030bf
push edi
mov dword [ebp + 8], 0x80070570
call fcn.004028a3
test al, al
pop ecx
je 0x4030cd
push esi
push edi
push dword [ebp - 4]
call fcn.004028be
add esp, 0xc
mov dword [ebp + 8], ebx
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 8]
jmp 0x403057
push 0x2e
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_strrchr]
push str..dat
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x10
test eax, eax
jne 0x403202
lea eax, [ebp - 0x10]
mov dword [ebp + 8], 0x80004005
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftClipArt_Gallery2.0Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4030b8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push str.ShrinkState
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4031f4
cmp dword [ebp - 0x20], ebx
jne 0x4031f4
push ebx
call dword [sym.imp.MSVCRT.dll_time]
push esi
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.00402b9d
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.MSVCRT.dll_time]
mov dword [ebp - 0x24], eax
sub eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x228]
fild dword [ebp - 4]
fmul dword [0x401530]
fstp qword [esp]
push str.Total_MMC_build_time:___f_minutes_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x228]
push str.Build_started_at
push eax
call sub.MSVCRT.dll_strcat
mov esi, dword [sym.imp.MSVCRT.dll_ctime]
lea eax, [ebp - 0xc]
push eax
call esi
push eax
lea eax, [ebp - 0x228]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x228]
push str.Build_completed_at
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x24]
push eax
call esi
push eax
lea eax, [ebp - 0x228]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x38
lea eax, [ebp - 0x228]
push ebx
push str.Clip_Art_Gallery
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4030b8
push dword [ebp - 4]
push 7
call fcn.00401614
pop ecx
pop ecx
jmp 0x4030b8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x40322f
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
push ebx
push edi
push 7
call fcn.00401680
add esp, 0xc
mov eax, ebx
jmp 0x40306c