Function at 0x479134
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x47913d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x47962f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47955c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 9], 0
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x479552
xor eax, eax
push ebp
push 0x47954b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call sub.rtl120.bpl__System_AllocMem_qqrui
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x479533
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x479644
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
push 0x479684
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call sub.rtl120.bpl__Sysutils_IntToHex_qqrii
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
call fcn.00401994
movzx eax, ax
lea ecx, [ebp - 0x2c]
mov edx, 4
call sub.rtl120.bpl__Sysutils_IntToHex_qqrii
push dword [ebp - 0x2c]
push 0x4796b4
lea eax, [ebp - 0x24]
mov edx, 4
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
mov ecx, 0x4796bc
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x30]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x34]
mov eax, ebx
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
mov ecx, 0x4796d8
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x38]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 4]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
mov ecx, 0x4796fc
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x40]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebx + 8]
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__WStrFromPWChar_qqrr17System_WideStringpb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x44]
mov ecx, 0x479718
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x44]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0xc]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
mov ecx, 0x479738
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x4c]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x50]
lea eax, [ebx + 0x10]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x54]
mov ecx, 0x47975c
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x54]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x58]
lea eax, [ebx + 0x14]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
mov ecx, 0x479780
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x5c]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x60]
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x60]
lea eax, [ebx + 0x18]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x64]
mov ecx, 0x4797a8
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x64]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x68]
lea eax, [ebx + 0x1c]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6c]
mov ecx, 0x4797c4
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x6c]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x70]
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x70]
lea eax, [ebx + 0x20]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x74]
mov ecx, 0x4797e8
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x74]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x78]
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x78]
lea eax, [ebx + 0x24]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4797fc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4794e3
mov eax, dword [ebp - 0x18]
mov esi, eax
lea edi, [ebx + 0x28]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 4], 0
je 0x479533
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrFromWStr_qqrr20System_UnicodeStringx17System_WideString
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x7c]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x479533
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x80]
lea eax, [ebx + 0x5c]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479552
mov eax, dword [ebp - 0x10]
push eax
call sub.rtl120.bpl__System_FreeMemory_qpv
pop ecx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47956a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479639
lea eax, [ebp - 0x80]
mov edx, 3
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x74]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x70]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x6c]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x68]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x64]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x60]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x5c]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x58]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x54]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x50]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x4c]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x48]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x44]
mov edx, 2
call sub.rtl120.bpl__System__WStrArrayClr_qqrpvi
lea eax, [ebp - 0x3c]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x38]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x34]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x30]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x2c]
mov edx, 3
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 8]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret