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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ba4a
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5dd024]
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 - 0x88], 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 - 0x84], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x80], ecx
mov ecx, edx
mov dword [ebp - 0x90], edx
push eax
mov dword [ebp - 0x78], 0
call fcn.00406c50
mov dword [ebp - 4], 0
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x88]
push esi
push edi
push dword [ebp - 0x80]
mov edi, dword [ebp - 0x7c]
mov edx, edi
push dword [ebp - 0x84]
mov dword [ebp - 0x78], 1
call fcn.0051d6e0
add esp, 0x14
push 1
sub esp, 0x18
mov dword [ebp - 0x94], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x98], esp
push edi
call fcn.00406c50
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00486fe0
add esp, 0x18
mov dword [ebp - 4], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00487410
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.00486d00
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.00407f30
cmp esi, 0xffffffff
jne 0x51de1b
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.00485dd0
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.00486b40
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.00486b40
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 0x51dd45
push eax
call fcn.00407330
add esp, 4
mov byte [ebp - 0x71], 1
test eax, eax
je 0x51dd49
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.00407f30
and edi, 0xfffffffb
mov dword [ebp - 0x78], edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00407f30
cmp byte [ebp - 0x71], 0
je 0x51de06
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00486d00
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.00407f30
cmp esi, 0xffffffff
je 0x51de06
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00486d00
mov esi, eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x7c]
cmp eax, esi
je 0x51ddfa
mov ecx, eax
call fcn.00407f30
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.00407f30
and edi, 0xfffffffd
mov dword [ebp - 0x78], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00407f30
mov edi, dword [ebp - 0x7c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00407f30
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.005255bb
mov esp, ebp
pop ebp
ret