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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4cb9
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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, ecx
mov dword [ebp - 0x14], 0
test ebx, ebx
je 0x525aa9
mov eax, dword [ebx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x525aa9
push 0x644da0
mov ecx, edi
call fcn.00547490
test al, al
je 0x5258a6
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 4]
call eax
test al, al
je 0x525878
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
push eax
lea ecx, [ebp - 0x34]
call fcn.005456c0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
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 - 0x34]
cmp edi, 0xffffffff
setne byte [ebp - 0xd]
test eax, eax
je 0x525840
push 2
push eax
call fcn.0056f898
add esp, 8
cmp byte [ebp - 0xd], 0
je 0x525aa9
push 0x40
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x14], eax
push ebx
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00528090
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 0x40
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x14], eax
push ebx
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00528090
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00548f30
mov ecx, eax
call fcn.00549210
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 3
test eax, eax
je 0x525a67
push eax
lea ecx, [ebp - 0x24]
call fcn.00546210
push str.UgmDrmBlazeExe.exe
lea ecx, [ebp - 0x3c]
call fcn.005455a0
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00546600
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00500b70
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
call fcn.005456c0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.00548960
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
mov bl, al
call fcn.00500b70
test bl, bl
je 0x525a64
push edi
lea ecx, [ebp - 0x34]
call fcn.005456c0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x2c]
call fcn.005456c0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x28], esi
jle 0x525a4d
cmp dword [ebp - 0x30], esi
jle 0x525a4d
lea ecx, [ebp - 0x2c]
call fcn.00546d80
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
push edi
call ebx
push 2
push edi
mov esi, eax
call fcn.0056f898
add esp, 8
cmp esi, 0xffffffff
je 0x525a4d
lea ecx, [ebp - 0x34]
call fcn.00546d80
mov esi, eax
push esi
call ebx
push 2
push esi
mov edi, eax
call fcn.0056f898
add esp, 8
cmp edi, 0xffffffff
je 0x525a4d
push str.__s_
lea ecx, [ebp - 0x18]
call fcn.005455a0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
push ecx
push eax
call fcn.00545b40
add esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00500b70
push 0x30
call fcn.0056f5ce
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.005456c0
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0xb
push eax
lea ecx, [edi + 4]
mov dword [edi], vtable.OGameShellExternal.0
call fcn.00545740
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [edi + 0xc]
call fcn.00545740
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ecx, [ebp - 0x3c]
call fcn.00500b70
jmp 0x525a4f
xor edi, edi
lea ecx, [ebp - 0x2c]
call fcn.00500b70
lea ecx, [ebp - 0x34]
call fcn.00500b70
mov esi, dword [ebp - 0x24]
jmp 0x525a86
mov esi, dword [ebp - 0x24]
push edi
lea ecx, [ebp - 0x3c]
call fcn.005456c0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
call fcn.00526190
lea ecx, [ebp - 0x3c]
mov edi, eax
call fcn.00500b70
test esi, esi
je 0x525a95
push 2
push esi
call fcn.0056f898
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret