Function at 0x499170
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578eb4
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x41], bl
mov byte [ebp - 0x43], bl
call fcn.00496f90
mov dword [ebp - 4], ebx
xor eax, eax
mov cl, al
mov dword [ebp - 0x4c], eax
cmp dword [esi + 0x320], eax
jbe 0x4993da
test cl, cl
jne 0x4993da
push eax
lea ecx, [esi + 0x310]
call fcn.00439b00
mov edi, eax
mov dword [ebp - 0x50], edi
call fcn.00439ba0
push dword [ebp - 0x54]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x78]
call fcn.00496870
cmp dword [edi + 0x64], 2
jne 0x49920f
push dword [edi + 0xc]
mov ecx, dword [edi]
call fcn.0041af60
test eax, eax
je 0x4993c4
mov al, byte [edi + 0x30]
test al, al
je 0x4993c4
cmp byte [ebp + 0xc], 0
je 0x49932c
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0041b050
mov byte [ebp - 4], 1
or ebx, 1
mov dword [ebp - 0x48], ebx
cmp dword [eax + 0x14], 8
jb 0x499243
mov ecx, dword [eax]
jmp 0x499245
mov ecx, eax
push 0
push 0x5883b8
push dword [eax + 0x10]
push ecx
call fcn.00406240
add esp, 0x10
test eax, eax
je 0x49928b
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0041b050
mov dword [ebp - 4], 2
or ebx, 2
mov dword [ebp - 0x48], ebx
cmp dword [eax + 0x14], 8
jb 0x49927c
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0x42], 0
test eax, eax
jne 0x49928f
mov byte [ebp - 0x42], 1
mov dword [ebp - 4], 1
test bl, 2
je 0x4992a9
and ebx, 0xfffffffd
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x48], ebx
call fcn.004038c0
mov dword [ebp - 4], 0
and ebx, 0xfffffffe
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x48], ebx
call fcn.004038c0
cmp byte [ebp - 0x42], 0
je 0x4993c4
push 0
push edi
mov ecx, esi
call fcn.00468f20
push 1
push edi
mov ecx, esi
call fcn.00468f20
test al, al
jne 0x4992e9
push 0
mov ecx, esi
call fcn.0047ba00
cmp dword [edi + 0x88], 8
lea ecx, [edi + 0x74]
jb 0x4992f7
mov ecx, dword [ecx]
mov eax, dword [esi]
push ecx
push 0
push 0x23
push 0x5ada54
push str.Your_backup_file_cannot_be_found__deleted_from_outside_._rSave_it_otherwise_your_data_will_be_lost_rDo_you_want_to_save_file___STR_REPLACE____
push dword [eax + 0xc]
lea ecx, [esi + 0x300]
push str.NoBackupDoSaveFile
call fcn.004607b0
cmp eax, 6
je 0x4993b4
cmp eax, 2
jmp 0x4993be
push 0
push edi
mov ecx, esi
call fcn.00468f20
push 1
push edi
mov ecx, esi
call fcn.00468f20
test al, al
jne 0x49934d
push 0
mov ecx, esi
call fcn.0047ba00
cmp byte [ebp - 0x43], 0
jne 0x4993b4
call fcn.00439ba0
mov ecx, eax
call fcn.0041b670
cmp dword [edi + 0x88], 8
lea ecx, [edi + 0x74]
jb 0x49936d
mov ecx, dword [ecx]
cmp eax, 1
seta al
movzx eax, al
push eax
push ecx
mov ecx, esi
call fcn.0046ceb0
cmp eax, 6
je 0x4993b4
cmp eax, 2
je 0x499705
cmp eax, 5
jne 0x499399
mov cl, 1
mov byte [ebp - 0x41], cl
jmp 0x4993c7
cmp eax, 4
jne 0x4993c4
push edi
mov ecx, esi
call fcn.0049b420
test al, al
je 0x499705
mov byte [ebp - 0x43], 1
jmp 0x4993c4
push edi
mov ecx, esi
call fcn.0049b420
test al, al
je 0x499705
mov cl, byte [ebp - 0x41]
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp eax, dword [esi + 0x320]
jb 0x4991c6
xor eax, eax
mov dword [ebp - 0x4c], eax
cmp dword [esi + 0x3a4], eax
jbe 0x49958f
jmp 0x4993f0
test cl, cl
jne 0x49958f
push eax
lea ecx, [esi + 0x394]
call fcn.00439b00
mov edi, eax
mov dword [ebp - 0x50], edi
call fcn.00439ba0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x78]
call fcn.004d9cf0
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x74]
jne 0x499579
cmp dword [edi + 0x64], 2
jne 0x499442
push dword [edi + 0xc]
mov ecx, dword [edi]
call fcn.0041af60
test eax, eax
je 0x499579
mov al, byte [edi + 0x30]
test al, al
je 0x499579
cmp byte [ebp + 0xc], 0
je 0x499679
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0041b050
mov byte [ebp - 4], 8
or ebx, 4
mov dword [ebp - 0x48], ebx
cmp dword [eax + 0x10], 0
jbe 0x4994a1
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0041b050
mov dword [ebp - 4], 9
or ebx, 8
mov dword [ebp - 0x48], ebx
cmp dword [eax + 0x14], 8
jb 0x499492
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0x42], 0
test eax, eax
jne 0x4994a5
mov byte [ebp - 0x42], 1
mov dword [ebp - 4], 8
test bl, 8
je 0x4994e0
and ebx, 0xfffffff7
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4994cc
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0
and ebx, 0xfffffffb
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x499502
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp byte [ebp - 0x42], al
je 0x499579
push 1
push edi
mov ecx, esi
call fcn.00468f20
push 1
mov ecx, esi
call fcn.0047ba00
cmp dword [edi + 0x88], 8
lea ecx, [edi + 0x74]
jb 0x49953c
mov ecx, dword [ecx]
mov eax, dword [esi]
push ecx
push 0
push 0x23
push 0x5ada54
push str.Your_backup_file_cannot_be_found__deleted_from_outside_._rSave_it_otherwise_your_data_will_be_lost_rDo_you_want_to_save_file___STR_REPLACE____
push dword [eax + 0xc]
lea ecx, [esi + 0x300]
push str.NoBackupDoSaveFile
call fcn.004607b0
cmp eax, 6
jne 0x499671
push edi
mov ecx, esi
call fcn.0049b420
test al, al
je 0x499705
mov cl, byte [ebp - 0x41]
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp eax, dword [esi + 0x3a4]
jb 0x4993f0
mov al, byte [esi + 0x68ff4]
mov ebx, dword [ebp + 8]
and al, 3
cmp al, 3
jne 0x4995f6
mov ecx, dword [esi + 0x41c]
xor eax, eax
cmp dword [esi + 0x68ff8], eax
sete al
push eax
push 0
call fcn.00439b00
push eax
mov ecx, esi
call fcn.00468f20
mov eax, dword [esi + 0x41c]
mov edi, dword [eax + 0x10]
sub edi, 1
js 0x4995f6
lea ecx, [ecx]
mov ecx, dword [esi + 0x41c]
xor eax, eax
cmp dword [esi + 0x68ff8], eax
push ebx
sete al
push eax
push edi
call fcn.00439b00
push eax
mov ecx, esi
call fcn.004979b0
sub edi, 1
jns 0x4995d0
push dword [esi + 0x68ff8]
mov ecx, dword [esi + 0x418]
push 0
call fcn.00439b00
push eax
mov ecx, esi
call fcn.00468f20
mov eax, dword [esi + 0x418]
mov edi, dword [eax + 0x10]
sub edi, 1
js 0x499640
nop
mov ecx, dword [esi + 0x418]
push ebx
push dword [esi + 0x68ff8]
push edi
call fcn.00439b00
push eax
mov ecx, esi
call fcn.004979b0
sub edi, 1
jns 0x499620
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.0043e330
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jmp 0x499573
push 1
push edi
mov ecx, esi
call fcn.00468f20
push 1
mov ecx, esi
call fcn.0047ba00
cmp byte [ebp - 0x43], 0
jne 0x4996f5
call fcn.00439ba0
mov ecx, eax
call fcn.0041b670
cmp dword [edi + 0x88], 8
lea ecx, [edi + 0x74]
jb 0x4996ac
mov ecx, dword [ecx]
cmp eax, 1
seta al
movzx eax, al
push eax
push ecx
mov ecx, esi
call fcn.0046ceb0
cmp eax, 6
je 0x4996f5
cmp eax, 2
je 0x499705
cmp eax, 5
jne 0x4996d7
mov cl, 1
mov byte [ebp - 0x41], cl
jmp 0x49957c
cmp eax, 4
jne 0x499579
push edi
mov ecx, esi
call fcn.0049b420
test al, al
je 0x499705
mov byte [ebp - 0x43], 1
jmp 0x499579
push edi
mov ecx, esi
call fcn.0049b420
test al, al
jne 0x499579
xor bl, bl
jmp 0x499642