Function at 0x509aa0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x56bbe0]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc8], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00402810
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x509aea
jmp 0x509d01
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00498aad
add esp, 4
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x509b42
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.00498aa2
add esp, 4
jmp 0x509d01
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 8]
push eax
push 0x541f7c
mov ecx, dword [ebp - 0xc]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x509b79
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0xc0]
push eax
call fcn.00498aa2
add esp, 4
jmp 0x509d01
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x541f80
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x509c92
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
and edx, 0xffff
movzx eax, dx
push eax
push str.StringFileInfo_04x_04xFileVersion
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x509c13
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
push ecx
push 0x100
mov edx, dword [ebp + 0xc]
add edx, 0x10
push edx
call fcn.00404c23
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
and ecx, 0xffff
movzx edx, cx
push edx
push str.StringFileInfo_04x_04xCompanyName
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x509c92
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
push eax
push 0x100
mov ecx, dword [ebp + 0xc]
add ecx, 0x110
push ecx
call fcn.00404c23
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 0xc]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
push ecx
call fcn.00498aa2
add esp, 4
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004a9399
mov esp, ebp
pop ebp
ret 8