Function at 0x5785dc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x5785e5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004064dc
xor eax, eax
push ebp
push 0x578af3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x578a12
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 9], 0
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.00406580
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x578a08
mov eax, dword [ebp - 0x14]
call fcn.0040308c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x578a01
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x5789e9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x578b08
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
push 0x578b48
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call fcn.0045ca5c
push dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
shr eax, 0x10
movzx eax, ax
mov edx, 4
call fcn.0045ca5c
push dword [ebp - 0x2c]
push 0x578b78
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00406998
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
call fcn.00406770
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
mov ecx, 0x578b80
mov edx, dword [ebp - 8]
call fcn.0040630c
mov eax, dword [ebp - 0x30]
call fcn.004062fc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
call fcn.004066a0
mov edx, dword [ebp - 0x34]
mov eax, ebx
call fcn.00406770
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
mov ecx, 0x578b9c
mov edx, dword [ebp - 8]
call fcn.0040630c
mov eax, dword [ebp - 0x38]
call fcn.004062fc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
call fcn.004066a0
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 4]
call fcn.00406770
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
mov ecx, 0x578bc0
mov edx, dword [ebp - 8]
call fcn.0040630c
mov eax, dword [ebp - 0x40]
call fcn.004062fc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x18]
call fcn.004066a0
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 8]
call fcn.00406770
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
mov ecx, 0x578bdc
mov edx, dword [ebp - 8]
call fcn.0040630c
mov eax, dword [ebp - 0x48]
call fcn.004062fc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x18]
call fcn.004066a0
mov edx, dword [ebp - 0x4c]
lea eax, [ebx + 0xc]
call fcn.00406770
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
mov ecx, 0x578bfc
mov edx, dword [ebp - 8]
call fcn.0040630c
mov eax, dword [ebp - 0x50]
call fcn.004062fc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x18]
call fcn.004066a0
mov edx, dword [ebp - 0x54]
lea eax, [ebx + 0x10]
call fcn.00406770
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x58]
mov ecx, 0x578c20
mov edx, dword [ebp - 8]
call fcn.0040630c
mov eax, dword [ebp - 0x58]
call fcn.004062fc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x18]
call fcn.004066a0
mov edx, dword [ebp - 0x5c]
lea eax, [ebx + 0x14]
call fcn.00406770
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
mov ecx, 0x578c44
mov edx, dword [ebp - 8]
call fcn.0040630c
mov eax, dword [ebp - 0x60]
call fcn.004062fc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x18]
call fcn.004066a0
mov edx, dword [ebp - 0x64]
lea eax, [ebx + 0x18]
call fcn.00406770
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x68]
mov ecx, 0x578c6c
mov edx, dword [ebp - 8]
call fcn.0040630c
mov eax, dword [ebp - 0x68]
call fcn.004062fc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x18]
call fcn.004066a0
mov edx, dword [ebp - 0x6c]
lea eax, [ebx + 0x1c]
call fcn.00406770
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x70]
mov ecx, 0x578c88
mov edx, dword [ebp - 8]
call fcn.0040630c
mov eax, dword [ebp - 0x70]
call fcn.004062fc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0x18]
call fcn.004066a0
mov edx, dword [ebp - 0x74]
lea eax, [ebx + 0x20]
call fcn.00406770
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x78]
mov ecx, 0x578cac
mov edx, dword [ebp - 8]
call fcn.0040630c
mov eax, dword [ebp - 0x78]
call fcn.004062fc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x18]
call fcn.004066a0
mov edx, dword [ebp - 0x7c]
lea eax, [ebx + 0x24]
call fcn.00406770
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x578cc0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x578993
mov eax, dword [ebp - 0x18]
mov esi, eax
lea edi, [ebx + 0x28]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 4], 0
je 0x5789e9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 8]
call fcn.0040675c
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 4]
call fcn.00406848
mov eax, dword [ebp - 0x80]
call fcn.00406580
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x5789e9
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x18]
call fcn.004066a0
mov edx, dword [ebp - 0x84]
lea eax, [ebx + 0x5c]
call fcn.00406770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578a08
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040851c
pop ecx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x578a20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578afd
lea eax, [ebp - 0x84]
mov edx, 3
call fcn.004064ec
lea eax, [ebp - 0x78]
call fcn.00406128
lea eax, [ebp - 0x74]
call fcn.004064e4
lea eax, [ebp - 0x70]
call fcn.00406128
lea eax, [ebp - 0x6c]
call fcn.004064e4
lea eax, [ebp - 0x68]
call fcn.00406128
lea eax, [ebp - 0x64]
call fcn.004064e4
lea eax, [ebp - 0x60]
call fcn.00406128
lea eax, [ebp - 0x5c]
call fcn.004064e4
lea eax, [ebp - 0x58]
call fcn.00406128
lea eax, [ebp - 0x54]
call fcn.004064e4
lea eax, [ebp - 0x50]
call fcn.00406128
lea eax, [ebp - 0x4c]
call fcn.004064e4
lea eax, [ebp - 0x48]
call fcn.00406128
lea eax, [ebp - 0x44]
call fcn.004064e4
lea eax, [ebp - 0x40]
call fcn.00406128
lea eax, [ebp - 0x3c]
call fcn.004064e4
lea eax, [ebp - 0x38]
call fcn.00406128
lea eax, [ebp - 0x34]
call fcn.004064e4
lea eax, [ebp - 0x30]
call fcn.00406128
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004064ec
lea eax, [ebp - 8]
call fcn.00406128
lea eax, [ebp - 4]
call fcn.004064e4
ret