Function at 0x495bc0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x7a4
push esi
push edi
push str.ddraw.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4f3b80], eax
je 0x495e07
push str.DirectDrawCreate
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4f3b80]
mov dword [0x4f3b7c], eax
lea eax, [esp + 0xa8]
push 0x103
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x24]
lea eax, [esp + 0xa8]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x495cef
lea edi, [eax + 0x20]
push edi
call fcn.0048b010
add esp, 4
mov esi, eax
lea ecx, [esp + 0xa8]
push esi
push edi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
mov edx, dword [esp + 0xc]
xor ecx, ecx
lea eax, [esp + 0x3ac]
mov cx, word [edx]
push ecx
push str.StringFileInfo_04X04E4ProductVersion
push eax
call fcn.004b57c2
mov edx, dword [esp + 0x18]
xor ecx, ecx
lea eax, [esp + 0x1b8]
mov cx, word [edx]
push ecx
push str.StringFileInfo_04X04B0ProductVersion
push eax
call fcn.004b57c2
add esp, 0x18
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
lea eax, [esp + 0x3ac]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x495ccc
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1b0]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x495ce6
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x5ac]
push ecx
push str._v_s
push edx
call fcn.004b57c2
add esp, 0xc
push esi
call fcn.0048b120
add esp, 4
mov eax, dword [0x4f3b80]
test eax, eax
je 0x495e07
mov eax, dword [0x4f3b7c]
test eax, eax
je 0x495e07
push 0
push 0x4f4128
push 0
call eax
test eax, eax
jne 0x495e07
mov eax, dword [0x4f4128]
push 0x4f412c
push 0x4c43b0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x495e07
lea edx, [esp + 0x5ac]
push edx
push str.VID:_____DirectDraw_s_found
call fcn.0048edc0
lea eax, [esp + 0x1c]
push eax
call fcn.00495e40
add esp, 0xc
test al, al
je 0x495dfc
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, 0xa
cmp ecx, ebx
lea ecx, [esp + 0x2c]
sbb edx, edx
neg edx
shr eax, 0xa
push edx
push eax
push str.VID:_____Video_memory__uKb___uKb_Free___AGP_memory
push ecx
call fcn.004b57c2
mov eax, dword [esp + 0x30]
add esp, 0x10
test eax, eax
je 0x495dc0
mov edx, dword [esp + 0x24]
lea edi, [esp + 0x2c]
shr edx, 0xa
shr eax, 0xa
push edx
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str.__uKb___uKb_Free_
lea eax, [esp + ecx + 0x38]
push eax
call fcn.004b57c2
add esp, 0x10
jmp 0x495dee
mov edi, str._N_A
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x2c]
push eax
call fcn.0048edc0
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x7a4
ret
push str.VID:_____DirectDraw_not_found_or_too_old___Disabled
call fcn.0048edc0
mov ecx, dword [0x4f3b80]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov dword [0x4f3b80], 0
xor al, al
pop esi
add esp, 0x7a4
ret