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

Disassembly:
push 0x64
mov eax, 0x53e76d3
call fcn.053519dc
mov esi, ecx
mov eax, dword [esi + 0x40]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x53051f7
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x53051ef
test byte [eax + 0x1c], 2
je 0x53051ef
cmp byte [eax + 0x19], 5
jb 0x53051ef
push 0x53f2680
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.052e5970
add esp, 0x10
mov al, 1
call fcn.05351a38
ret
lea ecx, [ebp - 0x68]
call fcn.05302607
push dword [esi + 4]
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5305262
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebx
push ebx
push eax
call edi
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x5305277
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x5305262
test byte [eax + 0x1c], 1
je 0x5305262
cmp byte [eax + 0x19], 2
jb 0x5305262
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x53f2680
push 0xc
mov eax, dword [0x5419944]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.05308899
add esp, 0x14
lea ecx, [ebp - 0x68]
call fcn.053025af
mov bl, al
neg bl
sbb bl, bl
inc bl
jmp 0x530538e
lea ebx, [esi + 0x38]
push eax
mov ecx, ebx
call fcn.052fe3b5
push dword [ebp - 0x38]
mov ecx, dword [esi + 4]
push eax
push ecx
call edi
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.052fdfbd
test edi, edi
jne 0x53052c3
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x5305262
test byte [eax + 0x1c], 1
je 0x5305262
cmp byte [eax + 0x19], 2
jb 0x5305262
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x53f2680
push 0xd
jmp 0x530524f
push 0x5419864
lea ecx, [ebp - 0x3c]
call fcn.052eda80
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
lea ecx, [esi + 0x48]
push edi
mov byte [ebp - 4], 2
call fcn.052fe3b5
lea ecx, [esi + 0x44]
push edi
mov dword [ebp - 0x38], eax
call fcn.052fe3b5
lea ecx, [esi + 0x3c]
push edi
mov dword [ebp - 0x44], eax
call fcn.052fe3b5
push edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], eax
call fcn.052fe3b5
mov ebx, dword [ebx]
push edi
push dword [ebp - 0x38]
push edi
push dword [ebp - 0x44]
push edi
push dword [ebp - 0x40]
push edi
push eax
push ebx
call fcn.05353ca1
add esp, 0x24
or ebx, 0xffffffff
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x38], eax
call fcn.052fdfbd
push ebx
lea ecx, [esi + 0x3c]
call fcn.052fdfbd
push ebx
lea ecx, [esi + 0x44]
call fcn.052fdfbd
push ebx
lea ebx, [esi + 0x48]
mov ecx, ebx
call fcn.052fdfbd
cmp dword [ebp - 0x38], 0
je 0x530539d
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x5305381
test byte [eax + 0x1c], 1
je 0x5305381
cmp byte [eax + 0x19], 2
jb 0x5305381
push dword [ebp - 0x38]
push 0x53f2680
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.052ed6e0
add esp, 0x14
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.052ed640
xor bl, bl
lea ecx, [ebp - 0x68]
call fcn.053025c5
mov al, bl
jmp 0x53051f1
push dword [esi + 0x3c]
mov edi, 0x53f26fc
push dword [ebp - 0x3c]
lea eax, [esi + 0x40]
push edi
push eax
call fcn.052ff944
mov eax, dword [ebx]
mov ecx, dword [esi + 0x44]
add esp, 0x10
push eax
push ecx
push edi
add esi, 0x4c
push esi
call fcn.052ff944
mov ecx, dword [ebp - 0x3c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.052ed640
jmp 0x5305262