Function at 0x507620
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x5cc9b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], eax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x50764e
mov eax, dword [edi]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x50770e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
je 0x5076db
sub esp, 8
mov eax, edi
cmp dword [edi + 0x14], 8
mov ecx, esp
jb 0x50767d
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0050d0c0
add esp, 0xc
mov esi, eax
push str.GetFileVersionInfoSize:
call sub.KERNEL32.dll_GetLastError
push eax
push 1
push 0x1f
push str..._.._.._util_win_module_version.cc
push str.bool___cdecl_crashpad::GetModuleVersionAndType_const_class_base::FilePath__struct_tagVS_FIXEDFILEINFO__
lea ecx, [ebp - 0xdc]
call fcn.0050c390
push eax
call fcn.00439550
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x5076cb
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0049d120
add esp, 0xc
mov ebx, 3
test bl, 2
je 0x5076ee
lea ecx, [ebp - 0xdc]
and ebx, 0xfffffffd
call fcn.0050c5b0
test bl, 1
je 0x5076fb
lea ecx, [ebp - 0x1c]
call fcn.004166b0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514f0c
mov esp, ebp
pop ebp
ret
push eax
call fcn.004b9130
add esp, 4
mov esi, eax
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x507723
mov eax, dword [edi]
push esi
push dword [ebp - 0x24]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x5077b2
sub esp, 8
mov eax, edi
cmp dword [edi + 0x14], 8
mov ecx, esp
jb 0x507742
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0050d0c0
add esp, 0xc
mov edi, eax
push str.GetFileVersionInfo:
call sub.KERNEL32.dll_GetLastError
push eax
push 1
push 0x26
push str..._.._.._util_win_module_version.cc
push str.bool___cdecl_crashpad::GetModuleVersionAndType_const_class_base::FilePath__struct_tagVS_FIXEDFILEINFO__
lea ecx, [ebp - 0xdc]
call fcn.0050c390
push eax
call fcn.00439550
mov ecx, dword [edi + 0x10]
add esp, 8
cmp dword [edi + 0x14], 0x10
jb 0x507790
mov edi, dword [edi]
push ecx
push edi
push eax
call fcn.0049d120
add esp, 0xc
lea ecx, [ebp - 0xdc]
call fcn.0050c5b0
lea ecx, [ebp - 0x1c]
call fcn.004166b0
xor bl, bl
jmp 0x50782f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x55570c
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x507805
push str.VerQueryValue
call sub.KERNEL32.dll_GetLastError
push eax
push 1
push 0x30
push str..._.._.._util_win_module_version.cc
push str.bool___cdecl_crashpad::GetModuleVersionAndType_const_class_base::FilePath__struct_tagVS_FIXEDFILEINFO__
lea ecx, [ebp - 0xdc]
call fcn.0050c390
push eax
call fcn.00439550
add esp, 8
lea ecx, [ebp - 0xdc]
call fcn.0050c5b0
xor bl, bl
jmp 0x50782f
mov eax, dword [ebp - 0x20]
mov bl, 1
mov ecx, dword [ebp - 0x28]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [eax + 0x30]
mov dword [ecx + 0x30], eax
mov eax, dword [ecx + 0x18]
and dword [ecx + 0x1c], eax
test esi, esi
je 0x50783c
push esi
call fcn.004b9160
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00514f0c
mov esp, ebp
pop ebp
ret