Function at 0x508270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1d11
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x14], ebx
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 0xd], 0
call fcn.00548850
test al, al
je 0x50885c
push 0x44
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0x21
call fcn.0056f8a6
mov ecx, eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push str.Game__d_Install_Directory_exists.
inc eax
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
push ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], edx
push eax
push 0x8d7
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63ec80
call fcn.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x50833b
push 2
push eax
call fcn.0056f898
add esp, 8
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.005456c0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00546d80
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp edi, 0xffffffff
setne byte [ebp - 0xe]
test eax, eax
je 0x50838b
push 2
push eax
call fcn.0056f898
add esp, 8
cmp byte [ebp - 0xe], 0
mov dword [ebp - 0x2c], 0
je 0x5087d5
push 0x3e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0x1e
call fcn.0056f8a6
mov ecx, eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push str.Game__d_Launch_Command_exists.
inc eax
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
push ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 2
push eax
push 0x8da
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63ec80
call fcn.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x50841a
push 2
push eax
call fcn.0056f898
add esp, 8
cmp byte [ebp + 0x20], 0
mov byte [ebp - 0xd], 1
je 0x508503
push dword [ebp + 0x18]
lea ecx, [ebp - 0x2c]
call fcn.005456c0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 1
call fcn.00548960
test al, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
setne bl
call fcn.00500b70
lea ecx, [ebp - 0x2c]
test bl, bl
je 0x5084aa
push str.Game__d_Drm_Launch_Command_exists.
call fcn.005455a0
mov ebx, dword [ebp - 0x14]
push ebx
push eax
push 0x8e9
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63ec80
mov dword [ebp - 4], 5
call fcn.00550890
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00500b70
jmp 0x508588
push str.Game__d_Drm_Launch_Command_does_not_exist._Removing_game_...
call fcn.005455a0
push dword [ebp - 0x14]
mov dword [ebp - 4], 6
push eax
push 0x8ed
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63ec80
call fcn.00550890
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00500b70
mov edx, dword [ebp + 0x10]
xor bl, bl
mov ecx, dword [ebp + 0xc]
push 0
push dword [ebp + 0x14]
call fcn.0050cf80
mov al, bl
jmp 0x508900
push 0x54
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0x29
call fcn.0056f8a6
mov ecx, eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push str.Game__d_Drm_Launch_Command_check_skipped.
inc eax
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
push ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 7
push eax
push 0x8f4
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63ec80
call fcn.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x508588
push 2
push eax
call fcn.0056f898
add esp, 8
mov ecx, dword [ebp + 0x1c]
push 0x63eeb8
call fcn.00547190
test al, al
jne 0x5087c0
push 0xe
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 6
call fcn.0056f8a6
mov ecx, eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push str._s___s
inc eax
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
push 0x63f0e0
mov dword [ebp - 4], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
push eax
call fcn.00545b40
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
add esp, 0x24
test eax, eax
je 0x50861e
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
test esi, esi
je 0x50872e
mov eax, dword [0x63f0e4]
add eax, 2
cmp dword [esi + 4], eax
jle 0x50872e
push esi
lea ecx, [ebp - 0x20]
call fcn.005456c0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 9
call fcn.00548960
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.00500b70
lea ecx, [ebp - 0x20]
test bl, bl
je 0x5086ac
push str.Game__d_Game_Config_Location_exists.
call fcn.005455a0
push dword [ebp - 0x14]
mov dword [ebp - 4], 0xa
push eax
push 0x8ff
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63ec80
call fcn.00550890
add esp, 0x18
lea ecx, [ebp - 0x20]
call fcn.00500b70
mov bl, byte [ebp - 0xd]
jmp 0x508701
push str.Game__d_Game_Config_Location_does_not_exist._Removing_game_...
call fcn.005455a0
push dword [ebp - 0x14]
mov dword [ebp - 4], 0xb
push eax
push 0x903
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63ec80
call fcn.00550890
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00500b70
mov edx, dword [ebp + 0x10]
xor bl, bl
mov ecx, dword [ebp + 0xc]
push 0
push dword [ebp + 0x14]
call fcn.0050cf80
add esp, 8
mov eax, dword [esi]
test eax, eax
je 0x508718
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
mov al, bl
jmp 0x508900
push 0x52
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x28
call fcn.0056f8a6
mov ecx, eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push str.Game__d_Game_Config_Location_is_invalid.
inc eax
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
push ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0xc
push eax
push 0x90b
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63ec80
call fcn.00550890
mov eax, dword [ebp - 0x2c]
add esp, 0x30
test eax, eax
je 0x5087ac
push 2
push eax
call fcn.0056f898
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x72
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x38
call fcn.0056f8a6
mov ecx, eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push str.Game__d_Launch_Command_does_not_exist._Removing_game_...
inc eax
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
push ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 3
push eax
push 0x8df
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63ec80
call fcn.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5088ed
push 2
push eax
call fcn.0056f898
add esp, 8
jmp 0x5088ed
push 0x78
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0x3b
call fcn.0056f8a6
mov ecx, dword [ebp - 0x30]
push 0xffffffffffffffff
push str.Game__d_Install_Directory_does_not_exist._Removing_game_...
inc ecx
mov dword [ebp - 0x34], eax
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x30]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x30], ecx
push ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0xd
push eax
push 0x912
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63ec80
call fcn.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x5088e6
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0
push dword [ebp + 0x14]
call fcn.0050cf80
mov al, byte [ebp - 0xd]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret