Function at 0x6e0fec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x6e0ff5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x6e141d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, 0x6e143c
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x6e13d8
mov eax, dword [ebp - 0x14]
call sub.rtl120.bpl__System_AllocMem_qqrui
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x6e13d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je case.0x6e110c.10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x6e144c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
cmp dword [ebp - 0x1c], 0
je 0x6e1100
push 0x6e148c
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.00402498
movzx eax, ax
lea ecx, [ebp - 0x2c]
mov edx, 4
call sub.rtl120.bpl__Sysutils_IntToHex_qqrii
push dword [ebp - 0x2c]
push 0x6e14bc
lea eax, [ebp - 0x24]
mov edx, 4
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
movzx eax, bl
cmp eax, 0xb
ja case.0x6e110c.10
jmp dword [eax*4 + 0x6e1113]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
mov ecx, 0x6e14c4
mov edx, dword [ebp - 0xc]
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
mov eax, edi
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp case.0x6e110c.10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
mov ecx, 0x6e14e0
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x34]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
mov eax, edi
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp case.0x6e110c.10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
mov ecx, 0x6e1504
mov edx, dword [ebp - 0xc]
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
mov eax, edi
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp case.0x6e110c.10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
mov ecx, 0x6e1520
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x3c]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
mov eax, edi
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp case.0x6e110c.10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
mov ecx, 0x6e1540
mov edx, dword [ebp - 0xc]
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
mov eax, edi
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp case.0x6e110c.10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x44]
mov ecx, 0x6e1564
mov edx, dword [ebp - 0xc]
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
mov eax, edi
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp case.0x6e110c.10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
mov ecx, 0x6e1588
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x48]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
mov eax, edi
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp case.0x6e110c.10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
mov ecx, 0x6e15b0
mov edx, dword [ebp - 0xc]
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
mov eax, edi
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp case.0x6e110c.10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
mov ecx, 0x6e15cc
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x50]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
mov eax, edi
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp case.0x6e110c.10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x54]
mov ecx, 0x6e15f0
mov edx, dword [ebp - 0xc]
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
mov eax, edi
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp case.0x6e110c.10
cmp dword [ebp - 8], 0
je case.0x6e110c.10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__UStrFromWStr_qqrr20System_UnicodeStringx17System_WideString
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x58]
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 case.0x6e110c.10
mov eax, edi
mov edx, dword [ebp - 0x18]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e13d8
mov eax, dword [ebp - 0x10]
call sub.rtl120.bpl__System__FreeMem_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e1424
lea eax, [ebp - 0x58]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x54]
mov edx, 0xa
call sub.rtl120.bpl__System__WStrArrayClr_qqrpvi
lea eax, [ebp - 0x2c]
mov edx, 3
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret