Function at 0x4368d2
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x24
mov eax, 0x4af044
call fcn.00475a5f
mov edi, dword [ebp + 0x810]
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov ecx, 0x4f6b00
mov dword [ebp - 0x24], edi
mov dword [edi], ebx
mov dword [ebp - 0x14], ebx
call fcn.00439d94
cmp eax, ebx
je 0x436935
mov ecx, eax
call fcn.0045e3be
test eax, eax
je 0x436935
push ebx
push ebx
push 0x90
call fcn.00402f1e
mov ecx, eax
call fcn.00402faf
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x80c]
call fcn.004331b7
mov esi, 0x8ca1
mov dword [ebp - 0x30], eax
sub eax, esi
je 0x436a35
dec eax
je 0x4369fb
dec eax
je 0x436982
dec eax
jne 0x4369a0
push ebx
push ebx
push 0xc6
call fcn.00402f1e
mov ecx, eax
call fcn.00402faf
mov dword [edi], 1
jmp 0x436a0e
push ebx
push ebx
push 0xc5
call fcn.00402f1e
mov ecx, eax
call fcn.00402faf
push str.Close_SelfProtect_Failed_By_Sptool___r_n
call fcn.00404dac
pop ecx
push ebx
push ebx
push 0xc7
call fcn.00402f1e
mov ecx, eax
call fcn.00402faf
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 8], ebx
je 0x436a0e
call fcn.0043067a
mov edi, eax
cmp edi, ebx
je 0x436a0e
mov esi, 0x4f8ce0
push esi
lea ecx, [ebp - 0x20]
call fcn.004029af
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ebx
call fcn.0045fd29
test eax, eax
jne 0x436aa8
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004029d4
jmp 0x436a0e
push ebx
push ebx
push 0x92
call fcn.00402f1e
mov ecx, eax
call fcn.00402faf
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.00474a8a
add ebp, 0x804
leave
ret 8
push ebx
push ebx
push 0x91
call fcn.00402f1e
mov ecx, eax
call fcn.00402faf
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
push ebx
push ebx
push 1
push esi
push edi
call fcn.004366aa
test eax, eax
je 0x436a6c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
call fcn.0045e4f0
test eax, eax
je 0x436a82
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jle 0x436a4b
jmp 0x4369a0
push ebx
push ebx
push 0xc4
call fcn.00402f1e
mov ecx, eax
call fcn.00402faf
push str.Close_SelfProtect_Success_By_Sptool___r_n
call fcn.00404dac
xor eax, eax
pop ecx
inc eax
jmp 0x436a10
push 0x800
lea eax, [ebp]
push ebx
push eax
call fcn.00474a10
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 0x436aeb
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
mov dword [ecx], 1
cmp eax, ebx
je 0x436bcf
push esi
lea ecx, [ebp - 0x14]
call fcn.004029af
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x80c]
mov byte [ebp - 4], 1
call fcn.00433178
or dword [ebp - 0x1c], 2
mov esi, 0x4f6b58
mov ecx, esi
call fcn.004698eb
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 0x436bb1
push dword [ebp - 0x18]
push str.Close_SelfProtect_By_Tray_Return__d__r_n
call fcn.00404dac
cmp dword [ebp - 0x18], 1
pop ecx
pop ecx
jne 0x436b6f
push ebx
push ebx
push 0x70
call fcn.00402f1e
mov ecx, eax
call fcn.00402faf
cmp dword [ebp - 0x18], 0xffffffff
jne 0x436bba
push ebx
push ebx
push 0xc8
call fcn.00402f1e
mov ecx, eax
call fcn.00402faf
mov ecx, esi
call fcn.00469926
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [eax], ebx
call fcn.004029d4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004029d4
mov eax, ebx
jmp 0x436a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov ecx, esi
call fcn.00469926
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004029d4
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.004366aa
test eax, eax
je 0x436bf9
mov ecx, dword [edi + 8]
call fcn.0045e4f0
test eax, eax
je 0x436c0c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jle 0x436bd2
jmp 0x436c36
push ebx
push ebx
push 0xc9
call fcn.00402f1e
mov ecx, eax
call fcn.00402faf
push str.Close_SelfProtect_Success_By_Tray___r_n
call fcn.00404dac
mov eax, dword [ebp - 0x24]
pop ecx
mov dword [eax], ebx
mov dword [ebp - 0x28], 1
mov ebx, dword [ebp - 0x28]
jmp 0x436b9f