Function at 0x4fed00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58cc99
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x5ed80c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
lea edx, [ebp - 0x64]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xd4], ebx
push edx
mov ecx, edi
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe4], ebx
call fcn.00407200
cmp dword [eax + 0x14], 8
jb 0x4fed64
mov eax, dword [eax]
lea ecx, [ebp - 0xe4]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp dword [ebp - 0x50], 8
mov esi, eax
jb 0x4fed85
mov edx, dword [ebp - 0x64]
push edx
call fcn.0055ae44
add esp, 4
cmp esi, ebx
jne 0x4fedba
push 1
push str.mailru::resource::version_info
push str.Resource.cpp
push 0x5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc8]
call fcn.004053a0
push 0x5ccbe8
lea eax, [ebp - 0xc8]
push eax
call fcn.0055b802
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.004262e0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00407200
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x4fede6
mov eax, dword [eax]
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xe4]
push edx
push esi
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
sete byte [ebp - 0xc9]
cmp dword [ebp - 0x18], edi
jb 0x4fee12
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0055ae44
add esp, 4
cmp byte [ebp - 0xc9], bl
je 0x4fee4b
push 1
push str.mailru::resource::version_info
push str.Resource.cpp
push 0x63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc8]
call fcn.004053a0
push 0x5ccbe8
lea eax, [ebp - 0xc8]
push eax
call fcn.0055b802
mov esi, dword [ebp - 0x58]
lea ecx, [ebp - 0xe8]
push ecx
lea edx, [ebp - 0xd4]
push edx
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xe8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4feeae
push 1
push str.mailru::resource::version_info
push str.Resource.cpp
push 0x6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc8]
call fcn.004053a0
push 0x5ccbe8
lea eax, [ebp - 0xc8]
push eax
call fcn.0055b802
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
push 0x3e
lea eax, [ebp - 0xa2]
xor edx, edx
push ebx
push eax
mov byte [ebp - 4], 1
mov word [ebp - 0xa4], dx
call fcn.0055bc50
mov eax, dword [ebp - 0xd4]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0xa4]
push str.StringFileInfo_04x_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa4]
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4fef07
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00401c40
push 1
push 0x59c92c
lea ecx, [ebp - 0x48]
call fcn.00405220
mov edx, dword [ebp - 0xd0]
push 0xffffffffffffffff
push ebx
push edx
lea ecx, [ebp - 0x48]
call fcn.00405110
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x4fef52
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0xe0]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4fef9c
push 1
push str.mailru::resource::version_info
push str.Resource.cpp
push 0x7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc8]
call fcn.004053a0
push 0x5ccbe8
lea eax, [ebp - 0xc8]
push eax
call fcn.0055b802
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xdc]
lea ecx, [eax + ecx*2]
push edx
push ecx
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004150f0
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], eax
jne 0x4ff002
push 1
push str.mailru::resource::version_info
push str.Resource.cpp
push 0x7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc8]
call fcn.004053a0
push 0x5ccbe8
lea eax, [ebp - 0xc8]
push eax
call fcn.0055b802
cmp word [eax - 2], bx
je 0x4ff01d
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xd0], ebx
call fcn.004ff420
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0xdc]
push edx
mov ecx, esi
call fcn.00401ec0
lea ecx, [ebp - 0x20]
call fcn.0041aed0
lea ecx, [ebp - 0x48]
call fcn.00413b90
lea ecx, [ebp - 0x58]
call fcn.0041aed0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055bc32
mov esp, ebp
pop ebp
ret