Function at 0x4101f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x4101f9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x4107bd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4106d7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x24]
push eax
mov eax, ebx
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x4106cd
mov eax, dword [ebp - 0x18]
call sub.rtl120.bpl__System_AllocMem_qqrui
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4106c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4106ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4107d4
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
push 0x410814
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
mov edx, 4
call fcn.00407770
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.00402080
movzx eax, ax
lea ecx, [ebp - 0x30]
mov edx, 4
call fcn.00407770
push dword [ebp - 0x30]
push 0x410844
lea eax, [ebp - 0x28]
mov edx, 4
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
jne 0x410377
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x410848
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x410377
cmp dword [ebp - 0x1c], 0
je 0x410377
mov edx, dword [ebp - 0x1c]
add edx, 8
lea eax, [ebp - 8]
mov ecx, 8
call sub.rtl120.bpl__System__UStrFromPWCharLen_qqrr20System_UnicodeStringpbi
push 0x410814
push dword [ebp - 8]
push 0x410844
lea eax, [ebp - 0x34]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
mov ecx, 0x410870
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 - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4103ba
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x1c]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x3c]
mov eax, esi
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
mov ecx, 0x41088c
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 - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4103fe
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x1c]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x44]
lea eax, [esi + 4]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
mov ecx, 0x4108b0
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 - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x410442
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x1c]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x4c]
lea eax, [esi + 8]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x50]
mov ecx, 0x4108cc
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 - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x410486
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x1c]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x54]
lea eax, [esi + 0xc]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x58]
mov ecx, 0x4108ec
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x58]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4104ca
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x1c]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x5c]
lea eax, [esi + 0x10]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
mov ecx, 0x410910
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x60]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41050e
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x1c]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x64]
lea eax, [esi + 0x14]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x68]
mov ecx, 0x410934
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x68]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x410552
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x1c]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x6c]
lea eax, [esi + 0x18]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x70]
mov ecx, 0x41095c
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x70]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x410596
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0x1c]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x74]
lea eax, [esi + 0x1c]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x78]
mov ecx, 0x410978
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x78]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4105da
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x1c]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x7c]
lea eax, [esi + 0x20]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x80]
mov ecx, 0x41099c
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__WStrCat3_qqrr17System_WideStringx17System_WideStringt2
mov eax, dword [ebp - 0x80]
call sub.rtl120.bpl__System__WStrToPWChar_qqrx17System_WideString
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x410624
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x1c]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x84]
lea eax, [esi + 0x24]
call sub.rtl120.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4109b0
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41064f
mov eax, dword [ebp - 0x1c]
push esi
lea edi, [esi + 0x28]
mov esi, eax
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
pop esi
cmp dword [ebp - 4], 0
je 0x4106ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__UStrFromWStr_qqrr20System_UnicodeStringx17System_WideString
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x88]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4106ae
lea eax, [ebp - 0x8c]
mov edx, dword [ebp - 0x1c]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x8c]
lea eax, [esi + 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 0x4106cd
mov eax, dword [ebp - 0x14]
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 0x4106e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4107c7
lea eax, [ebp - 0x8c]
mov edx, 3
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x80]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x7c]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x78]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x74]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x70]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x6c]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x68]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x64]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x60]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x5c]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x58]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x54]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x50]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x4c]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x48]
call sub.rtl120.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x44]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x40]
call sub.rtl120.bpl__System__WStrClr_qqrpv
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]
mov edx, 4
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