Function at 0x5cdb90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0
mov esi, edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x5cdbc6
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x5cddaf
push ebx
call fcn.00651294
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5cdbf1
mov ecx, dword [edi]
push eax
push ebx
push dword [ebp - 8]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x5cdd93
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x71b0d0
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x5cdced
cmp dword [ebp - 0xc], 0
je 0x5cdc70
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0xfeef04bd
jne 0x5cdd93
movzx eax, word [ecx + 0xa]
mov dword [esi], eax
movzx eax, word [ecx + 8]
mov dword [esi + 4], eax
movzx eax, word [ecx + 0xe]
mov dword [esi + 8], eax
movzx eax, word [ecx + 0xc]
push ebx
mov dword [esi + 0xc], eax
call fcn.0065109f
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov esi, dword [0x8076a4]
test esi, esi
je 0x5cdcd3
movups xmm0, xmmword [edi]
sub esp, 0x18
mov ecx, esi
mov eax, esp
push str.Failed_to_retrieve_size_information_of_file_at_path_while_getting_its_version_:_s_Error
push 0x71a27c
push 0x71a27c
push str.FileUtils
movups xmmword [eax], xmm0
push str.OOBEUtils
movq xmm0, qword [edi + 0x10]
push 0x32
movq qword [eax + 0x10], xmm0
call dword [0x707770]
call esi
add esp, 0x30
push ebx
call fcn.0065109f
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x8076a8]
test ecx, ecx
je 0x5cdd93
sub esp, 0x18
mov eax, esp
push str.Failed_to_retrieve_size_information_of_file_at_path_while_getting_its_version_:_s_Error
jmp 0x5cdd64
mov esi, dword [0x8076a4]
test esi, esi
je 0x5cdd50
movups xmm0, xmmword [edi]
sub esp, 0x18
mov ecx, esi
mov eax, esp
push str.Failed_to_retrieve_version_information_of_file_at_path_:_s_Error
push 0x71a27c
push 0x71a27c
push str.FileUtils
movups xmmword [eax], xmm0
push str.OOBEUtils
movq xmm0, qword [edi + 0x10]
push 0x32
movq qword [eax + 0x10], xmm0
call dword [0x707770]
call esi
add esp, 0x30
push ebx
call fcn.0065109f
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x8076a8]
test ecx, ecx
je 0x5cdd93
sub esp, 0x18
mov eax, esp
push str.Failed_to_retrieve_version_information_of_file_at_path_:_s_Error
movups xmm0, xmmword [edi]
mov esi, dword [ecx]
push str.FileUtils
push 0x71a27c
movups xmmword [eax], xmm0
mov esi, dword [esi + 0x34]
movq xmm0, qword [edi + 0x10]
push 0x32
push ecx
mov ecx, esi
movq qword [eax + 0x10], xmm0
call dword [0x707770]
call esi
add esp, 0x2c
push ebx
call fcn.0065109f
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov esi, dword [0x8076a4]
test esi, esi
je 0x5cddfd
cmp dword [edi + 0x14], 8
jb 0x5cddc1
mov edi, dword [edi]
push edi
push str.Failed_to_get_version_of_file_at_path_:_s_Error
push 0x71a27c
push 0x71a27c
push str.FileUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov eax, dword [0x8076a8]
test eax, eax
je 0x5cde33
cmp dword [edi + 0x14], 8
jb 0x5cde0e
mov edi, dword [edi]
mov esi, dword [eax]
push edi
push str.Failed_to_get_version_of_file_at_path_:_s_Error
push str.FileUtils
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x71a27c
push 0x32
push eax
call dword [0x707770]
call esi
add esp, 0x18
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00650ddc
mov esp, ebp
pop ebp
ret