Function at 0x411510
Capabilities:
Get common file path
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x413f6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
xor ebx, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x120], ebx
call fcn.0041230a
mov edi, dword [esp + 0x128]
xor esi, esi
mov byte [esp + 0x120], 1
cmp dword [edi + 8], ebx
jle 0x41158e
mov eax, dword [edi + 4]
push ebx
lea ecx, [esp + 0x38]
mov eax, dword [eax + esi*4]
push eax
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x41157e
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
jl 0x41155f
jmp 0x41158e
mov ecx, dword [edi + 4]
lea edx, [ecx + esi*4]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x4117d4
push 0x41a6e8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4117d4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_4
push 0x100
push 0x100
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea eax, [esp + 0x18]
push 0x418394
lea ecx, [esp + 0x24]
push eax
push ecx
call sub.MFC42.DLL_operator_1
lea edx, [esp + 0x10]
mov byte [esp + 0x120], 3
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x130]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0x14]
push ebx
push edx
mov byte [esp + 0x128], 6
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jne 0x4116b6
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x120], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x120], bl
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4117fd
push edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
push edi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x30]
lea edx, [esp + 0x2c]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x40], ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x2c]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x58]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x50]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x28]
push 1
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x120], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x120], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x120], bl
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x4117fd
lea ecx, [esp + 0x34]
mov byte [esp + 0x120], bl
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0x270f
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret