Function at 0x408360
Capabilities:
Get file size
Get file version info
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40860e
push eax
mov dword fs:[0], esp
mov ecx, dword [ebp + 8]
sub esp, 0x12c
add ecx, 0x34
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
push ebx
add edx, 0x138
push esi
mov byte [ecx], 0
push edi
mov byte [edx], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x28], edx
push 0x20019
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ecx + 0x14c], 0
push 0
push str.CLSID
push 0x80000000
call esi
test eax, eax
jne 0x4085fc
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x18]
push 0x20019
push 0
push ecx
push edx
call esi
test eax, eax
je 0x4083f6
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4085fc
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push eax
push 0x20019
push 0
push str.InprocServer32
push ecx
call esi
test eax, eax
je 0x408425
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x1c]
push ecx
jmp 0x4085fa
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x138]
push eax
lea edx, [ebp - 0x2c]
push ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], 0x104
push edx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4085e4
cmp dword [ebp - 0x2c], 1
jne 0x4085e4
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC40.DLL_CString::CString_1
push 0x5c
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call sub.MFC40.DLL_CString::ReverseFind
test eax, eax
jle 0x4084d8
mov eax, dword [ebp - 0x10]
push 0x5c
lea ecx, [ebp - 0x10]
mov esi, dword [eax - 8]
call sub.MFC40.DLL_CString::ReverseFind
sub esi, eax
lea ecx, [ebp - 0x10]
dec esi
lea eax, [ebp - 0x20]
push esi
push eax
call sub.MFC40.DLL_CString::Right
mov byte [ebp - 4], 1
mov edi, dword [eax]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 4], 0
call fcn.004084d0
jmp 0x4084fb
mov edi, dword [ebp - 0x10]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea eax, [ebp - 0x138]
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, eax
je 0x408546
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [ecx + 0x14c], eax
jne 0x40853f
mov dword [ecx + 0x14c], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x138]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4085d8
push edi
call sub.MSVCRT40.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
test esi, esi
je 0x4085d8
push esi
lea eax, [ebp - 0x138]
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4085cf
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0x419150
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4085cf
cmp dword [ebp - 0x20], 0x34
jne 0x4085cf
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov eax, edx
shr edx, 0x10
and eax, 0xffff
push eax
push edx
mov eax, ecx
shr ecx, 0x10
and eax, 0xffff
push eax
push ecx
push str._d._d._d._d
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push esi
call sub.MSVCRT40.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0xffffffff
call fcn.00408618
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x1c]
push ecx
call esi
mov eax, dword [ebp - 0x24]
push eax
call esi
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4