Function at 0x4b55f4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4b5621
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
test eax, eax
je 0x4b562c
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x4b580c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
call fcn.00404494
mov eax, dword [ebp - 8]
call fcn.00404494
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.00404964
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4b57e9
mov eax, ebx
call fcn.00402754
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4b57e2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4b56a4
call fcn.00403ebc
jmp 0x4b57e9
lea eax, [ebp - 0x20]
mov edx, 0x4b5828
call fcn.0040452c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x4b5834
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4b5720
mov eax, dword [ebp - 0x24]
cmp word [eax], 0
jne 0x4b56dc
mov eax, dword [ebp - 0x24]
mov word [eax], 0x409
mov eax, dword [ebp - 0x24]
cmp word [eax + 2], 0
jne 0x4b56ef
mov eax, dword [ebp - 0x24]
mov word [eax + 2], 0x4e4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
movzx eax, word [eax]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 2]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x34]
mov ecx, 1
mov eax, 0x4b5858
call fcn.0040a4bc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4b586c
push dword [ebp - 0x20]
push 0x4b5888
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404824
mov eax, dword [ebp - 0x38]
call fcn.00404964
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4b5778
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
call fcn.00409fcc
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004044e8
mov byte [ebp - 9], 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4b586c
push dword [ebp - 0x20]
push 0x4b58a0
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00404824
mov eax, dword [ebp - 0x40]
call fcn.00404964
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4b57cc
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x14]
call fcn.00409fcc
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
call fcn.004044e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b57e9
mov eax, dword [ebp - 0x10]
call fcn.00402774
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5813
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.004044b8
lea eax, [ebp - 0x20]
call fcn.00404494
ret