Function at 0x501fa0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x60a070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0
push edi
mov edi, edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x501fd6
mov eax, dword [esi]
jmp 0x501fd8
mov eax, esi
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x5021a9
push ebx
call fcn.0055f6c6
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x14], 8
jb 0x502003
mov ecx, dword [esi]
jmp 0x502005
mov ecx, esi
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 0x50218d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5c0e8c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x5020f9
cmp dword [ebp - 0xc], 0
je 0x502084
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0xfeef04bd
jne 0x50218d
movzx eax, word [ecx + 0xa]
mov dword [edi], eax
movzx eax, word [ecx + 8]
mov dword [edi + 4], eax
movzx eax, word [ecx + 0xe]
mov dword [edi + 8], eax
movzx eax, word [ecx + 0xc]
push ebx
mov dword [edi + 0xc], eax
call fcn.0055eec5
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x615408]
test ecx, ecx
je 0x5020df
movups xmm0, xmmword [esi]
sub esp, 0x18
mov eax, esp
push str.Failed_to_retrieve_size_information_of_file_at_path_while_getting_its_version_:_s_Error
push 0x5c0ec0
push 0x5c0ec0
push str.FileUtils
movups xmmword [eax], xmm0
push str.OOBEUtils
movq xmm0, qword [esi + 0x10]
push 0x32
movq qword [eax + 0x10], xmm0
call ecx
add esp, 0x30
push ebx
call fcn.0055eec5
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov edx, dword [0x61540c]
test edx, edx
je 0x50218d
sub esp, 0x18
mov eax, esp
push str.Failed_to_retrieve_size_information_of_file_at_path_while_getting_its_version_:_s_Error
jmp 0x502168
mov ecx, dword [0x615408]
test ecx, ecx
je 0x502154
movups xmm0, xmmword [esi]
sub esp, 0x18
mov eax, esp
push str.Failed_to_retrieve_version_information_of_file_at_path_:_s_Error
push 0x5c0ec0
push 0x5c0ec0
push str.FileUtils
movups xmmword [eax], xmm0
push str.OOBEUtils
movq xmm0, qword [esi + 0x10]
push 0x32
movq qword [eax + 0x10], xmm0
call ecx
add esp, 0x30
push ebx
call fcn.0055eec5
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov edx, dword [0x61540c]
test edx, edx
je 0x50218d
sub esp, 0x18
mov eax, esp
push str.Failed_to_retrieve_version_information_of_file_at_path_:_s_Error
movups xmm0, xmmword [esi]
mov ecx, dword [edx]
push str.FileUtils
push 0x5c0ec0
movups xmmword [eax], xmm0
push 0x32
movq xmm0, qword [esi + 0x10]
push edx
movq qword [eax + 0x10], xmm0
call dword [ecx + 0x34]
add esp, 0x2c
push ebx
call fcn.0055eec5
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov eax, dword [0x615408]
test eax, eax
je 0x5021ee
cmp dword [esi + 0x14], 8
jb 0x5021ba
mov esi, dword [esi]
push esi
push str.Failed_to_get_version_of_file_at_path_:_s_Error
push 0x5c0ec0
push 0x5c0ec0
push str.FileUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x50221b
cmp dword [esi + 0x14], 8
jb 0x502200
mov esi, dword [esi]
mov eax, dword [ecx]
push esi
push str.Failed_to_get_version_of_file_at_path_:_s_Error
push str.FileUtils
push 0x5c0ec0
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret