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

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x634da8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x18]
push eax
mov edi, dword [ebp + 0xd4]
push edi
mov ecx, dword [esi + 0x300]
add ecx, 0x490
call fcn.00529660
test eax, eax
jne 0x52c47f
cmp edi, ebx
jl 0x52c47f
mov ecx, dword [esi + 0x300]
cmp edi, dword [ecx + 0xb0]
jge 0x52c47f
lea ecx, [ebp]
call fcn.0045a180
mov byte [ebp - 4], 1
push ebx
lea edx, [ebp]
push edx
push edi
mov ecx, dword [esi + 0x300]
add ecx, 8
call fcn.005cba30
test al, al
je 0x52c473
mov dword [ebp - 0x14], ebx
cmp dword [0x70f5d4], ebx
je 0x52c441
mov eax, dword [ebp + 0x5c]
cmp eax, ebx
jne 0x52c42a
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x52c441
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x52c46c
mov eax, dword [ebp + 0x5c]
cmp eax, ebx
jne 0x52c44b
lea eax, [ebp + 0x60]
push ebx
push eax
call fcn.0049bfe0
add esp, 8
test eax, eax
jne 0x52c4a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x52c46c
cmp dword [0x70f5d4], ebx
je 0x52c4a6
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0045a2d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0xcc
mov esp, ebp
pop ebp
ret 8
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp + 0x5c]
cmp eax, ebx
jne 0x52c4b7
lea eax, [ebp + 0x60]
xor ecx, ecx
cmp dword [0x704e18], ebx
setne cl
lea ecx, [ecx*8 + 0x18]
push ecx
lea edx, [esi + 0x338]
push edx
push eax
mov eax, dword [esi + 0x648]
push eax
lea ecx, [esi + 0x74]
call fcn.00534e00
mov edi, eax
cmp edi, ebx
je 0x52c5b5
push edi
call fcn.005d8cee
push ebx
push eax
lea ecx, [esi + 0x330]
call fcn.00439c70
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov ecx, dword [esi + 0x300]
add ecx, 0x490
mov edx, dword [ebp + 0xd4]
push edx
call fcn.00536c10
mov dword [eax], ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esi + 0x75c], 4
jne 0x52c5b5
mov ebx, dword [ebp + 0xd8]
test ebx, ebx
jl 0x52c5b5
cmp dword [esi + 0x34c], 0
jl 0x52c569
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp edi, dword [esi + 0x35c]
jge 0x52c569
push edi
lea ecx, [esi + 0x354]
call fcn.00453680
mov ecx, dword [ebp + 0xd4]
cmp dword [eax], ecx
jne 0x52c5d3
mov ebx, edi
push 1
lea edx, [ebp - 0x2c]
push edx
push ebx
lea ecx, [esi + 0x628]
call fcn.005db9cd
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [esi + 0x648]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x52c5b5
push 1
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [esi + 0x648]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0045a2d0
mov dword [ebp - 4], 0xffffffff
jmp 0x52c47f
inc edi
jmp 0x52c546