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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x63a404]
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 byte [ebp - 0xd], 0
call fcn.00547a60
test al, al
je 0x507b31
push 0x44
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0x21
call fcn.0056ea97
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.00584f75
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 0x63dc40
call fcn.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x507604
push 2
push eax
call fcn.0056ea89
add esp, 8
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.005448d0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00545f90
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push edi
mov esi, eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp esi, 0xffffffff
setne byte [ebp - 0xe]
test eax, eax
je 0x507654
push 2
push eax
call fcn.0056ea89
add esp, 8
cmp byte [ebp - 0xe], 0
mov dword [ebp - 0x2c], 0
je 0x507aaa
push 0x3e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0x1e
call fcn.0056ea97
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.00584f75
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 0x63dc40
call fcn.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5076e3
push 2
push eax
call fcn.0056ea89
add esp, 8
push dword [ebp + 0x18]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0xd], 1
call fcn.005448d0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 4
call fcn.00545f90
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp edi, 0xffffffff
setne byte [ebp - 0xe]
test eax, eax
je 0x507737
push 2
push eax
call fcn.0056ea89
add esp, 8
cmp byte [ebp - 0xe], 0
mov dword [ebp - 0x2c], 0
je 0x507a13
push 0x46
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0x22
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push str.Game__d_Drm_Launch_Command_exists.
inc eax
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00584f75
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], 5
push eax
push 0x8e7
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63dc40
call fcn.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5077c6
push 2
push eax
call fcn.0056ea89
add esp, 8
mov ecx, dword [ebp + 0x1c]
push 0x63de78
call fcn.005463a0
test al, al
jne 0x5079fe
push 0xe
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 6
call fcn.0056ea97
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.00584f75
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
push 0x63e098
mov dword [ebp - 4], 7
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
push eax
call fcn.00544d50
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
add esp, 0x24
test eax, eax
je 0x50785c
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
test esi, esi
je 0x50796c
mov eax, dword [0x63e09c]
add eax, 2
cmp dword [esi + 4], eax
jle 0x50796c
push esi
lea ecx, [ebp - 0x20]
call fcn.005448d0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 8
call fcn.00547b70
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.004ffe40
lea ecx, [ebp - 0x20]
test bl, bl
je 0x5078ea
push str.Game__d_Game_Config_Location_exists.
call fcn.005447b0
push dword [ebp - 0x14]
mov dword [ebp - 4], 9
push eax
push 0x8f8
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63dc40
call fcn.0054faa0
add esp, 0x18
lea ecx, [ebp - 0x20]
call fcn.004ffe40
mov bl, byte [ebp - 0xd]
jmp 0x50793f
push str.Game__d_Game_Config_Location_does_not_exist._Removing_game_...
call fcn.005447b0
push dword [ebp - 0x14]
mov dword [ebp - 4], 0xa
push eax
push 0x8fc
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63dc40
call fcn.0054faa0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004ffe40
mov edx, dword [ebp + 0x10]
xor bl, bl
mov ecx, dword [ebp + 0xc]
push 0
push dword [ebp + 0x14]
call fcn.0050c1a0
add esp, 8
mov eax, dword [esi]
test eax, eax
je 0x507956
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
mov al, bl
jmp 0x507bd5
push 0x52
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x28
call fcn.0056ea97
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.00584f75
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], 0xb
push eax
push 0x904
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63dc40
call fcn.0054faa0
mov eax, dword [ebp - 0x2c]
add esp, 0x30
test eax, eax
je 0x5079ea
push 2
push eax
call fcn.0056ea89
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 0x7a
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x3c
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push str.Game__d_Drm_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.00584f75
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], 6
push eax
push 0x8eb
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63dc40
call fcn.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x507a91
push 2
push eax
call fcn.0056ea89
add esp, 8
mov edx, dword [ebp + 0x10]
xor bl, bl
mov ecx, dword [ebp + 0xc]
push 0
push dword [ebp + 0x14]
call fcn.0050c1a0
mov al, bl
jmp 0x507bd5
push 0x72
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x38
call fcn.0056ea97
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.00584f75
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 0x63dc40
call fcn.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x507bc2
push 2
push eax
call fcn.0056ea89
add esp, 8
jmp 0x507bc2
push 0x78
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0x3b
call fcn.0056ea97
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.00584f75
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], 0xc
push eax
push 0x90b
push str.GameManager::validateGameFiles
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcgamemanager.cpp
push 0x63dc40
call fcn.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x507bbb
push 2
push eax
call fcn.0056ea89
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.0050c1a0
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