Function at 0x494120
Capabilities:
Get file version info

Disassembly:
sub esp, 0x7dc
push ebx
push ebp
push esi
push edi
push str.VID:_Checking_for_available_video_modes
call fcn.0048fa80
mov eax, dword [0x4d4bec]
add esp, 4
cmp eax, 0xffffffff
jne 0x494412
push str.ddraw.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebp, ebp
mov dword [0x4f95d0], eax
cmp eax, ebp
je 0x494275
push str.DirectDrawCreate
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4f95d0]
mov dword [0x4f95cc], eax
lea eax, [esp + 0xe8]
push 0x103
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x2c]
lea eax, [esp + 0xe8]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebp
je 0x494270
lea edi, [eax + 0x20]
push edi
call fcn.0048bc10
add esp, 4
mov esi, eax
lea ecx, [esp + 0xe8]
push esi
push edi
push ebp
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
xor ecx, ecx
lea eax, [esp + 0x1ec]
mov edx, dword [esp + 0x14]
mov cx, word [edx]
push ecx
push str.StringFileInfo_04X04E4ProductVersion
push eax
call fcn.004b77e0
mov edx, dword [esp + 0x20]
xor ecx, ecx
add esp, 0xc
lea eax, [esp + 0x3ec]
mov cx, word [edx]
push ecx
push str.StringFileInfo_04X04B0ProductVersion
push eax
call fcn.004b77e0
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1ec]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x49424d
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x3f0]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x494267
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x5ec]
push ecx
push str._v_s
push edx
call fcn.004b77e0
add esp, 0xc
push esi
call fcn.0048bd90
add esp, 4
mov eax, dword [0x4f95d0]
cmp eax, ebp
mov bl, 1
je 0x494384
mov eax, dword [0x4f95cc]
cmp eax, ebp
je 0x494384
push ebp
push 0x4f9ba0
push ebp
call eax
test eax, eax
jne 0x494384
mov eax, dword [0x4f9ba0]
push 0x4f9ba4
push 0x4c83e0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x494384
lea edx, [esp + 0x5ec]
push edx
push str.VID:_____DirectDraw_s_found
call fcn.0048fa80
add esp, 8
lea eax, [esp + 0x1c]
push eax
call fcn.00497c40
add esp, 4
test al, al
je 0x49437e
mov eax, dword [esp + 0x20]
mov ecx, 0xa
cmp ecx, eax
mov eax, dword [esp + 0x1c]
sbb edx, edx
lea ecx, [esp + 0x68]
neg edx
shr eax, 0xa
push edx
push eax
push str.VID:_____Video_memory__uKb___uKb_Free___AGP_memory
push ecx
call fcn.004b77e0
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp eax, ebp
je 0x494343
mov edx, dword [esp + 0x28]
lea edi, [esp + 0x68]
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 + 0x74]
push eax
call fcn.004b77e0
add esp, 0x10
jmp 0x494371
mov edi, str._N_A
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x68]
push eax
call fcn.0048fa80
add esp, 4
mov byte [esp + 0x10], bl
jmp 0x4943a9
push str.VID:_____DirectDraw_not_found_or_too_old___Disabled
call fcn.0048fa80
mov ecx, dword [0x4f95d0]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4f95d0], ebp
mov byte [esp + 0x10], 0
mov edx, dword [esp + 0x10]
mov eax, dword [0x4f9ba4]
and edx, 0xff
cmp eax, ebp
mov dword [0x4d4bec], edx
je 0x4943e8
mov ecx, dword [eax]
push 0x4f9bb0
push 0x4c5810
push eax
call dword [ecx]
test eax, eax
jne 0x4943e8
push str.VID:_____Direct3D_found
call fcn.0048fa80
add esp, 4
mov byte [esp + 0x10], bl
jmp 0x4943fa
push str.VID:_____Direct3D_not_found___Disabled
call fcn.0048fa80
add esp, 4
mov byte [esp + 0x10], 0
mov edx, dword [esp + 0x10]
mov dword [0x4d4be4], ebp
and edx, 0xff
mov dword [0x4d4bf0], edx
jmp 0x49441f
push str.VID:_DirectDraw_check_skipped_on_user_request
call fcn.0048fa80
add esp, 4
mov eax, dword [0x4f9b44]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], 0x494660
je 0x494436
mov dword [esp + 0x14], eax
mov eax, dword [0x4f9b58]
cmp eax, ebx
je 0x494448
push eax
call fcn.0048bd90
add esp, 4
mov eax, dword [0x4d4bec]
mov dword [0x4f9b58], ebx
cmp eax, ebx
mov dword [0x4f9b5c], ebx
mov dword [0x4f9b64], ebx
jne 0x49446f
cmp dword [0x4d4be4], ebx
je 0x49452d
cmp dword [0x4f9b9c], ebx
jne 0x494490
mov eax, dword [0x4f9ba4]
push 0x497ba0
push ebx
mov dword [0x4f9b98], ebx
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x20]
cmp dword [0x4f9b98], ebx
jle 0x49452d
xor ebp, ebp
mov edx, dword [0x4f9b9c]
add edx, ebp
push edx
call dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x49451c
mov eax, dword [0x4f9b9c]
mov ecx, dword [0x4f9b64]
lea esi, [eax + ebp]
mov eax, dword [0x4f9b5c]
inc eax
cmp eax, ecx
mov dword [0x4f9b5c], eax
jle 0x494504
test ecx, ecx
lea eax, [ecx + ecx]
jg 0x4944db
mov eax, 0x10
mov edx, dword [0x4f9b58]
mov ecx, eax
shl ecx, 3
sub ecx, eax
mov dword [0x4f9b64], eax
shl ecx, 3
push ecx
push edx
call fcn.0048bd30
mov dword [0x4f9b58], eax
mov eax, dword [0x4f9b5c]
add esp, 8
mov edx, dword [0x4f9b58]
mov ecx, eax
shl ecx, 3
sub ecx, eax
lea edi, [edx + ecx*8 - 0x38]
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4f9b98]
inc ebx
add ebp, 0x38
cmp ebx, eax
jl 0x49449e
mov eax, dword [0x4d4be8]
test eax, eax
je 0x49462a
mov al, byte [0x4f9b1c]
test al, al
jne 0x49462a
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov byte [esp + 0x4d], al
mov byte [esp + 0x4e], al
mov byte [esp + 0x4f], al
mov al, 8
mov byte [esp + 0x4c], 4
mov byte [esp + 0x3c], al
mov ecx, dword [0x4d5008]
test ecx, ecx
je 0x49461c
mov eax, 0x4d5008
mov ebp, eax
mov edx, dword [eax]
xor ecx, ecx
mov cx, word [eax]
lea eax, [esp + 0x30]
shr edx, 0x10
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x494608
mov eax, dword [0x4f9b5c]
mov ecx, dword [0x4f9b64]
inc eax
cmp eax, ecx
mov dword [0x4f9b5c], eax
jle 0x4945ec
test ecx, ecx
lea eax, [ecx + ecx]
jg 0x4945c3
mov eax, 0x10
mov edx, dword [0x4f9b58]
mov ecx, eax
shl ecx, 3
sub ecx, eax
mov dword [0x4f9b64], eax
shl ecx, 3
push ecx
push edx
call fcn.0048bd30
mov dword [0x4f9b58], eax
mov eax, dword [0x4f9b5c]
add esp, 8
mov edx, dword [0x4f9b58]
mov ecx, eax
shl ecx, 3
sub ecx, eax
lea esi, [esp + 0x30]
lea edi, [edx + ecx*8 - 0x38]
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 4]
add ebp, 4
test ecx, ecx
mov eax, ebp
jne 0x494580
mov al, byte [esp + 0x3c]
shl al, 1
cmp al, 0x20
mov byte [esp + 0x3c], al
jbe 0x49456b
mov eax, dword [0x4f9b5c]
mov ecx, dword [0x4f9b58]
push 0x4946e0
push 0x38
push eax
push ecx
call fcn.004b82a0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7dc
ret