Function at 0x524fec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x524ff4
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5254c9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.004051a8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x5254a6
mov eax, dword [ebp - 8]
call fcn.004093c8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.004051a8
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x5254d4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x24]
and eax, dword [edx + 0x18]
test eax, eax
jns 0x525080
call fcn.00403dcc
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x20]
test eax, eax
jns 0x525095
call fcn.00403dcc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x24]
test eax, eax
jns 0x5250aa
call fcn.00403dcc
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0x3c]
call fcn.0040b7f4
mov eax, dword [ebp - 4]
fstp qword [eax + 0x40]
wait
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x5254d8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
movsx eax, word [eax + 2]
mov edx, 4
call fcn.00409bd0
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
movsx eax, word [eax]
mov edx, 4
call fcn.00409bd0
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x20]
pop ecx
call fcn.00404ff4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5254fc
push dword [ebp - 0x20]
push 0x525514
push 0x525520
lea eax, [ebp - 0x48]
mov edx, 4
call fcn.00405068
mov eax, dword [ebp - 0x48]
call fcn.004051a8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x525178
mov eax, dword [ebp - 4]
add eax, 4
mov edx, dword [ebp - 0x14]
call fcn.00404ee0
jmp 0x525183
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00404ce8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5254fc
push dword [ebp - 0x20]
push 0x525514
push 0x525534
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00405068
mov eax, dword [ebp - 0x4c]
call fcn.004051a8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5251d0
mov eax, dword [ebp - 4]
add eax, 8
mov edx, dword [ebp - 0x14]
call fcn.00404ee0
jmp 0x5251db
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00404ce8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5254fc
push dword [ebp - 0x20]
push 0x525514
push 0x52554c
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00405068
mov eax, dword [ebp - 0x50]
call fcn.004051a8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x525228
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, dword [ebp - 0x14]
call fcn.00404ee0
jmp 0x525233
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00404ce8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5254fc
push dword [ebp - 0x20]
push 0x525514
push 0x525560
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.00405068
mov eax, dword [ebp - 0x54]
call fcn.004051a8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x525280
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, dword [ebp - 0x14]
call fcn.00404ee0
jmp 0x52528b
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00404ce8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5254fc
push dword [ebp - 0x20]
push 0x525514
push 0x525578
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405068
mov eax, dword [ebp - 0x58]
call fcn.004051a8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5252d8
mov eax, dword [ebp - 4]
add eax, 0x14
mov edx, dword [ebp - 0x14]
call fcn.00404ee0
jmp 0x5252e3
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00404ce8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5254fc
push dword [ebp - 0x20]
push 0x525514
push 0x525590
lea eax, [ebp - 0x5c]
mov edx, 4
call fcn.00405068
mov eax, dword [ebp - 0x5c]
call fcn.004051a8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x525330
mov eax, dword [ebp - 4]
add eax, 0x18
mov edx, dword [ebp - 0x14]
call fcn.00404ee0
jmp 0x52533b
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.00404ce8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5254fc
push dword [ebp - 0x20]
push 0x525514
push 0x5255a8
lea eax, [ebp - 0x60]
mov edx, 4
call fcn.00405068
mov eax, dword [ebp - 0x60]
call fcn.004051a8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x525388
mov eax, dword [ebp - 4]
add eax, 0x1c
mov edx, dword [ebp - 0x14]
call fcn.00404ee0
jmp 0x525393
mov eax, dword [ebp - 4]
add eax, 0x1c
call fcn.00404ce8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5254fc
push dword [ebp - 0x20]
push 0x525514
push 0x5255c4
lea eax, [ebp - 0x64]
mov edx, 4
call fcn.00405068
mov eax, dword [ebp - 0x64]
call fcn.004051a8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5253e0
mov eax, dword [ebp - 4]
add eax, 0x20
mov edx, dword [ebp - 0x14]
call fcn.00404ee0
jmp 0x5253eb
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.00404ce8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5254fc
push dword [ebp - 0x20]
push 0x525514
push 0x5255d8
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.00405068
mov eax, dword [ebp - 0x68]
call fcn.004051a8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x525438
mov eax, dword [ebp - 4]
add eax, 0x24
mov edx, dword [ebp - 0x14]
call fcn.00404ee0
jmp 0x525443
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.00404ce8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5254fc
push dword [ebp - 0x20]
push 0x525514
push 0x5255f0
lea eax, [ebp - 0x6c]
mov edx, 4
call fcn.00405068
mov eax, dword [ebp - 0x6c]
call fcn.004051a8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x525490
mov eax, dword [ebp - 4]
add eax, 0x28
mov edx, dword [ebp - 0x14]
call fcn.00404ee0
jmp 0x52549b
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00404ce8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00402b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5254d0
lea eax, [ebp - 0x6c]
mov edx, 0xc
call fcn.00404d0c
lea eax, [ebp - 0x20]
call fcn.00404ce8
ret