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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576ed7
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], edx
mov edx, ecx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x84], ecx
mov ecx, edx
mov dword [ebp - 0x90], edx
push eax
mov dword [ebp - 0x78], 0
call fcn.00406c70
mov dword [ebp - 4], 0
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x80]
push esi
push edi
push dword [ebp - 0x84]
mov edi, dword [ebp - 0x7c]
mov edx, edi
push dword [ebp - 0x88]
mov dword [ebp - 0x78], 1
call fcn.0051c370
add esp, 0x14
push 1
sub esp, 0x18
mov dword [ebp - 0x8c], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x80], esp
push edi
call fcn.00406c70
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00486860
add esp, 0x18
mov dword [ebp - 4], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00486c90
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.00486580
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00407f50
cmp esi, 0xffffffff
jne 0x51caa8
mov byte [ebp - 4], 6
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], 3
call fcn.00485640
mov byte [ebp - 4], 9
xor eax, eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x78], 7
call fcn.004863c0
mov byte [ebp - 4], 0xa
xor eax, eax
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x78], 0xf
call fcn.004863c0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 8
cmovae ecx, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x18]
jne 0x51c9d2
push eax
call fcn.00407350
add esp, 4
mov byte [ebp - 0x71], 1
test eax, eax
je 0x51c9d6
mov byte [ebp - 0x71], 0
mov edi, 0xf
mov dword [ebp - 0x78], edi
and edi, 0xfffffff7
mov dword [ebp - 0x78], edi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x58]
call fcn.00407f50
and edi, 0xfffffffb
mov dword [ebp - 0x78], edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00407f50
cmp byte [ebp - 0x71], 0
je 0x51ca93
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00486580
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00407f50
cmp esi, 0xffffffff
je 0x51ca93
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00486580
mov esi, eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x7c]
cmp eax, esi
je 0x51ca87
mov ecx, eax
call fcn.00407f50
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 0x7c]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00407f50
and edi, 0xfffffffd
mov dword [ebp - 0x78], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00407f50
mov edi, dword [ebp - 0x7c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00407f50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521781
mov esp, ebp
pop ebp
ret