Function at 0x47bc43
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x4ab09c]
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 0x47bc76
mov ecx, dword [edi]
jmp 0x47bc78
mov ecx, edi
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x47bd1c
push 1
call fcn.00401e30
pop ecx
test al, al
je 0x47bcf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
je 0x47bcf1
call sub.KERNEL32.dll_GetLastError
push eax
push 1
push 0x1f
push str.c:_nwjs_src_third_partycrashpadcrashpadutilwinmodule_version.cc
lea ecx, [ebp - 0xec]
call fcn.00402680
push ecx
push ecx
mov ecx, esp
mov esi, eax
push edi
call fcn.004096e0
lea eax, [ebp - 0x1c]
push eax
call fcn.00413640
add esp, 0xc
push eax
lea eax, [esi + 0x10]
push str.GetFileVersionInfoSize:
push eax
call fcn.00406a20
pop ecx
pop ecx
push eax
call fcn.00406c70
pop ecx
pop ecx
push 3
pop ebx
test bl, 2
je 0x47bd04
lea ecx, [ebp - 0xec]
and ebx, 0xfffffffd
call fcn.004026b0
test bl, 1
je 0x47bd15
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00404530
xor al, al
jmp 0x47be50
push eax
call fcn.004524a3
cmp dword [edi + 0x14], 8
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
jb 0x47bd30
mov edi, dword [edi]
push esi
push dword [ebp - 0x24]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x47bdc7
push 1
call fcn.00401e30
pop ecx
test al, al
je 0x47bda0
call sub.KERNEL32.dll_GetLastError
push eax
push 1
push 0x26
push str.c:_nwjs_src_third_partycrashpadcrashpadutilwinmodule_version.cc
lea ecx, [ebp - 0xec]
call fcn.00402680
push ecx
push ecx
mov ecx, esp
mov edi, eax
push dword [ebp - 0x28]
call fcn.004096e0
lea eax, [ebp - 0x1c]
push eax
call fcn.00413640
add esp, 0xc
push eax
lea eax, [edi + 0x10]
push str.GetFileVersionInfo:
push eax
call fcn.00406a20
pop ecx
pop ecx
push eax
call fcn.00406c70
pop ecx
pop ecx
push 0xc
pop ebx
test bl, 8
je 0x47bdb3
lea ecx, [ebp - 0xec]
and ebx, 0xfffffff7
call fcn.004026b0
test bl, 4
je 0x47be27
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push ebx
push 1
call fcn.00404530
jmp 0x47be43
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x4a5330
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x47be2b
push 1
call fcn.00401e30
pop ecx
test al, al
je 0x47be17
call sub.KERNEL32.dll_GetLastError
push eax
push 1
push 0x31
push str.c:_nwjs_src_third_partycrashpadcrashpadutilwinmodule_version.cc
lea ecx, [ebp - 0xec]
call fcn.00402680
add eax, 0x10
push str.VerQueryValue
push eax
call fcn.00406a20
pop ecx
pop ecx
push 0x10
pop ebx
test bl, 0x10
je 0x47be27
lea ecx, [ebp - 0xec]
call fcn.004026b0
xor ebx, ebx
jmp 0x47be43
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 0x47be4e
push esi
call fcn.0045249e
pop ecx
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045248d
mov esp, ebp
pop ebp
ret