Function at 0x569dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64717a
mov eax, dword fs:[0]
push eax
sub esp, 0x708
mov eax, dword [0x699fe8]
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.0056a790
cmp byte [ebx + 0xb8], 0
mov dword [ebx + 0xbc], 0
je 0x569f34
mov ecx, dword [0x6a9f38]
add ecx, 0x7c
push ecx
mov edi, str.SOFTWARE_
lea esi, [ebp - 0x5e8]
call fcn.00445160
add esp, 4
mov edi, eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 4], 0
call fcn.005b09f0
push eax
mov edi, str.Test3D
lea esi, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.0041e290
add esp, 4
cmp dword [ebp - 0x144], 0x10
jb 0x569e99
mov edx, dword [ebp - 0x158]
push edx
call fcn.0061c19a
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 0x569ece
mov eax, dword [ebp - 0x5e4]
push eax
call fcn.0061c19a
add esp, 4
cmp dword [ebp - 0x128], esi
mov eax, dword [ebp - 0x13c]
jae 0x569ee2
lea eax, [ebp - 0x13c]
push edi
lea ecx, [ebx + 0x1c]
push ecx
push edi
push 0xf003f
push edi
push 0x65540c
push edi
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp - 0x128], esi
jb 0x569f17
mov edx, dword [ebp - 0x13c]
push edx
call fcn.0061c19a
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 0x569fcf
mov eax, dword [0x6a9f3c]
push str.DirectDrawCreateEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x569fb2
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.00404330
lea eax, [ebp - 0x140]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0056a820
cmp dword [ebp - 0x128], 0x10
mov bl, al
jb 0x569fab
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.0061c19a
add esp, 4
mov al, bl
jmp 0x56a74c
push 0
push 0x6715b4
lea ecx, [ebx + 4]
push ecx
push 0
call eax
mov ecx, str.DirectDrawCreateEx
mov edi, eax
call fcn.0056a850
jmp 0x569fda
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.0059aab0
test al, al
jne 0x56a07f
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.0056a850
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 0x56a040
sub eax, edx
push eax
lea edx, [ebp - 0x58c]
push edx
lea ecx, [ebx + 0x30]
call fcn.00404330
lea eax, [ebp - 0x38c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x56a064
sub eax, edx
push eax
lea eax, [ebp - 0x38c]
push eax
lea ecx, [ebx + 0x4c]
call fcn.00404330
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.GDI42.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 0x56a19a
push eax
lea esi, [ebp - 0x5b4]
call fcn.005ae180
add esp, 4
mov edi, 0x10
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], edi
jb 0x56a122
mov eax, dword [eax + 4]
jmp 0x56a125
add eax, 4
push eax
push str.GetAvailableVidMem_failed:__s
lea esi, [ebp - 0x140]
call fcn.005b0ca0
add esp, 8
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0056a830
cmp dword [ebp - 0x128], edi
jb 0x56a15b
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.0061c19a
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 0x56a248
mov edx, dword [ebp - 0x5b0]
push edx
call fcn.0061c19a
add esp, 4
jmp 0x56a248
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
jmp 0x56a210
cmp eax, dword [ebx + 0xb4]
jae 0x56a248
push str.Low_video_memory.
lea ecx, [ebp - 0x5b4]
call fcn.00404450
lea eax, [ebp - 0x5b4]
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.0056a830
lea ecx, [ebp - 0x5b4]
mov byte [ebp - 4], 2
call fcn.00404420
cmp byte [ebx + 0xb8], 0
je 0x56a26a
mov edi, ebx
call fcn.00569840
test al, al
je 0x56a263
xor al, al
jmp 0x56a74c
mov byte [ebx + 0xb9], 1
push 0
push 0x65540c
lea ecx, [ebx + 0x78]
call fcn.00404330
push 0
push 0x65540c
lea ecx, [ebx + 0x94]
call fcn.00404330
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.00403e20
push 2
push 0x671ca4
lea ecx, [ebp - 0x15c]
push ecx
xor eax, eax
mov byte [ebp - 4], 8
call fcn.0059c010
cmp eax, 0xffffffff
jne 0x56a363
push 0x104
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x56a363
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.00404450
lea edi, [ebp - 0x5b4]
lea eax, [ebp - 0x710]
mov byte [ebp - 4], 9
call fcn.005b0a80
lea ecx, [ebp - 0x15c]
push ecx
push eax
lea esi, [ebp - 0x140]
mov byte [ebp - 4], 0xa
call fcn.0041e340
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0xb
call fcn.00403e20
mov ecx, esi
call fcn.00404420
lea ecx, [ebp - 0x710]
call fcn.00404420
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.00404420
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 0x56a38a
lea eax, [ebp - 0x158]
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x56a3e9
lea edx, [ebp - 0x5bc]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x56a3e2
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x5bc]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x56a3e2
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 0x56a3f3
mov edi, dword [ebx + 0x50]
jmp 0x56a3f6
lea edi, [ebx + 0x50]
push ebx
call fcn.00569d10
test al, al
jmp 0x56a449
mov eax, dword [ebx + 4]
mov edx, dword [eax]
lea ecx, [ebx + 0x14]
push ecx
push 0x6715e4
push eax
mov eax, dword [edx]
call eax
mov ecx, str.QueryInterface_IID_IDirect3D7
mov edi, eax
call fcn.0056a850
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.0056a850
push 0x7c
lea ecx, [ebp - 0x6f4]
push 0
push ecx
call fcn.00626020
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.0056a850
mov eax, dword [ebp - 0x6ec]
mov edi, dword [ebp - 0x6e8]
push eax
lea eax, [ebx + 0x68]
call fcn.00568f70
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 0x6715f4
push eax
call edx
mov ecx, str.CreateDevice
mov edi, eax
call fcn.0056a850
mov eax, dword [ebx + 0x18]
lea edx, [ebp - 0x598]
push edx
mov dword [ebp - 0x598], 0
mov ecx, dword [eax]
push 0x56a770
push eax
mov eax, dword [ecx + 0x10]
call eax
mov ecx, str.EnumTextureFormats
mov edi, eax
call fcn.0056a850
test byte [ebp - 0x598], 1
jne 0x56a5f3
push str.A8R8G8B8_texture_format_not_supported.
lea ecx, [ebp - 0x140]
call fcn.00404450
lea eax, [ebp - 0x140]
mov ecx, ebx
mov byte [ebp - 4], 0xd
call fcn.0056a830
mov esi, 0x10
mov byte [ebp - 4], 8
cmp dword [ebp - 0x128], esi
jb 0x56a5a1
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.0061c19a
add esp, 4
test byte [ebp - 0x598], 2
jne 0x56a5ea
push str.A4R4G4B4_and_A8R8G8B8_texture_formats_not_supported.
lea ecx, [ebp - 0x5b4]
call fcn.00404450
lea eax, [ebp - 0x5b4]
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.0056a820
lea ecx, [ebp - 0x5b4]
mov bl, al
call fcn.00404420
lea ecx, [ebp - 0x15c]
call fcn.00404420
mov al, bl
jmp 0x56a74c
mov byte [0x6a9f53], 0
jmp 0x56a5ff
mov byte [0x6a9f53], 1
mov esi, 0x10
push 0x7c
lea edx, [ebp - 0x674]
push 0
push edx
call fcn.00626020
mov eax, 0x40
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x66c], eax
add esp, 0xc
cmp byte [0x6a9f53], 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 0x56a695
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 0x56a6c3
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.0056a850
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.0056a850
cmp dword [ebp - 0x144], esi
jb 0x56a722
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.0061c19a
add esp, 4
mov al, 1
jmp 0x56a74c
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.0061efd1
mov esp, ebp
pop ebp
ret 4