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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3e99
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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, ecx
mov dword [ebp - 0x14], 0
test ebx, ebx
je 0x524cb9
mov eax, dword [ebx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x524cb9
push 0x643c80
mov ecx, edi
call fcn.005466a0
test al, al
je 0x524ab6
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 4]
call eax
test al, al
je 0x524a88
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
push eax
lea ecx, [ebp - 0x34]
call fcn.005448d0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
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 - 0x34]
cmp edi, 0xffffffff
setne byte [ebp - 0xd]
test eax, eax
je 0x524a50
push 2
push eax
call fcn.0056ea89
add esp, 8
cmp byte [ebp - 0xd], 0
je 0x524cb9
push 0x40
call fcn.0056e7bf
add esp, 4
mov dword [ebp - 0x14], eax
push ebx
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.005272a0
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.0056e7bf
add esp, 4
mov dword [ebp - 0x14], eax
push ebx
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.005272a0
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.00548140
mov ecx, eax
call fcn.00548420
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 3
test eax, eax
je 0x524c77
push eax
lea ecx, [ebp - 0x24]
call fcn.00545420
push str.UgmDrmBlazeExe.exe
lea ecx, [ebp - 0x3c]
call fcn.005447b0
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00545810
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.004ffe40
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
call fcn.005448d0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.00547b70
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
mov bl, al
call fcn.004ffe40
test bl, bl
je 0x524c74
push edi
lea ecx, [ebp - 0x34]
call fcn.005448d0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x2c]
call fcn.005448d0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x28], esi
jle 0x524c5d
cmp dword [ebp - 0x30], esi
jle 0x524c5d
lea ecx, [ebp - 0x2c]
call fcn.00545f90
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
push edi
call ebx
push 2
push edi
mov esi, eax
call fcn.0056ea89
add esp, 8
cmp esi, 0xffffffff
je 0x524c5d
lea ecx, [ebp - 0x34]
call fcn.00545f90
mov esi, eax
push esi
call ebx
push 2
push esi
mov edi, eax
call fcn.0056ea89
add esp, 8
cmp edi, 0xffffffff
je 0x524c5d
push str.__s_
lea ecx, [ebp - 0x18]
call fcn.005447b0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
push ecx
push eax
call fcn.00544d50
add esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004ffe40
push 0x30
call fcn.0056e7bf
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.005448d0
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.00544950
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [edi + 0xc]
call fcn.00544950
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.004ffe40
jmp 0x524c5f
xor edi, edi
lea ecx, [ebp - 0x2c]
call fcn.004ffe40
lea ecx, [ebp - 0x34]
call fcn.004ffe40
mov esi, dword [ebp - 0x24]
jmp 0x524c96
mov esi, dword [ebp - 0x24]
push edi
lea ecx, [ebp - 0x3c]
call fcn.005448d0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
call fcn.005253a0
lea ecx, [ebp - 0x3c]
mov edi, eax
call fcn.004ffe40
test esi, esi
je 0x524ca5
push 2
push esi
call fcn.0056ea89
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