Function at 0x45a998
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x45a9a1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45ac92
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov edx, dword [0x45a96c]
call fcn.004054c8
mov eax, edi
call fcn.00404514
xor eax, eax
push ebp
push 0x45ac5a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x45ac11
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
call fcn.004049d4
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x45ac07
mov eax, dword [ebp - 0xc]
call fcn.00402a5c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x45ac07
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x45aca4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45aaa2
xor ebx, ebx
mov esi, dword [ebp - 0xc]
shr esi, 2
push esi
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x45a96c]
call fcn.004054bc
add esp, 4
cmp esi, ebx
jbe 0x45aaa2
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dx, word [edx]
mov word [eax + ebx*4], dx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dx, word [edx + 2]
mov word [eax + ebx*4 + 2], dx
add dword [ebp - 0x20], 4
inc ebx
cmp esi, ebx
ja 0x45aa7d
xor ebx, ebx
mov eax, dword [ebp - 0x24]
call fcn.004052e0
mov esi, eax
jmp 0x45ab48
push 0x45acc8
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + ebx*4]
lea ecx, [ebp - 0x28]
mov edx, 4
call fcn.00408470
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + ebx*4 + 2]
lea ecx, [ebp - 0x2c]
mov edx, 4
call fcn.00408470
push dword [ebp - 0x2c]
push 0x45ace4
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00404894
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004049d4
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45ab47
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
call fcn.0040470c
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.0040825c
mov edx, dword [ebp - 0x30]
mov eax, edi
call fcn.00404568
mov eax, dword [edi]
call fcn.004047d4
test eax, eax
setg byte [ebp - 5]
inc ebx
cmp esi, ebx
jbe 0x45ab56
cmp byte [ebp - 5], 0
je 0x45aab3
cmp byte [ebp - 5], 0
jne 0x45ac07
test esi, esi
jbe 0x45ac07
mov eax, dword [ebp - 0x24]
cmp word [eax + 2], 0x4e4
je 0x45ac07
push 0x45acc8
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax]
mov edx, 4
call fcn.00408470
push dword [ebp - 0x38]
lea ecx, [ebp - 0x3c]
mov edx, 4
mov eax, 0x4e4
call fcn.00408470
push dword [ebp - 0x3c]
push 0x45ace4
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00404894
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004049d4
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45ac07
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x18]
call fcn.0040470c
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.0040825c
mov edx, dword [ebp - 0x40]
mov eax, edi
call fcn.00404568
mov eax, dword [edi]
call fcn.004047d4
test eax, eax
setg byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45ac3e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ac61
cmp dword [ebp - 0x10], 0
je 0x45ac59
mov eax, dword [ebp - 0x10]
call fcn.00402a8c
ret