Function at 0x513cf8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x513d01
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x513ff2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov edx, dword [0x513cc8]
call fcn.0040c0a4
mov eax, edi
call fcn.00409d60
xor eax, eax
push ebp
push 0x513fba
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x513f71
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
call fcn.0040a7e0
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x513f67
mov eax, dword [ebp - 0x14]
call fcn.00406e30
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x513f67
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x514004
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x513e02
xor ebx, ebx
mov esi, dword [ebp - 0x14]
shr esi, 2
push esi
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x513cc8]
call fcn.0040bf80
add esp, 4
cmp esi, ebx
jbe 0x513e02
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
movzx edx, word [edx]
mov word [eax + ebx*4], dx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
movzx edx, word [edx + 2]
mov word [eax + ebx*4 + 2], dx
add dword [ebp - 0x24], 4
inc ebx
cmp esi, ebx
ja 0x513ddd
xor ebx, ebx
mov eax, dword [ebp - 8]
call fcn.0040bbdc
mov esi, eax
jmp 0x513ea8
push 0x514044
mov eax, dword [ebp - 8]
movzx eax, word [eax + ebx*4]
lea ecx, [ebp - 0x28]
mov edx, 4
call fcn.0042141c
push dword [ebp - 0x28]
mov eax, dword [ebp - 8]
movzx eax, word [eax + ebx*4 + 2]
lea ecx, [ebp - 0x2c]
mov edx, 4
call fcn.0042141c
push dword [ebp - 0x2c]
push 0x514074
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 5
call fcn.0040aab8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a7e0
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x513ea7
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x20]
call fcn.0040a844
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.004207e0
mov edx, dword [ebp - 0x30]
mov eax, edi
call fcn.0040a140
mov eax, dword [edi]
call fcn.0040a224
test eax, eax
setg byte [ebp - 0xd]
inc ebx
cmp esi, ebx
jbe 0x513eb6
cmp byte [ebp - 0xd], 0
je 0x513e13
cmp byte [ebp - 0xd], 0
jne 0x513f67
test esi, esi
jbe 0x513f67
mov eax, dword [ebp - 8]
cmp word [eax + 2], 0x4e4
je 0x513f67
push 0x514044
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 8]
movzx eax, word [eax]
mov edx, 4
call fcn.0042141c
push dword [ebp - 0x38]
lea ecx, [ebp - 0x3c]
mov edx, 4
mov eax, 0x4e4
call fcn.0042141c
push dword [ebp - 0x3c]
push 0x514074
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 5
call fcn.0040aab8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a7e0
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x513f67
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x20]
call fcn.0040a844
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.004207e0
mov edx, dword [ebp - 0x40]
mov eax, edi
call fcn.0040a140
mov eax, dword [edi]
call fcn.0040a224
test eax, eax
setg byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x513f9e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513fc1
cmp dword [ebp - 0x18], 0
je 0x513fb9
mov eax, dword [ebp - 0x18]
call fcn.00406e4c
ret