Function at 0x4c8e28
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x4c8e30
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov esi, eax
mov eax, dword [ebp - 8]
mov edx, dword [0x4c34a8]
call fcn.00407704
xor eax, eax
push ebp
push 0x4c94f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00406a7c
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.00406b08
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jbe 0x4c94be
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4c94b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
push eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4c94a1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x4c950c
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c94a1
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp - 8]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp - 8]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp - 8]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp - 8]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x14]
mov edx, dword [ebp - 8]
mov dword [edx + 0x50], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
and eax, 2
cmp eax, 2
sete al
mov edx, dword [ebp - 8]
mov byte [edx + 0x58], al
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
and eax, 1
cmp eax, 1
sete al
mov edx, dword [ebp - 8]
mov byte [edx + 0x59], al
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
and eax, 8
cmp eax, 8
sete al
mov edx, dword [ebp - 8]
mov byte [edx + 0x5a], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4c9510
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c8fce
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp - 0x10]
movzx edx, word [edx]
shl edx, 0x10
or eax, edx
lea ecx, [ebp - 4]
mov edx, 8
call fcn.00413008
jmp 0x4c8fdb
lea eax, [ebp - 4]
mov edx, 0x4c9550
call fcn.00406ad0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c9570
push dword [ebp - 4]
push 0x4c95a0
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x28]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c9021
mov eax, dword [ebp - 8]
add eax, 0x10
mov edx, dword [ebp - 0x14]
call fcn.00406c38
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c9570
push dword [ebp - 4]
push 0x4c95cc
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x2c]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c9067
mov eax, dword [ebp - 8]
add eax, 0xc
mov edx, dword [ebp - 0x14]
call fcn.00406c38
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c9570
push dword [ebp - 4]
push 0x4c95f4
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x30]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c90ad
mov eax, dword [ebp - 8]
add eax, 0x1c
mov edx, dword [ebp - 0x14]
call fcn.00406c38
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c9570
push dword [ebp - 4]
push 0x4c9624
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x34]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c90f3
mov eax, dword [ebp - 8]
add eax, 0x24
mov edx, dword [ebp - 0x14]
call fcn.00406c38
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c9570
push dword [ebp - 4]
push 0x4c9650
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x38]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c9139
mov eax, dword [ebp - 8]
add eax, 0x28
mov edx, dword [ebp - 0x14]
call fcn.00406c38
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c9570
push dword [ebp - 4]
push 0x4c9680
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x3c]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c917f
mov eax, dword [ebp - 8]
add eax, 0x20
mov edx, dword [ebp - 0x14]
call fcn.00406c38
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c9570
push dword [ebp - 4]
push 0x4c96a0
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x40]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c91c5
mov eax, dword [ebp - 8]
add eax, 0x54
mov edx, dword [ebp - 0x14]
call fcn.00406c38
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c9570
push dword [ebp - 4]
push 0x4c96c8
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x44]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c920b
mov eax, dword [ebp - 8]
add eax, 0x14
mov edx, dword [ebp - 0x14]
call fcn.00406c38
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c9570
push dword [ebp - 4]
push 0x4c96f0
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x48]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c9251
mov eax, dword [ebp - 8]
add eax, 0x18
mov edx, dword [ebp - 0x14]
call fcn.00406c38
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c9570
push dword [ebp - 4]
push 0x4c9718
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x4c]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c9297
mov eax, dword [ebp - 8]
add eax, 0x2c
mov edx, dword [ebp - 0x14]
call fcn.00406c38
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c9570
push dword [ebp - 4]
push 0x4c9740
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x50]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c92dd
mov eax, dword [ebp - 8]
add eax, 0x30
mov edx, dword [ebp - 0x14]
call fcn.00406c38
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0
lea edx, [ebp - 0x6c]
mov ecx, 2
mov eax, 0x4c9770
call fcn.00413f6c
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 8]
add eax, 8
call fcn.00406a7c
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x8c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
lea edx, [ebp - 0x90]
mov ecx, 3
mov eax, 0x4c9790
call fcn.00413f6c
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00406a7c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c9570
push dword [ebp - 4]
push 0x4c97b4
lea eax, [ebp - 0x94]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x94]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c93db
mov eax, dword [ebp - 8]
add eax, 0x5c
mov edx, dword [ebp - 0x14]
call fcn.00406c38
mov eax, dword [ebp - 8]
cmp byte [eax + 0x58], 0
je 0x4c949d
mov eax, dword [ebp - 8]
cmp dword [eax + 0x40], 0
jbe 0x4c9460
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x8c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
lea edx, [ebp - 0x90]
mov ecx, 3
mov eax, 0x4c97e0
call fcn.00413f6c
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00406a7c
jmp 0x4c949d
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0xa0], 0x11
lea edx, [ebp - 0xa4]
xor ecx, ecx
mov eax, 0x4c9810
call fcn.00413f6c
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00406a7c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c94be
mov eax, dword [ebp - 0x20]
call fcn.00404208
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9500
lea eax, [ebp - 0x9c]
mov edx, 3
call fcn.00406a74
lea eax, [ebp - 0x70]
call fcn.00406a6c
lea eax, [ebp - 0x54]
mov edx, 0xc
call fcn.00406a74
lea eax, [ebp - 4]
call fcn.00406a6c
ret