Function at 0x48b790
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x43c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
mov ebx, ecx
push 0x20a
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x218]
push esi
push eax
mov dword [ebp - 0x438], edx
mov dword [ebp - 0x444], ebx
call fcn.004a83c0
add esp, 0xc
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x434], esi
push esi
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x48b814
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004a5807
mov edi, eax
add esp, 4
test edi, edi
je 0x48ba6a
push edi
push ebx
push 0
push dword [ebp - 0x444]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x48ba61
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x434]
push eax
push str.VarFileInfoTranslation
push edi
call ebx
test eax, eax
je 0x48ba61
cmp dword [ebp - 0x438], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
je 0x48b916
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004a83c0
mov ecx, dword [ebp - 0x434]
add esp, 0xc
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004385e0
add esp, 0x14
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call ebx
test eax, eax
je 0x48b8ec
cmp dword [ebp - 0x42c], 0
jbe 0x48b8ec
push 0x104
push dword [ebp - 0x430]
lea eax, [ebp - 0x428]
push eax
call esi
push 0x104
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x438]
call esi
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a83c0
add esp, 0xc
cmp dword [ebp - 0x43c], 0
je 0x48b9c4
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004a83c0
mov ecx, dword [ebp - 0x434]
add esp, 0xc
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileVersion
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004385e0
add esp, 0x14
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call ebx
test eax, eax
je 0x48b99a
cmp dword [ebp - 0x42c], 0
jbe 0x48b99a
push 0x104
push dword [ebp - 0x430]
lea eax, [ebp - 0x428]
push eax
call esi
push 0x104
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x43c]
call esi
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a83c0
add esp, 0xc
cmp dword [ebp - 0x440], 0
je 0x48ba5c
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004a83c0
mov ecx, dword [ebp - 0x434]
add esp, 0xc
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xProductName
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004385e0
add esp, 0x14
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call ebx
test eax, eax
je 0x48ba48
cmp dword [ebp - 0x42c], 0
jbe 0x48ba48
push 0x104
push dword [ebp - 0x430]
lea eax, [ebp - 0x428]
push eax
call esi
push 0x104
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x440]
call esi
mov esi, 1
push edi
call fcn.004a5802
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret