Function at 0x40ab80
Capabilities:
Get file version info

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a7851
push eax
mov eax, 0x1228
mov dword fs:[0], esp
call fcn.004a6750
push esi
mov esi, dword [esp + 0x123c]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40add9
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, 0x545e78
call fcn.0040dec0
mov eax, dword [0x545e7c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x40adaa
push ebx
push ebp
mov ebp, dword [esp + 0x1248]
push edi
mov ecx, ebp
call sub.MFC42u.DLL_CString::Empty
mov edx, dword [esi]
push 0
mov ecx, esi
mov eax, dword [edx - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, 0x1000
jbe 0x40ac13
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ebx, eax
jmp 0x40ac1a
lea ebx, [esp + 0x238]
test ebx, ebx
je 0x40ace0
mov eax, dword [esi]
push ebx
push edi
push 0
mov eax, dword [eax - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40acce
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40acce
mov eax, dword [esp + 0x24]
xor ecx, ecx
xor edx, edx
push 0x4cc0dc
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04x_s
lea eax, [esp + 0x40]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x18
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x30]
push ecx
push edx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40acce
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 0x104
mov word [esp + 0x236], cx
jae 0x40acbb
mov word [esp + eax*2 + 0x30], cx
mov ecx, dword [esp + 0x1c]
push ecx
push 0x4cb1f8
push ebp
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
cmp edi, 0x1000
jbe 0x40ace0
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [ebp]
mov eax, dword [edx - 8]
test eax, eax
jne 0x40ad2b
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp ecx, 2
jle 0x40ad2b
cmp word [eax + 2], 0x3a
jne 0x40ad2b
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call fcn.0042faa0
add esp, 4
test al, al
jne 0x40ad2b
mov eax, dword [0x545f7c]
mov ecx, dword [eax*4 + 0x4cbb2c]
push ecx
push 0x4cb1f8
push ebp
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
push esi
lea ecx, [esp + 0x18]
call fcn.004a6210
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1244], 0
call fcn.004a6210
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, 0x545e78
mov dword [esp + 0x1248], 1
call fcn.0040dc50
lea ecx, [esp + 0x18]
mov dword [esp + 0x1240], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x1240], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x1228]
mov dword fs:[0], ecx
add esp, 0x1234
ret
mov ecx, dword [ecx + 0x10]
mov edx, dword [esp + 0x1240]
push ecx
push 0x4cb1f8
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
pop esi
mov ecx, dword [esp + 0x1228]
mov dword fs:[0], ecx
add esp, 0x1234
ret
mov ecx, dword [esp + 0x1240]
call sub.MFC42u.DLL_CString::Empty
mov ecx, dword [esp + 0x122c]
pop esi
mov dword fs:[0], ecx
add esp, 0x1234
ret