Function at 0x4577a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cfba8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x65db30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x457804
push 1
push esi
call fcn.004572d0
test eax, eax
jne 0x457804
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x457804
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x5db124
lea eax, [ebp + 0xc]
push esi
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp + 0xc], edi
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x457856
mov esi, dword [sym.imp.MSVCR100.dll__errno]
call esi
cmp dword [eax], 2
jne 0x45783c
mov eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x457891
call esi
mov eax, dword [eax]
sub eax, 0xd
neg eax
sbb eax, eax
and eax, 0x69
add eax, 5
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x457891
push edi
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
mov ecx, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
call fcn.00469910
mov ecx, dword [ebx + 0x1c]
mov edi, dword [ecx]
mov dword [ebp - 0x24], ecx
mov dword [ebp + 8], edi
cmp edi, ecx
jne 0x4578c3
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004699a0
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4578a2
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ebx
cmp ebx, eax
je 0x45796c
mov eax, dword [ebx + 8]
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push str._s__s_n
push ecx
call dword [sym.imp.MSVCR100.dll_fprintf_s]
add esp, 0x10
test eax, eax
js 0x457981
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
mov dword [ebp - 0x1c], eax
cmp esi, eax
je 0x45795b
mov edx, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
cmp edx, dword [ebp - 0x28]
jl 0x457952
jg 0x457916
cmp edi, dword [ebp - 0x2c]
jbe 0x457952
mov eax, dword [esi + 0xc]
cmp byte [eax], 0
jne 0x457923
mov eax, 0x5d6378
mov ebx, dword [esi + 0x28]
mov ecx, dword [esi + 8]
push ebx
mov ebx, dword [esi + 0x24]
push ebx
mov ebx, dword [esi + 0x20]
push ebx
push edx
mov edx, dword [ebp + 0xc]
push edi
push eax
push ecx
push str._t_s__s__I64d__d__d__d_n
push edx
call dword [sym.imp.MSVCR100.dll_fprintf_s]
add esp, 0x24
test eax, eax
js 0x457981
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
mov esi, dword [esi]
cmp esi, eax
jne 0x457904
mov edi, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ebp - 0x20]
jne 0x4578d6
mov ecx, dword [ebp - 0x24]
mov edi, dword [edi]
mov dword [ebp + 8], edi
cmp edi, ecx
jne 0x4578c0
mov ebx, dword [ebp - 0x10]
jmp 0x45787c
push 0x1d
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004699a0
jmp 0x457891