Function at 0x528480
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x631bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
push 6
lea eax, [ebp - 0x2c]
push eax
call fcn.00412530
mov ecx, eax
call fcn.0040c9e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x528511
lea ecx, [ebp - 0x2c]
call fcn.0040e5d0
push eax
push 0x653404
call fcn.00412530
push eax
call fcn.0040d040
add esp, 0xc
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov eax, dword [ebp - 0x50]
jmp 0x5286d9
mov ecx, dword [ebp - 0x6c]
add ecx, 0x2fc
call fcn.0052ba80
test eax, eax
jne 0x528554
push 0x653424
call fcn.00412530
push eax
call fcn.0040d040
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov eax, dword [ebp - 0x54]
jmp 0x5286d9
push 7
lea ecx, [ebp - 0x48]
push ecx
call fcn.00412530
mov ecx, eax
call fcn.0040c9e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5285e7
lea ecx, [ebp - 0x48]
call fcn.0040e5d0
push eax
call fcn.00432f80
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5285e7
lea ecx, [ebp - 0x48]
call fcn.0040e5d0
push eax
push 0x65343c
call fcn.00412530
push eax
call fcn.0040d040
add esp, 0xc
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov eax, dword [ebp - 0x58]
jmp 0x5286d9
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x5c], esp
lea eax, [ebp - 0x48]
push eax
push edx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x6c]
call fcn.00527b30
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 3
jl 0x528657
mov edx, dword [ebp - 0x4c]
push edx
push str.X__W
call fcn.00412530
push eax
call fcn.0040d040
add esp, 0xc
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov eax, dword [ebp - 0x60]
jmp 0x5286d9
mov eax, 3
sub eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 0x314], eax
mov ecx, dword [ebp - 0x6c]
add ecx, 0x2fc
call fcn.0052ba80
test eax, eax
jne 0x5286b4
push 0x653474
call fcn.00412530
push eax
call fcn.0040d040
add esp, 8
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov eax, dword [ebp - 0x64]
jmp 0x5286d9
mov dword [ebp - 0x68], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret