Function at 0x436af2
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x24
mov eax, 0x4afb69
call fcn.00476610
mov edi, dword [ebp + 0x810]
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov ecx, 0x4f7c38
mov dword [ebp - 0x24], edi
mov dword [edi], ebx
mov dword [ebp - 0x14], ebx
call fcn.00439dde
cmp eax, ebx
je 0x436b55
mov ecx, eax
call fcn.0045f3b6
test eax, eax
je 0x436b55
push ebx
push ebx
push 0x90
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x80c]
call fcn.004332c9
mov esi, 0x8ca1
mov dword [ebp - 0x30], eax
sub eax, esi
je 0x436c55
dec eax
je 0x436c1b
dec eax
je 0x436ba2
dec eax
jne 0x436bc0
push ebx
push ebx
push 0xc6
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
mov dword [edi], 1
jmp 0x436c2e
push ebx
push ebx
push 0xc5
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
push str.Close_SelfProtect_Failed_By_Sptool___r_n
call fcn.00404d91
pop ecx
push ebx
push ebx
push 0xc7
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 8], ebx
je 0x436c2e
call fcn.00430505
mov edi, eax
cmp edi, ebx
je 0x436c2e
mov esi, 0x4f9e18
push esi
lea ecx, [ebp - 0x20]
call fcn.0040284b
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ebx
call fcn.00460e88
test eax, eax
jne 0x436cc8
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402870
jmp 0x436c2e
push ebx
push ebx
push 0x92
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x804
leave
ret 8
push ebx
push ebx
push 0x91
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
push ebx
push ebx
push 1
push esi
push edi
call fcn.004368e3
test eax, eax
je 0x436c8c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
call fcn.0045f4e8
test eax, eax
je 0x436ca2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jle 0x436c6b
jmp 0x436bc0
push ebx
push ebx
push 0xc4
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
push str.Close_SelfProtect_Success_By_Sptool___r_n
call fcn.00404d91
xor eax, eax
pop ecx
inc eax
jmp 0x436c30
push 0x800
lea eax, [ebp]
push ebx
push eax
call fcn.00475570
add esp, 0xc
push str.safemon360tray.exe
push dword [ebp - 0x20]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x14], ebx
je 0x436d0b
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
mov dword [ecx], 1
cmp eax, ebx
je 0x436def
push esi
lea ecx, [ebp - 0x14]
call fcn.0040284b
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x80c]
mov byte [ebp - 4], 1
call fcn.0043328a
or dword [ebp - 0x1c], 2
mov esi, 0x4f7c90
mov ecx, esi
call fcn.0046a2cf
mov eax, dword [edi]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
push ecx
push 1
push ebx
push 5
push dword [ebp - 0x14]
lea ecx, [ebp]
push ecx
push edi
call dword [eax + 0x28]
test eax, eax
je 0x436dd1
push dword [ebp - 0x18]
push str.Close_SelfProtect_By_Tray_Return__d__r_n
call fcn.00404d91
cmp dword [ebp - 0x18], 1
pop ecx
pop ecx
jne 0x436d8f
push ebx
push ebx
push 0x70
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
cmp dword [ebp - 0x18], 0xffffffff
jne 0x436dda
push ebx
push ebx
push 0xc8
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
mov ecx, esi
call fcn.0046a30a
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [eax], ebx
call fcn.00402870
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402870
mov eax, ebx
jmp 0x436c30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov ecx, esi
call fcn.0046a30a
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00402870
xor esi, esi
inc esi
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x18]
mov ecx, edi
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
push esi
call fcn.004368e3
test eax, eax
je 0x436e19
mov ecx, dword [edi + 8]
call fcn.0045f4e8
test eax, eax
je 0x436e2c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jle 0x436df2
jmp 0x436e56
push ebx
push ebx
push 0xc9
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
push str.Close_SelfProtect_Success_By_Tray___r_n
call fcn.00404d91
mov eax, dword [ebp - 0x24]
pop ecx
mov dword [eax], ebx
mov dword [ebp - 0x28], 1
mov ebx, dword [ebp - 0x28]
jmp 0x436dbf