Function at 0x90e6e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x98eb88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push str.vgsvcPageSharingRegisterModule_n
push 3
mov eax, dword [esi + 0x38]
mov ebx, dword [esi + 0x3c]
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x30c], eax
call fcn.00902480
add esp, 8
lea eax, [ebp - 0x344]
lea edi, [esi + 0x144]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x90e75a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.vgsvcPageSharingRegisterModule:_GetFileVersionInfoSize_failed_with__d_n
push 3
call fcn.00902480
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00901200
mov esp, ebp
pop ebp
ret
push str.D:_tinderbox_add_7.0_srcVBoxAdditionscommonVBoxServiceVBoxServicePageSharing.cpp
push esi
call fcn.0091be60
add esp, 8
mov dword [ebp - 0x318], eax
test eax, eax
je 0x90ea4c
push eax
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x90e79f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.vgsvcPageSharingRegisterModule:_GetFileVersionInfo_failed_with__d_n
push 3
call fcn.00902480
add esp, 0xc
jmp 0x90ea3e
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x324]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x318]
call sub.VERSION.dll_VerQueryValueA
mov edi, dword [ebp - 0x320]
test eax, eax
je 0x90ea27
cmp edi, 4
jb 0x90ea27
mov eax, dword [ebp - 0x314]
xor esi, esi
add eax, 0x14
shr edi, 2
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x308], eax
mov byte [eax], 0
test edi, edi
je 0x90e86c
lea esp, [esp]
mov eax, dword [ebp - 0x324]
lea ecx, [eax + esi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileVersion
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.00915890
add esp, 0x14
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x318]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x90e856
inc esi
cmp esi, edi
jb 0x90e800
jmp 0x90e86c
push dword [ebp - 0x31c]
push 0x10
push dword [ebp - 0x308]
call fcn.00925b50
add esp, 0xc
cmp esi, edi
jne 0x90e884
push str.vgsvcPageSharingRegisterModule:_no_file_version_found__n
push 3
call fcn.00902480
add esp, 8
jmp 0x90ea3e
xor edi, edi
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x308], edi
je 0x90ea05
mov ecx, dword [ebp - 0x30c]
lea edi, [ebp - 0x2fc]
push 0x1c
lea eax, [ebp - 0x340]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x90e9ed
cmp dword [ebp - 0x330], 0x1000
jne 0x90e96b
cmp dword [ebp - 0x328], 0x1000000
jne 0x90e96b
mov eax, dword [ebp - 0x32c]
sub eax, 2
je 0x90e8ef
sub eax, 0xe
je 0x90e8ef
sub eax, 0x10
jne 0x90e96b
mov eax, dword [ebp - 0x314]
mov edx, dword [ebp - 0x340]
mov ecx, edx
mov esi, dword [ebp - 0x334]
mov dword [ebp - 0x30c], ecx
cmp edx, dword [eax + 0x38]
je 0x90e94d
lea eax, [esi + edx]
cmp edx, eax
jae 0x90e94d
jmp 0x90e920
mov eax, dword [ebp - 0x30c]
mov al, byte [eax]
mov byte [ebp - 0x30d], al
mov esi, dword [ebp - 0x334]
add ecx, 0x1000
mov edx, dword [ebp - 0x340]
mov dword [ebp - 0x30c], ecx
lea eax, [esi + edx]
cmp ecx, eax
jb 0x90e920
mov eax, dword [ebp - 0x308]
inc eax
mov dword [edi - 8], edx
mov dword [edi - 4], 0
mov dword [edi], esi
add edi, 0x10
mov dword [ebp - 0x308], eax
jmp 0x90e97d
mov esi, dword [ebp - 0x334]
mov edx, dword [ebp - 0x340]
mov eax, dword [ebp - 0x308]
lea ecx, [esi + edx]
cmp ebx, esi
jbe 0x90e993
sub ebx, esi
cmp eax, 0x20
jae 0x90e993
test ebx, ebx
jne 0x90e8a2
mov edi, dword [ebp - 0x308]
mov ebx, dword [ebp - 0x314]
push edi
push dword [ebx + 0x3c]
lea eax, [ebx + 0x14]
push dword [ebx + 0x38]
lea esi, [ebx + 0x44]
push eax
push esi
push str.vgsvcPageSharingRegisterModule:_VbglR3RegisterSharedModule__s__s_base_p_size_x_cregions_d_n
push 3
call fcn.00902480
lea eax, [ebp - 0x304]
push eax
push edi
push dword [ebx + 0x3c]
lea eax, [ebx + 0x14]
push 0
push dword [ebx + 0x38]
push eax
push esi
call fcn.0094bc70
add esp, 0x38
test eax, eax
jns 0x90ea3e
push eax
push str.vgsvcPageSharingRegisterModule:_VbglR3RegisterSharedModule_failed_with__Rrc_n
push 3
call fcn.00902480
add esp, 0xc
jmp 0x90ea3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.vgsvcPageSharingRegisterModule:_VirtualQueryEx_failed_with__d_n
push 3
call fcn.00902480
add esp, 0xc
jmp 0x90e993
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x300], edi
mov edi, 1
mov dword [ebp - 0x304], eax
mov dword [ebp - 0x2fc], ebx
jmp 0x90e999
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push eax
push str.vgsvcPageSharingRegisterModule:_VerQueryValue_failed_with__d__cb_d__n
push 3
call fcn.00902480
add esp, 0x10
push dword [ebp - 0x318]
call fcn.0091be80
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00901200
mov esp, ebp
pop ebp
ret