Function at 0x4d19e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ebx
cmp dword [edi + 0x14], 8
jb 0x4d1a13
mov ecx, dword [edi]
jmp 0x4d1a15
mov ecx, edi
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4d1ab9
push 1
call fcn.00432780
pop ecx
test al, al
je 0x4d1a8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
je 0x4d1a8e
call sub.KERNEL32.dll_GetLastError
push eax
push 1
push 0x1f
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadutilwinmodule_version.cc
lea ecx, [ebp - 0xec]
call fcn.00431820
push ecx
push ecx
mov ecx, esp
mov esi, eax
push edi
call fcn.00415fd3
lea eax, [ebp - 0x1c]
push eax
call fcn.004447c0
add esp, 0xc
push eax
lea eax, [esi + 0x10]
push str.GetFileVersionInfoSize:
push eax
call fcn.00415b8c
pop ecx
pop ecx
push eax
call fcn.00415a50
pop ecx
pop ecx
push 3
pop ebx
test bl, 2
je 0x4d1aa1
lea ecx, [ebp - 0xec]
and ebx, 0xfffffffd
call fcn.00431af0
test bl, 1
je 0x4d1ab2
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0041b199
xor al, al
jmp 0x4d1bed
push eax
call fcn.0049d9a4
cmp dword [edi + 0x14], 8
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
jb 0x4d1acd
mov edi, dword [edi]
push esi
push dword [ebp - 0x24]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4d1b64
push 1
call fcn.00432780
pop ecx
test al, al
je 0x4d1b3d
call sub.KERNEL32.dll_GetLastError
push eax
push 1
push 0x26
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadutilwinmodule_version.cc
lea ecx, [ebp - 0xec]
call fcn.00431820
push ecx
push ecx
mov ecx, esp
mov edi, eax
push dword [ebp - 0x28]
call fcn.00415fd3
lea eax, [ebp - 0x1c]
push eax
call fcn.004447c0
add esp, 0xc
push eax
lea eax, [edi + 0x10]
push str.GetFileVersionInfo:
push eax
call fcn.00415b8c
pop ecx
pop ecx
push eax
call fcn.00415a50
pop ecx
pop ecx
push 0xc
pop ebx
test bl, 8
je 0x4d1b50
lea ecx, [ebp - 0xec]
and ebx, 0xfffffff7
call fcn.00431af0
test bl, 4
je 0x4d1bc4
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push ebx
push 1
call fcn.0041b199
jmp 0x4d1be0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x4d3bf4
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4d1bc8
push 1
call fcn.00432780
pop ecx
test al, al
je 0x4d1bb4
call sub.KERNEL32.dll_GetLastError
push eax
push 1
push 0x31
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadutilwinmodule_version.cc
lea ecx, [ebp - 0xec]
call fcn.00431820
add eax, 0x10
push str.VerQueryValue
push eax
call fcn.00415b8c
pop ecx
pop ecx
push 0x10
pop ebx
test bl, 0x10
je 0x4d1bc4
lea ecx, [ebp - 0xec]
call fcn.00431af0
xor ebx, ebx
jmp 0x4d1be0
mov edx, dword [ebp - 0x30]
mov bl, 1
mov esi, dword [ebp - 0x2c]
mov edi, edx
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0x18]
and dword [edx + 0x1c], eax
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4d1beb
push esi
call fcn.0049d89c
pop ecx
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret