Function at 0x488620
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x488629
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x488868
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00406a7c
mov eax, esi
call fcn.00406a7c
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.004072b0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x488845
mov eax, dword [ebp - 8]
call fcn.00404214
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x48883e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, ebx
call fcn.004072b0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x488825
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x488878
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x488765
push 0x4888a0
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call fcn.004159a8
push dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.004159a8
push dword [ebp - 0x28]
push 0x4888d4
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00408024
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00407cb0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.004072b0
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x488765
cmp dword [ebp - 0x10], 1
jbe 0x488765
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.00416b3c
mov ecx, eax
mov eax, edi
mov edx, ebx
call fcn.00406bb4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4888f8
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x488825
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 8]
shr ebx, 0x10
mov eax, dword [ebp - 0x1c]
movzx edi, word [eax + 8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0xc]
mov word [ebp - 0x14], ax
lea edx, [ebp - 0x30]
movzx eax, bx
call fcn.0041573c
push dword [ebp - 0x30]
push 0x488908
lea edx, [ebp - 0x34]
movzx eax, di
call fcn.0041573c
push dword [ebp - 0x34]
push 0x488908
lea edx, [ebp - 0x38]
movzx eax, word [ebp - 0x12]
call fcn.0041573c
push dword [ebp - 0x38]
push 0x488908
lea edx, [ebp - 0x3c]
movzx eax, word [ebp - 0x14]
call fcn.0041573c
push dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.00408024
mov edx, dword [ebp - 0x2c]
mov eax, esi
mov ecx, 0
call fcn.00407cb0
mov eax, dword [esi]
mov edx, 0x488918
call fcn.0040722c
jne 0x488825
mov eax, esi
call fcn.00406a7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488845
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.00404230
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48886f
lea eax, [ebp - 0x3c]
mov edx, 8
call fcn.00407a54
lea eax, [ebp - 4]
call fcn.00406a7c
ret