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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576c0a
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
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 - 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.0051ca30
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.00486920
add esp, 0x18
mov dword [ebp - 4], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00486d50
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.00486640
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 0x51d16b
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.00485710
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.00486480
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.00486480
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 0x51d095
push eax
call fcn.00407330
add esp, 4
mov byte [ebp - 0x71], 1
test eax, eax
je 0x51d099
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 0x51d156
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00486640
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 0x51d156
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00486640
mov esi, eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x7c]
cmp eax, esi
je 0x51d14a
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.00521dac
mov esp, ebp
pop ebp
ret