Function at 0x4cf520
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x850], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x84c], edx
mov dword [ebp - 0x854], eax
test esi, esi
je 0x4cf811
xor eax, eax
cmp ax, word [esi]
je 0x4cf811
push ebx
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0049e130
push 0x20a
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x83c], ebx
push ebx
push eax
mov dword [ebp - 0x838], ebx
mov dword [ebp - 0x848], ebx
mov dword [ebp - 0x840], ebx
call fcn.0049e130
push 0x20a
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.0049e130
push 0x20a
lea eax, [ebp - 0x834]
push ebx
push eax
call fcn.0049e130
add esp, 0x30
push ebx
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x844], eax
test eax, eax
jne 0x4cf5e9
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
push edi
push 0x59e280
push eax
call fcn.0049aa33
mov edi, eax
add esp, 8
test edi, edi
je 0x4cf7fe
push edi
push dword [ebp - 0x844]
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4cf7f5
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x840]
push eax
push str.VarFileInfoTranslation
push edi
call esi
test eax, eax
je 0x4cf7f5
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0049e130
mov ecx, dword [ebp - 0x840]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00407180
add esp, 0x20
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
test eax, eax
je 0x4cf6b7
cmp dword [ebp - 0x838], ebx
jbe 0x4cf6b7
push 0x105
push dword [ebp - 0x83c]
lea eax, [ebp - 0x41c]
push eax
call esi
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0049e130
mov ecx, dword [ebp - 0x840]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x555f08
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00407180
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x838]
add esp, 0x20
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call ebx
test eax, eax
je 0x4cf731
cmp dword [ebp - 0x838], 0
jbe 0x4cf731
push 0x105
push dword [ebp - 0x83c]
lea eax, [ebp - 0x628]
push eax
call esi
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0049e130
mov ecx, dword [ebp - 0x840]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x555f58
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00407180
add esp, 0x20
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call ebx
test eax, eax
je 0x4cf7a5
cmp dword [ebp - 0x838], 0
jbe 0x4cf7a5
push 0x105
push dword [ebp - 0x83c]
lea eax, [ebp - 0x834]
push eax
call esi
mov eax, dword [ebp - 0x84c]
test eax, eax
je 0x4cf7be
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
push eax
call esi
mov eax, dword [ebp - 0x850]
test eax, eax
je 0x4cf7d7
push 0x104
lea ecx, [ebp - 0x628]
push ecx
push eax
call esi
mov eax, dword [ebp - 0x854]
test eax, eax
je 0x4cf7f0
push 0x104
lea ecx, [ebp - 0x834]
push ecx
push eax
call esi
mov ebx, 1
push edi
call fcn.0049aa3c
add esp, 4
pop edi
mov eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0049aa22
mov esp, ebp
pop ebp
ret