Function at 0x489c50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x43c], eax
xor ebx, ebx
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x14]
push 0x20a
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x210]
push ebx
push eax
mov dword [ebp - 0x434], esi
call fcn.004dcc10
add esp, 0xc
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x428], ebx
push ebx
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x489cd6
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
push edi
push esi
call fcn.004dafd8
add esp, 4
mov edi, eax
push edi
push esi
push 0
push dword [ebp - 0x434]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x489f20
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x428]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x489f20
mov ebx, dword [ebp - 0x43c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
test ebx, ebx
je 0x489dcd
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.004dcc10
mov ecx, dword [ebp - 0x428]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0048cbf0
add esp, 0x20
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x489da8
cmp dword [ebp - 0x420], 0
jbe 0x489da8
push 0x104
push dword [ebp - 0x424]
lea eax, [ebp - 0x41c]
push eax
call esi
push 0x104
lea eax, [ebp - 0x41c]
push eax
push ebx
call esi
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004dcc10
add esp, 0xc
cmp dword [ebp - 0x42c], 0
je 0x489e80
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.004dcc10
mov ecx, dword [ebp - 0x428]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileVersion
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0048cbf0
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x420]
add esp, 0x20
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call ebx
test eax, eax
je 0x489e54
cmp dword [ebp - 0x420], 0
jbe 0x489e54
push 0x104
push dword [ebp - 0x424]
lea eax, [ebp - 0x41c]
push eax
call esi
push 0x104
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x42c]
call esi
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004dcc10
add esp, 0xc
jmp 0x489e86
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [ebp - 0x430], 0
je 0x489f1b
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.004dcc10
mov ecx, dword [ebp - 0x428]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xProductName
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0048cbf0
add esp, 0x20
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call ebx
test eax, eax
je 0x489f07
cmp dword [ebp - 0x420], 0
jbe 0x489f07
push 0x104
push dword [ebp - 0x424]
lea eax, [ebp - 0x41c]
push eax
call esi
push 0x104
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x430]
call esi
mov ebx, 1
push edi
call fcn.004dafe1
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret