Function at 0x405250
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x406d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], edi
mov eax, dword [edi + 0x40]
mov dword [esp + 0x30], eax
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x405477
mov eax, dword [edi + 0x20]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
xor ebx, ebx
test esi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x20], ebx
jle 0x405477
push ebp
push 7
lea ecx, [esp + 0x14]
push ebx
push ecx
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText
mov edx, dword [esp + 0x10]
mov dword [esp + 0x50], 0
mov eax, dword [edx - 8]
test eax, eax
jne 0x4052e3
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.00405ea6
jmp 0x405469
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00405490
mov ecx, dword [esp + 0x10]
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x405454
push esi
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x405454
mov edx, dword [esp + 0x10]
push ebp
push esi
xor esi, esi
push esi
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40544b
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0x40a5d4
push ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40535f
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40535f
shr eax, 2
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0x3c], 0x40a5c8
mov dword [esp + 0x40], 0x40a5b8
mov dword [esp + 0x44], 0x40a5ac
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x40542e
mov eax, dword [esp + 0x20]
mov edi, dword [eax]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
xor ecx, ecx
xor edx, edx
push edi
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x20]
push 0x40a590
push eax
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
add esp, 0x14
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4053ea
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x405403
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 0
call fcn.00405ea6
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x405395
jmp 0x40542e
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [edx + 0x54]
add eax, ebx
push eax
push ecx
mov ecx, dword [esp + 0x38]
call sub.MFC42.DLL_CListCtrl::SetItemText
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 0
call fcn.00405ea6
mov ecx, dword [esp + 0x20]
inc ebx
add ecx, 4
cmp ebx, 3
mov dword [esp + 0x20], ecx
jl 0x405381
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.00405ea6
mov esi, dword [esp + 0x38]
inc ebx
cmp ebx, esi
mov dword [esp + 0x24], ebx
jl 0x4052ab
pop ebp
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret