Function at 0x41c0af
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x41c0df
cmp dword [0x4c12e0], 0
je 0x41c0df
cmp dword [0x4c3630], 0
je 0x41c0df
mov eax, dword [ecx]
push str.In_CInfFile::_GetFileVersionAsString__
push ecx
call dword [eax + 0x10]
pop ecx
pop ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x41c279
cmp byte [esi], 0
je 0x41c279
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x41c279
mov byte [ebx], 0
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x41c129
cmp dword [0x4c12e0], 0
je 0x41c129
cmp dword [0x4c3630], 0
je 0x41c129
mov eax, dword [ecx]
push esi
push str...Trying_to_get_version_of_file__s_as_string
push ecx
call dword [eax + 0x10]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x41c16d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi + 0xc]
test edx, edx
je 0x41c296
cmp dword [0x4c12e0], 0
je 0x41c296
mov ecx, dword [edx]
push eax
push esi
push str.Could_not_get_version_info_size_for_file__s._Error:__d
push edx
call dword [ecx + 0x14]
add esp, 0x10
jmp 0x41c296
push eax
call fcn.0045f1f4
mov dword [ebp + 8], eax
pop ecx
test eax, eax
jne 0x41c1a2
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x41c296
cmp dword [0x4c12e0], eax
je 0x41c296
mov eax, dword [ecx]
push str.FATAL._Not_enough_memory
push ecx
call dword [eax + 0x1c]
jmp 0x41c294
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41c219
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x494bbc
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41c1fa
cmp dword [ebp + 0xc], 0
je 0x41c1fa
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x4953a4
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x41c23f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi + 0xc]
test edx, edx
je 0x41c23f
cmp dword [0x4c12e0], 0
je 0x41c23f
push eax
push esi
push str...Failed_querying_file_version_for__s._Error:__d
jmp 0x41c236
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi + 0xc]
test edx, edx
je 0x41c23f
cmp dword [0x4c12e0], 0
je 0x41c23f
push eax
push esi
push str...Could_not_get_file_version_info_for__s._Error:__d
mov ecx, dword [edx]
push edx
call dword [ecx + 0x14]
add esp, 0x10
push dword [ebp + 8]
call fcn.0045f1d9
pop ecx
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x41c270
cmp dword [0x4c12e0], 0
je 0x41c270
cmp dword [0x4c3630], 0
je 0x41c270
mov eax, dword [ecx]
push ebx
push str.CInfFile::_GetFileVersionAsString___returns_with_version:__s
push ecx
call dword [eax + 0x10]
add esp, 0xc
xor eax, eax
cmp byte [ebx], al
setne al
jmp 0x41c298
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x41c296
cmp dword [0x4c12e0], 0
je 0x41c296
mov eax, dword [ecx]
push str.Parameters_to_CInfFile::_GetFileVersionAsString___are_incorrect
push ecx
call dword [eax + 0x14]
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8