Function at 0x4a5440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5ef6
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x669404]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xe0], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
xor ebx, ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 4], ebx
lea eax, [ebx + 0x10]
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov esi, esp
push 0xdead0033
push 0x39beef
lea ecx, [ebp - 0x70]
push ecx
call fcn.00404610
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x4a54ba
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esi], edx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00406010
mov eax, 4
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov eax, esp
mov dword [ebp - 0xd8], eax
cmp eax, ebx
je 0x4a54fb
mov dword [eax], 0xabab0039
mov dword [ebp - 4], 0xffffffff
jmp 0x4a5519
cmp eax, ebx
je 0x4a5523
mov dword [eax], 0xcdcd0039
mov esi, 6
mov dword [ebp - 0xdc], esi
test byte [0x679728], 1
jne 0x4a555e
or dword [0x679728], 1
mov dword [ebp - 4], 3
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x4a56a1
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 5
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], esi
lea edi, [ebp - 0x54]
call fcn.004193b0
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x4a55bb
push 0xd
push str.EnterFunction
mov ecx, eax
call fcn.004044f0
jmp 0x4a55c9
push str.EnterFunction
push ecx
call fcn.004046b0
add esp, 8
push 0x1ff
push ebx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x34]
call fcn.00403c90
mov esi, eax
mov ebx, 7
mov byte [ebp - 4], bl
test byte [0x679728], 1
jne 0x4a560e
or dword [0x679728], 1
mov byte [ebp - 4], 8
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0xd4], 0x6796dc
mov ecx, 0x6796dc
mov eax, dword [0x6796dc]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 4], 9
mov ecx, dword [0x679724]
test ecx, ecx
je 0x4a5657
cmp dword [esi + 0x14], 8
jb 0x4a563f
mov eax, dword [esi]
jmp 0x4a5641
mov eax, esi
mov edx, dword [ecx]
push 0x39
push str.FilesProtector::OnFileChange
push str.SelfProtectorFilesProtector.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], bl
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x1c], 8
jb 0x4a5681
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0
xor edx, edx
mov word [ebp - 0x30], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x54]
push eax
call fcn.00419280
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp + 8]
cmp ecx, dword [edx]
jne 0x4a5ad9
mov edi, dword [eax + 0x28]
lea esi, [eax + 0x24]
mov eax, dword [ebp - 0xd0]
lea ebx, [ebp - 0xd4]
call fcn.004a6690
cmp dword [eax], edi
je 0x4a5ad9
mov eax, dword [ebp - 0xd8]
xor ebx, ebx
cmp eax, ebx
je 0x4a56e6
mov dword [eax], 0xcdcd0043
mov dword [ebp - 0xdc], 6
lea eax, [ebp - 0xdc]
push eax
call fcn.00418640
mov edi, eax
call fcn.00418b90
test al, al
je 0x4a57d0
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xc
mov esi, dword [ebp - 0xd0]
push esi
push str.file_name_change_detected
lea edi, [ebp - 0x54]
call fcn.004193b0
mov ecx, eax
call fcn.004162f0
add esp, 4
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push ebx
lea ecx, [ebp - 0x30]
push ecx
mov edx, edi
push edx
call fcn.00419470
mov ecx, eax
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0xd
push 0x43
push str.FilesProtector::OnFileChange
push str.SelfProtectorFilesProtector.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x1c], 8
jb 0x4a57aa
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov word [ebp - 0x30], cx
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x54]
push edx
call fcn.00419280
jmp 0x4a57d6
mov esi, dword [ebp - 0xd0]
mov eax, dword [ebp + 0x10]
sub eax, 2
je 0x4a57ec
dec eax
je 0x4a58e4
dec eax
jne 0x4a59f7
mov ebx, dword [ebp - 0xe0]
mov edi, dword [ebx + 0x38]
lea ecx, [ebx + 0x34]
mov dword [ebp - 0xd4], ecx
mov eax, esi
lea ebx, [ebp - 0xe4]
mov esi, ecx
call fcn.00446bb0
cmp dword [eax], edi
je 0x4a59f7
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x4a5825
mov dword [eax], 0xcdcd0052
mov dword [ebp - 0xdc], 6
lea eax, [ebp - 0xdc]
push eax
call fcn.00418640
mov edi, eax
call fcn.00418b90
test al, al
je 0x4a5933
lea ecx, [ebp - 0x94]
push ecx
call fcn.00419220
mov dword [ebp - 4], 0xf
mov esi, dword [ebp - 0xd0]
push esi
push str.Rewriting_file
lea edi, [ebp - 0x94]
call fcn.004193b0
mov ecx, eax
call fcn.004162f0
add esp, 4
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push 0
lea edx, [ebp - 0xb0]
push edx
mov eax, edi
push eax
call fcn.00419470
mov ecx, eax
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x10
push 0x52
push str.FilesProtector::OnFileChange
push str.SelfProtectorFilesProtector.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xb0]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
push ecx
call fcn.00419280
jmp 0x4a5939
push str.File_has_changed_
lea ecx, [ebp - 0x30]
call fcn.00406280
mov dword [ebp - 4], 0xe
mov ebx, dword [ebp - 0xe0]
lea edi, [ebx - 0x60]
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push ecx
push esi
mov ecx, edi
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004068c0
push edi
mov ecx, esi
call fcn.004a6060
test al, al
jne 0x4a59f7
jmp 0x4a57f2
mov esi, dword [ebp - 0xd0]
push str.File_was_deleted_renamed_
lea ecx, [ebp - 0x70]
call fcn.00406280
mov dword [ebp - 4], 0x11
mov edi, dword [ebp - 0xe0]
lea ecx, [edi - 0x60]
mov edx, dword [ecx]
lea eax, [ebp - 0x70]
push eax
push esi
mov edx, dword [edx + 0xc]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004068c0
cmp dword [esi + 0x10], 0
je 0x4a5994
cmp dword [esi + 0x14], 8
jb 0x4a5981
mov eax, dword [esi]
jmp 0x4a5983
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
jne 0x4a59f7
push 0x6135f4
add edi, 4
push edi
lea eax, [ebp - 0x4c]
push eax
call fcn.0041f970
mov dword [ebp - 4], 0x12
push esi
lea ecx, [ebp - 0xcc]
push ecx
mov ecx, eax
call fcn.0041fa50
add esp, 0x14
mov edi, eax
mov byte [ebp - 4], 0x13
mov ecx, esi
mov ebx, dword [ebp - 0xd4]
call fcn.004708d0
mov ecx, eax
call fcn.004069e0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xcc]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004068c0
mov eax, dword [ebp - 0xd8]
xor esi, esi
cmp eax, esi
je 0x4a5a09
mov dword [eax], 0xcdcd005e
mov dword [ebp - 0xd4], 6
lea edx, [ebp - 0xd4]
push edx
call fcn.00418640
mov edi, eax
call fcn.00418b90
test al, al
je 0x4a5ad9
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0x14
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0x15
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0x16
lea edi, [ebp - 0x54]
call fcn.004193b0
mov edx, 0x6131f8
mov esi, eax
call fcn.00418da0
push 0x1ff
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x17
push 0x5e
push str.FilesProtector::OnFileChange
push str.SelfProtectorFilesProtector.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x16
cmp dword [ebp - 0x1c], 8
jb 0x4a5ab5
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
xor edx, edx
mov word [ebp - 0x30], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x54]
push eax
call fcn.00419280
lea esp, [ebp - 0xf4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00546bdc
mov esp, ebp
pop ebp
ret 0xc