Function at 0x428b10
Capabilities:
Get file version info

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x458e02
push eax
mov eax, dword [0x484a40]
mov dword fs:[0], esp
sub esp, 0x134
mov ecx, dword [eax - 8]
test ecx, ecx
push esi
jne 0x428ddb
push ebx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov dword [esp + 0x148], 0
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0xc]
push ecx
call fcn.00428960
add esp, 4
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x20]
mov byte [esp + 0x148], 1
push edx
call fcn.004289e0
mov esi, eax
add esp, 4
cmp esi, 1
jne 0x428db2
push 0x104
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x20]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x24]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x428db2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
push edi
push ebx
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x428da8
lea eax, [esp + 0x38]
push ebp
lea ecx, [esp + 0x38]
push eax
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x34], 0x104
xor ecx, ecx
mov dx, word [eax + 2]
mov cx, word [eax]
push edx
push ecx
lea edx, [esp + 0x48]
push str.StringFileInfo_04x_04xFileVersion
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x34]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x40]
push eax
push ecx
push edx
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x2c]
mov ecx, 0x484a40
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x2e
push 0x2c
mov ecx, 0x484a40
call sub.MFC42.DLL_CString::Replace
push 0x4845b8
push 0x476188
mov ecx, 0x484a40
call sub.MFC42.DLL_CString::Replace_1
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 4
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x484a40]
push 0x2e
push 0
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x15c], 5
call sub.MFC42.DLL_AfxExtractSubString
mov eax, dword [0x484a40]
push 0x2e
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_AfxExtractSubString
mov edx, dword [0x484a40]
push 0x2e
push 2
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_AfxExtractSubString
mov ecx, dword [0x484a40]
push 0x2e
push 3
lea edx, [esp + 0x28]
push ecx
push edx
call sub.MFC42.DLL_AfxExtractSubString
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x34], eax
call esi
add esp, 4
push eax
push ebp
call esi
add esp, 4
push eax
push ebx
call esi
mov edx, dword [esp + 0x3c]
add esp, 4
push eax
push edx
call esi
add esp, 4
push eax
push str._01d._02d._02d._02d
push 0x484a40
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x20]
mov esi, 1
mov byte [esp + 0x14c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_CString::CString
pop ebp
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x148], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebx
jmp 0x428de0
mov esi, 1
mov ecx, dword [esp + 0x148]
push 0x484a40
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x138]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x140
ret