Function at 0x495d4c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x495d54
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4960f4
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x4960ce
mov eax, esi
mov edx, ebx
call fcn.00404578
lea eax, [ebp - 0x124]
mov edx, ebx
call fcn.00409078
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], 0
cmp dword [ebp - 0xc], 0
je 0x4960ce
mov eax, dword [ebp - 0xc]
call fcn.00402734
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4960c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4960ae
mov byte [ebp - 1], 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x496104
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4960ae
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call fcn.004075d8
movzx eax, ax
lea edx, [ebp - 0x128]
call fcn.00408b44
push dword [ebp - 0x128]
push 0x496110
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 8]
call fcn.00408b44
push dword [ebp - 0x12c]
push 0x496110
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
call fcn.004075d8
movzx eax, ax
lea edx, [ebp - 0x130]
call fcn.00408b44
push dword [ebp - 0x130]
push 0x496110
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xc]
call fcn.00408b44
push dword [ebp - 0x134]
lea eax, [esi + 4]
mov edx, 7
call fcn.0040489c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call fcn.004075d8
movzx eax, ax
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 8]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
call fcn.004075d8
movzx eax, ax
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xc]
mov dword [esi + 0x28], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x496114
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x495f41
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x20]
mov eax, 8
call fcn.00408be4
lea eax, [ebp - 0x138]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404a34
mov eax, dword [ebp - 0x138]
push eax
lea eax, [ebp - 0x13c]
push eax
mov ecx, 4
mov edx, 5
mov eax, dword [ebp - 0x20]
call fcn.00404a34
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0x20]
pop ecx
call fcn.00404828
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x496138
push dword [ebp - 0x20]
push 0x496154
lea eax, [ebp - 0x140]
mov edx, 3
call fcn.0040489c
mov eax, dword [ebp - 0x140]
call fcn.004049d4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x495f8a
lea eax, [esi + 0x10]
mov edx, dword [ebp - 0x10]
call fcn.00404714
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x496138
push dword [ebp - 0x20]
push 0x496170
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.0040489c
mov eax, dword [ebp - 0x144]
call fcn.004049d4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x495fd3
lea eax, [esi + 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00404714
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x496138
push dword [ebp - 0x20]
push 0x496188
lea eax, [ebp - 0x148]
mov edx, 3
call fcn.0040489c
mov eax, dword [ebp - 0x148]
call fcn.004049d4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x49601c
lea eax, [esi + 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00404714
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x496138
push dword [ebp - 0x20]
push 0x49619c
lea eax, [ebp - 0x14c]
mov edx, 3
call fcn.0040489c
mov eax, dword [ebp - 0x14c]
call fcn.004049d4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x496065
lea eax, [esi + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404714
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x496138
push dword [ebp - 0x20]
push 0x4961b4
lea eax, [ebp - 0x150]
mov edx, 3
call fcn.0040489c
mov eax, dword [ebp - 0x150]
call fcn.004049d4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4960ae
lea eax, [esi + 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00404714
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4960ce
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00402754
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4960fb
lea eax, [ebp - 0x150]
mov edx, 0xb
call fcn.00404548
lea eax, [ebp - 0x20]
call fcn.00404524
ret