Function at 0x509800
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc0
mov esi, dword [ebp + 8]
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x509823
mov eax, dword [esi]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x5098b9
mov edi, eax
push eax
call fcn.00528453
add esp, 4
cmp byte [esi + 0xb], 0
mov ecx, esi
jns 0x509848
mov ecx, dword [esi]
push eax
push edi
push 0
push ecx
mov edi, eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x509989
xor eax, eax
dec eax
lea ecx, [ebp - 0xc4]
mov dword [ecx], eax
lea edx, [ebp - 0xc8]
mov dword [edx], eax
push edx
push ecx
push 0x581fd6
mov esi, edi
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
setne bl
je 0x509a52
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc4]
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ecx + 0x10]
movups xmmword [eax + 0x10], xmm1
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
movups xmm1, xmmword [ecx + 0x20]
movups xmmword [eax + 0x20], xmm1
movups xmmword [eax], xmm0
mov ecx, dword [eax + 0x18]
and dword [eax + 0x1c], ecx
jmp 0x509a9e
xor ebx, ebx
cmp dword [0x59d910], 1
jg 0x509aad
cmp dword [0x599b48], 0
je 0x509aad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
je 0x509982
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xb8]
push eax
push 1
push 0x1f
push str....._third_partycrashpadcrashpadutilwinmodule_version.cc
call fcn.00471a00
lea eax, [ebp - 0xb0]
push 0x18
push str.GetFileVersionInfoSize:
push eax
call fcn.0042d698
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x509926
mov eax, dword [esi + 4]
mov esi, dword [esi]
xor ecx, ecx
lea ebx, [ebp - 0xc4]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
push ebx
push eax
push esi
call fcn.004648a0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x509955
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.0042d698
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x509977
push dword [ebp - 0xc4]
call fcn.00528424
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00471b70
xor ebx, ebx
jmp 0x509aad
xor ebx, ebx
cmp dword [0x59d910], 1
jg 0x509a4e
cmp dword [0x599b48], 0
mov eax, edi
je 0x509aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xb8]
push eax
push 1
push 0x26
push str....._third_partycrashpadcrashpadutilwinmodule_version.cc
call fcn.00471a00
lea eax, [ebp - 0xb0]
push 0x14
push str.GetFileVersionInfo:
push eax
call fcn.0042d698
add esp, 0xc
mov dword [ebp - 0xcc], eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x5099eb
mov eax, dword [esi + 4]
mov esi, dword [esi]
xor ecx, ecx
lea ebx, [ebp - 0xc4]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
push ebx
push eax
push esi
call fcn.004648a0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x509a1a
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push dword [ebp - 0xcc]
call fcn.0042d698
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x509a41
push dword [ebp - 0xc4]
call fcn.00528424
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00471b70
xor ebx, ebx
mov eax, edi
jmp 0x509aa0
cmp dword [0x59d910], 1
jg 0x509a9e
cmp dword [0x599b48], 0
je 0x509a9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp - 0xb8]
mov ecx, edi
push eax
push 1
push 0x30
push str....._third_partycrashpadcrashpadutilwinmodule_version.cc
call fcn.00471a00
lea eax, [ebp - 0xb0]
push 0xd
push str.VerQueryValue
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, edi
call fcn.00471b70
mov eax, esi
test eax, eax
je 0x509aad
push eax
call fcn.0052845c
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret