Function at 0x52e1f4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x18
push 0
push 0
dec ecx
jne 0x52e1fd
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00406d68
xor eax, eax
push ebp
push 0x52e8ba
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x52e7af
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x52e7a5
mov eax, dword [ebp - 0x18]
call fcn.004030e4
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x52e79e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call sub.version.dll_GetFileVersionInfoW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x52e786
cmp dword [ebp - 0x14], 0
je 0x52e343
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x52e8d0
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
shr eax, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
and eax, 0xffff
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
and eax, 0xffff
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0
lea edx, [ebp - 0x64]
mov ecx, 3
mov eax, 0x52e8e0
call fcn.0047b9a8
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
add eax, 8
call fcn.0040700c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x52e8f8
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
push 0x52e938
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
mov edx, 4
call fcn.00479e44
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
shr eax, 0x10
movzx eax, ax
mov edx, 4
call fcn.00479e44
push dword [ebp - 0x70]
push 0x52e968
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.00407348
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x24]
call fcn.0040700c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
call fcn.004068c4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
jne 0x52e422
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x52e96c
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x52e422
cmp dword [ebp - 0x1c], 0
je 0x52e422
mov edx, dword [ebp - 0x1c]
add edx, 8
lea eax, [ebp - 0x28]
mov ecx, 8
call fcn.00406ebc
push 0x52e938
push dword [ebp - 0x28]
push 0x52e968
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.00407348
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x24]
call fcn.0040700c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x78]
mov ecx, 0x52e994
mov edx, dword [ebp - 0x24]
call fcn.00406990
mov eax, dword [ebp - 0x78]
call fcn.004068c4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x52e466
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x1c]
call fcn.00406f3c
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 8]
call fcn.0040700c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x80]
mov ecx, 0x52e9b0
mov edx, dword [ebp - 0x24]
call fcn.00406990
mov eax, dword [ebp - 0x80]
call fcn.004068c4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x52e4b3
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x1c]
call fcn.00406f3c
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 8]
add eax, 4
call fcn.0040700c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x88]
mov ecx, 0x52e9d4
mov edx, dword [ebp - 0x24]
call fcn.00406990
mov eax, dword [ebp - 0x88]
call fcn.004068c4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x52e506
lea eax, [ebp - 0x8c]
mov edx, dword [ebp - 0x1c]
call fcn.00406f3c
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 8]
add eax, 0xc
call fcn.0040700c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x90]
mov ecx, 0x52e9f4
mov edx, dword [ebp - 0x24]
call fcn.00406990
mov eax, dword [ebp - 0x90]
call fcn.004068c4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x52e559
lea eax, [ebp - 0x94]
mov edx, dword [ebp - 0x1c]
call fcn.00406f3c
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 8]
add eax, 0x10
call fcn.0040700c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x98]
mov ecx, 0x52ea18
mov edx, dword [ebp - 0x24]
call fcn.00406990
mov eax, dword [ebp - 0x98]
call fcn.004068c4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x52e5ac
lea eax, [ebp - 0x9c]
mov edx, dword [ebp - 0x1c]
call fcn.00406f3c
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 8]
add eax, 0x14
call fcn.0040700c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xa0]
mov ecx, 0x52ea3c
mov edx, dword [ebp - 0x24]
call fcn.00406990
mov eax, dword [ebp - 0xa0]
call fcn.004068c4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x52e5ff
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 0x1c]
call fcn.00406f3c
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 8]
add eax, 0x18
call fcn.0040700c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xa8]
mov ecx, 0x52ea64
mov edx, dword [ebp - 0x24]
call fcn.00406990
mov eax, dword [ebp - 0xa8]
call fcn.004068c4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x52e652
lea eax, [ebp - 0xac]
mov edx, dword [ebp - 0x1c]
call fcn.00406f3c
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 8]
add eax, 0x1c
call fcn.0040700c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xb0]
mov ecx, 0x52ea80
mov edx, dword [ebp - 0x24]
call fcn.00406990
mov eax, dword [ebp - 0xb0]
call fcn.004068c4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x52e6a5
lea eax, [ebp - 0xb4]
mov edx, dword [ebp - 0x1c]
call fcn.00406f3c
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 8]
add eax, 0x20
call fcn.0040700c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xb8]
mov ecx, 0x52eaa4
mov edx, dword [ebp - 0x24]
call fcn.00406990
mov eax, dword [ebp - 0xb8]
call fcn.004068c4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x52e6f8
lea eax, [ebp - 0xbc]
mov edx, dword [ebp - 0x1c]
call fcn.00406f3c
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 8]
add eax, 0x24
call fcn.0040700c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x52e8d0
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x52e724
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov esi, eax
lea edi, [edx + 0x28]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0xc], 0
je 0x52e786
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc0]
mov edx, dword [ebp - 0x24]
call fcn.00406ff8
lea eax, [ebp - 0xc0]
mov edx, dword [ebp - 0xc]
call fcn.004071a4
mov eax, dword [ebp - 0xc0]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x52e786
lea eax, [ebp - 0xc4]
mov edx, dword [ebp - 0x1c]
call fcn.00406f3c
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 8]
add eax, 0x5c
call fcn.0040700c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e7a5
mov eax, dword [ebp - 0x14]
push eax
call fcn.004093d0
pop ecx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52e7bd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e8c4
lea eax, [ebp - 0xc4]
mov edx, 3
call fcn.00406d78
lea eax, [ebp - 0xb8]
call fcn.004066c4
lea eax, [ebp - 0xb4]
call fcn.00406d70
lea eax, [ebp - 0xb0]
call fcn.004066c4
lea eax, [ebp - 0xac]
call fcn.00406d70
lea eax, [ebp - 0xa8]
call fcn.004066c4
lea eax, [ebp - 0xa4]
call fcn.00406d70
lea eax, [ebp - 0xa0]
call fcn.004066c4
lea eax, [ebp - 0x9c]
call fcn.00406d70
lea eax, [ebp - 0x98]
call fcn.004066c4
lea eax, [ebp - 0x94]
call fcn.00406d70
lea eax, [ebp - 0x90]
call fcn.004066c4
lea eax, [ebp - 0x8c]
call fcn.00406d70
lea eax, [ebp - 0x88]
call fcn.004066c4
lea eax, [ebp - 0x84]
call fcn.00406d70
lea eax, [ebp - 0x80]
call fcn.004066c4
lea eax, [ebp - 0x7c]
call fcn.00406d70
lea eax, [ebp - 0x78]
call fcn.004066c4
lea eax, [ebp - 0x74]
mov edx, 4
call fcn.00406d78
lea eax, [ebp - 0x44]
call fcn.00406d70
lea eax, [ebp - 0x28]
call fcn.00406d70
lea eax, [ebp - 0x24]
call fcn.004066c4
lea eax, [ebp - 0xc]
call fcn.00406d70
ret