Function at 0x4d5cb8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x4d5cc1
xchg dword [ebp - 4], ecx
push ebx
test dl, dl
je 0x4d5cd8
add esp, 0xfffffff0
call fcn.00409b50
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x15], dl
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4d5ff3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
add eax, 8
mov edx, dword [ebp - 0x1c]
call fcn.0040b714
cmp dword [ebp - 0x1c], 0
je 0x4d5f63
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4d5d13
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x1c]
call fcn.0040bfcc
mov edx, eax
lea eax, [ebp - 0x10]
mov ecx, ebx
call fcn.0040b4bc
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jbe 0x4d5f63
mov eax, ebx
call fcn.004072c0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4d5f5c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x4d601c
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueW
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.004d6144
test eax, eax
jne 0x4d5da4
mov eax, dword [ebx + 8]
shr eax, 0x10
mov dword [ebp + 0x14], eax
movzx eax, word [ebx + 8]
mov dword [ebp + 0x10], eax
mov eax, dword [ebx + 0xc]
shr eax, 0x10
mov dword [ebp + 0xc], eax
movzx eax, word [ebx + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4d5dec
cmp dword [ebx + 0x2c], 0
je 0x4d5dec
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
movzx ecx, word [ebp - 0x42]
movzx edx, word [ebp - 0x46]
movzx eax, word [ebp - 0x48]
call fcn.00429608
mov eax, dword [ebp - 0x14]
fstp qword [eax + 0x10]
wait
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x4d6020
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueW
cmp dword [ebp - 0x24], 4
jb 0x4d5f44
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
add eax, 2
mov edx, 2
call fcn.004d3e34
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
mov edx, 2
mov eax, dword [ebp - 0x28]
call fcn.004d3e34
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0xc]
pop ecx
call fcn.0040bb58
push ebp
lea edx, [ebp - 0x54]
mov eax, 0x4d6060
call fcn.004d5bf0
pop ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x14]
add eax, 0x30
call fcn.0040b7b0
push ebp
lea edx, [ebp - 0x58]
mov eax, 0x4d6078
call fcn.004d5bf0
pop ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
add eax, 0x34
call fcn.0040b7b0
push ebp
lea edx, [ebp - 0x5c]
mov eax, 0x4d6094
call fcn.004d5bf0
pop ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x14]
add eax, 0x38
call fcn.0040b7b0
push ebp
lea edx, [ebp - 0x60]
mov eax, 0x4d60ac
call fcn.004d5bf0
pop ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x14]
add eax, 0x3c
call fcn.0040b7b0
push ebp
lea edx, [ebp - 0x64]
mov eax, 0x4d60c8
call fcn.004d5bf0
pop ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x14]
add eax, 0x40
call fcn.0040b7b0
push ebp
lea edx, [ebp - 0x68]
mov eax, 0x4d60e4
call fcn.004d5bf0
pop ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x14]
add eax, 0x44
call fcn.0040b7b0
push ebp
lea edx, [ebp - 0x6c]
mov eax, 0x4d6104
call fcn.004d5bf0
pop ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x14]
add eax, 0x48
call fcn.0040b7b0
push ebp
lea edx, [ebp - 0x70]
mov eax, 0x4d611c
call fcn.004d5bf0
pop ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x14]
add eax, 0x4c
call fcn.0040b7b0
push ebp
lea edx, [ebp - 0x74]
mov eax, 0x4d6138
call fcn.004d5bf0
pop ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x14]
add eax, 0x50
call fcn.0040b7b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5f63
mov eax, dword [ebp - 8]
call fcn.004072dc
pop eax
jmp eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
call fcn.004d6158
mov eax, dword [ebp - 0x14]
fldz
fld qword [eax + 0x10]
fucompp
wait
fnstsw ax
sahf
jp 0x4d5f9a
jne 0x4d5f9a
mov eax, dword [ebp - 0x1c]
call fcn.004d4100
mov eax, dword [ebp - 0x14]
fstp qword [eax + 0x10]
wait
mov eax, dword [ebp - 0x14]
fldz
fld qword [eax + 0x10]
fucompp
wait
fnstsw ax
sahf
jp 0x4d5fac
je 0x4d5fc6
mov eax, dword [ebp - 0x14]
push dword [eax + 0x14]
push dword [eax + 0x10]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1e]
mov eax, dword [ebp - 0x14]
add eax, 0x28
call fcn.00429780
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5ffa
lea eax, [ebp - 0x74]
mov edx, 0xb
call fcn.0040b3bc
lea eax, [ebp - 0x10]
call fcn.0040b324
lea eax, [ebp - 0xc]
call fcn.0040b348
pop eax
jmp eax