Function at 0x56fda0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65006a
mov eax, dword fs:[0]
push eax
sub esp, 0x708
mov eax, dword [0x6a9fa4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, ecx
mov edi, edx
mov esi, ebx
mov dword [ebp - 0x5c0], ebx
mov dword [ebp - 0x5cc], eax
mov dword [ebp - 0x594], edi
call fcn.00570760
cmp byte [ebx + 0xb8], 0
mov dword [ebx + 0xbc], 0
je 0x56ff04
mov ecx, dword [0x6ba058]
add ecx, 0x7c
push ecx
mov edi, str.SOFTWARE_
lea esi, [ebp - 0x5e8]
call fcn.00447340
add esp, 4
mov edi, eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 4], 0
call fcn.005b7100
push eax
mov edi, str.Test3D
lea esi, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.0041fc00
add esp, 4
cmp dword [ebp - 0x144], 0x10
jb 0x56fe69
mov edx, dword [ebp - 0x158]
push edx
call fcn.0062414c
add esp, 4
xor edi, edi
mov esi, 0x10
cmp dword [ebp - 0x5d0], esi
mov dword [ebp - 0x144], 0xf
mov dword [ebp - 0x148], edi
mov byte [ebp - 0x158], 0
jb 0x56fe9e
mov eax, dword [ebp - 0x5e4]
push eax
call fcn.0062414c
add esp, 4
cmp dword [ebp - 0x128], esi
mov eax, dword [ebp - 0x13c]
jae 0x56feb2
lea eax, [ebp - 0x13c]
push edi
lea ecx, [ebx + 0x1c]
push ecx
push edi
push 0xf003f
push edi
push 0x660950
push edi
push eax
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
cmp dword [ebp - 0x128], esi
jb 0x56fee7
mov edx, dword [ebp - 0x13c]
push edx
call fcn.0062414c
add esp, 4
mov dword [ebp - 0x12c], edi
mov edi, dword [ebp - 0x594]
mov dword [ebp - 0x128], 0xf
mov byte [ebp - 0x13c], 0
test edi, edi
mov dword [ebp - 4], 2
jne 0x56ff9f
mov eax, dword [0x6ba05c]
push str.DirectDrawCreateEx
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
jne 0x56ff82
push 0x15
push str.No_DirectDrawCreateEx
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x128], 0xf
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x13c], al
call fcn.00405590
lea eax, [ebp - 0x140]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.005707f0
cmp dword [ebp - 0x128], 0x10
mov bl, al
jb 0x56ff7b
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.0062414c
add esp, 4
mov al, bl
jmp 0x57071c
push 0
push 0x67fcf4
lea ecx, [ebx + 4]
push ecx
push 0
call eax
mov ecx, str.DirectDrawCreateEx
mov edi, eax
call fcn.00570820
jmp 0x56ffaa
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
mov dword [ebx + 4], edi
lea eax, [ebx + 0x4c]
lea ecx, [ebx + 0x30]
lea esi, [ebx + 0x20]
call fcn.005a0c30
test al, al
jne 0x57004f
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x58c]
push edx
push eax
mov eax, dword [ecx + 0x6c]
call eax
mov ecx, str.GetDeviceIdentifier
mov edi, eax
call fcn.00570820
mov ecx, dword [ebp - 0x174]
mov edx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x16c]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x168]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
lea eax, [ebp - 0x58c]
mov dword [esi + 0xc], ecx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x570010
sub eax, edx
push eax
lea edx, [ebp - 0x58c]
push edx
lea ecx, [ebx + 0x30]
call fcn.00405590
lea eax, [ebp - 0x38c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x570034
sub eax, edx
push eax
lea eax, [ebp - 0x38c]
push eax
lea ecx, [ebx + 0x4c]
call fcn.00405590
xor eax, eax
mov dword [ebp - 0x5dc], eax
push eax
mov dword [ebp - 0x5d8], eax
mov dword [ebp - 0x5d4], eax
mov dword [ebp - 0x5d0], eax
mov dword [ebp - 0x5dc], 0x4000
call dword [sym.imp.user32.dll_GetDC]
mov edi, dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov esi, eax
push 8
push esi
call edi
push 0xa
push esi
mov dword [ebp - 0x5c8], eax
call edi
push 0xc
push esi
mov dword [ebp - 0x5c4], eax
call edi
push esi
push 0
mov edi, eax
call dword [sym.imp.user32.dll_ReleaseDC]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x5ec]
push edx
lea edx, [ebp - 0x594]
push edx
lea edx, [ebp - 0x5dc]
push edx
push eax
mov eax, dword [ecx + 0x5c]
call eax
test eax, eax
jge 0x57016a
push eax
lea esi, [ebp - 0x5b4]
call fcn.005b44d0
add esp, 4
mov edi, 0x10
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], edi
jb 0x5700f2
mov eax, dword [eax + 4]
jmp 0x5700f5
add eax, 4
push eax
push str.GetAvailableVidMem_failed:__s
lea esi, [ebp - 0x140]
call fcn.005b73b0
add esp, 8
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.00570800
cmp dword [ebp - 0x128], edi
jb 0x57012b
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.0062414c
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x59c], edi
mov dword [ebp - 0x128], 0xf
mov dword [ebp - 0x12c], 0
mov byte [ebp - 0x13c], 0
jb 0x570218
mov edx, dword [ebp - 0x5b0]
push edx
call fcn.0062414c
add esp, 4
jmp 0x570218
mov eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [ebp - 0x5c4]
imul eax, dword [ebp - 0x5c8]
add eax, dword [ebp - 0x594]
shr eax, 0x14
cmp eax, dword [ebx + 0xb0]
mov dword [ebp - 0x594], eax
jae 0x5701e0
push str.Not_enough_video_memory.
lea ecx, [ebp - 0x140]
call fcn.00405520
lea eax, [ebp - 0x140]
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.005707f0
cmp dword [ebp - 0x128], 0x10
mov bl, al
jb 0x56ff7b
mov eax, dword [ebp - 0x13c]
push eax
call fcn.0062414c
add esp, 4
mov al, bl
jmp 0x57071c
cmp eax, dword [ebx + 0xb4]
jae 0x570218
push str.Low_video_memory.
lea ecx, [ebp - 0x5b4]
call fcn.00405520
lea eax, [ebp - 0x5b4]
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.00570800
lea ecx, [ebp - 0x5b4]
mov byte [ebp - 4], 2
call fcn.00405480
cmp byte [ebx + 0xb8], 0
je 0x57023a
mov edi, ebx
call fcn.0056f810
test al, al
je 0x570233
xor al, al
jmp 0x57071c
mov byte [ebx + 0xb9], 1
push 0
push 0x660950
lea ecx, [ebx + 0x78]
call fcn.00405590
push 0
push 0x660950
lea ecx, [ebx + 0x94]
call fcn.00405590
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x30]
push eax
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x144], 0xf
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x158], 0
call fcn.00405660
push 2
push 0x6804fc
lea ecx, [ebp - 0x15c]
push ecx
xor eax, eax
mov byte [ebp - 4], 8
call fcn.005a22d0
cmp eax, 0xffffffff
jne 0x570333
push 0x104
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x570333
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.00405520
lea edi, [ebp - 0x5b4]
lea eax, [ebp - 0x710]
mov byte [ebp - 4], 9
call fcn.005b7190
lea ecx, [ebp - 0x15c]
push ecx
push eax
lea esi, [ebp - 0x140]
mov byte [ebp - 4], 0xa
call fcn.004472a0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0xb
call fcn.00405660
mov ecx, esi
call fcn.00405480
lea ecx, [ebp - 0x710]
call fcn.00405480
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.00405480
xor eax, eax
mov edi, 0x10
cmp dword [ebp - 0x144], edi
mov dword [ebp - 0x5bc], eax
mov dword [ebp - 0x5b8], eax
mov eax, dword [ebp - 0x158]
jae 0x57035a
lea eax, [ebp - 0x158]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5703b9
lea edx, [ebp - 0x5bc]
push edx
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileTime]
test eax, eax
je 0x5703b2
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x5bc]
push ecx
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
test eax, eax
je 0x5703b2
movzx edx, word [ebp - 0x134]
mov dword [ebx + 0xbc], edx
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebx + 0x64], edi
jb 0x5703c3
mov edi, dword [ebx + 0x50]
jmp 0x5703c6
lea edi, [ebx + 0x50]
push ebx
call fcn.0056fce0
test al, al
jne 0x570419
cmp dword [ebx + 0x64], 0x10
jb 0x5703db
mov eax, dword [ebx + 0x50]
jmp 0x5703de
lea eax, [ebx + 0x50]
push eax
push str.Unsupported_video_card:__s
lea esi, [ebp - 0x5b4]
call fcn.005b73b0
add esp, 8
mov ecx, ebx
mov byte [ebp - 4], 0xc
call fcn.00570800
mov byte [ebp - 4], 8
cmp dword [ebp - 0x59c], 0x10
jb 0x570419
mov eax, dword [ebp - 0x5b0]
push eax
call fcn.0062414c
add esp, 4
mov eax, dword [ebx + 4]
mov edx, dword [eax]
lea ecx, [ebx + 0x14]
push ecx
push 0x67fd24
push eax
mov eax, dword [edx]
call eax
mov ecx, str.QueryInterface_IID_IDirect3D7
mov edi, eax
call fcn.00570820
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x5cc]
mov ecx, dword [eax]
push 8
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov ecx, str.SetCooperativeLevel
mov edi, eax
call fcn.00570820
push 0x7c
lea ecx, [ebp - 0x6f4]
push 0
push ecx
call fcn.0062e530
add esp, 0xc
mov eax, 0x64
push 0
mov dword [ebp - 0x6e8], eax
mov dword [ebp - 0x6ec], eax
mov eax, dword [ebx + 4]
lea esi, [ebx + 8]
push esi
lea ecx, [ebp - 0x6f4]
mov dword [ebp - 0x6f4], 0x7c
mov dword [ebp - 0x6f0], 7
mov dword [ebp - 0x68c], 0x2040
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push ecx
push eax
call edx
mov ecx, str.CreateSurface__Primary_
mov edi, eax
call fcn.00570820
mov eax, dword [ebp - 0x6ec]
mov edi, dword [ebp - 0x6e8]
push eax
lea eax, [ebx + 0x68]
call fcn.0056ef40
mov eax, dword [ebx + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [ebx + 0x18]
push ecx
mov ecx, dword [esi]
push ecx
push 0x67fd34
push eax
call edx
mov ecx, str.CreateDevice
mov edi, eax
call fcn.00570820
mov eax, dword [ebx + 0x18]
lea edx, [ebp - 0x598]
push edx
mov dword [ebp - 0x598], 0
mov ecx, dword [eax]
push 0x570740
push eax
mov eax, dword [ecx + 0x10]
call eax
mov ecx, str.EnumTextureFormats
mov edi, eax
call fcn.00570820
test byte [ebp - 0x598], 1
jne 0x5705c3
push str.A8R8G8B8_texture_format_not_supported.
lea ecx, [ebp - 0x140]
call fcn.00405520
lea eax, [ebp - 0x140]
mov ecx, ebx
mov byte [ebp - 4], 0xd
call fcn.00570800
mov esi, 0x10
mov byte [ebp - 4], 8
cmp dword [ebp - 0x128], esi
jb 0x570571
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.0062414c
add esp, 4
test byte [ebp - 0x598], 2
jne 0x5705ba
push str.A4R4G4B4_and_A8R8G8B8_texture_formats_not_supported.
lea ecx, [ebp - 0x5b4]
call fcn.00405520
lea eax, [ebp - 0x5b4]
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.005707f0
lea ecx, [ebp - 0x5b4]
mov bl, al
call fcn.00405480
lea ecx, [ebp - 0x15c]
call fcn.00405480
mov al, bl
jmp 0x57071c
mov byte [0x6ba073], 0
jmp 0x5705cf
mov byte [0x6ba073], 1
mov esi, 0x10
push 0x7c
lea edx, [ebp - 0x674]
push 0
push edx
call fcn.0062e530
mov eax, 0x40
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x66c], eax
add esp, 0xc
cmp byte [0x6ba073], 0
mov eax, 0x20
mov dword [ebp - 0x674], 0x7c
mov dword [ebp - 0x670], 0x1007
mov dword [ebp - 0x60c], 0x1000
mov dword [ebp - 0x608], esi
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x628], 0x41
je 0x570665
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x610], 0xff000000
mov dword [ebp - 0x61c], 0xff0000
mov dword [ebp - 0x618], 0xff00
mov dword [ebp - 0x614], 0xff
jmp 0x570693
mov dword [ebp - 0x620], esi
mov dword [ebp - 0x610], 0xf000
mov dword [ebp - 0x61c], 0xf00
mov dword [ebp - 0x618], 0xf0
mov dword [ebp - 0x614], 0xf
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push 0
lea edx, [ebx + 0xc]
push edx
lea edx, [ebp - 0x674]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov ecx, str.CreateSurface__TextureSurface1_
mov edi, eax
call fcn.00570820
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push 0
add ebx, 0x10
push ebx
lea edx, [ebp - 0x674]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov ecx, str.CreateSurface__TextureSurfacd2_
mov edi, eax
call fcn.00570820
cmp dword [ebp - 0x144], esi
jb 0x5706f2
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.0062414c
add esp, 4
mov al, 1
jmp 0x57071c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00626d59
mov esp, ebp
pop ebp
ret 4