Function at 0x436dc2
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, 0x4afae8
call fcn.004764c0
mov edi, dword [ebp + 0x810]
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov ecx, 0x4f7c20
mov dword [ebp - 0x24], edi
mov dword [edi], ebx
mov dword [ebp - 0x14], ebx
call fcn.0043a0b9
cmp eax, ebx
je 0x436e25
mov ecx, eax
call fcn.0045f24b
test eax, eax
je 0x436e25
push ebx
push ebx
push 0x90
call fcn.00402d6a
mov ecx, eax
call fcn.00402dfb
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x80c]
call fcn.004334c3
mov esi, 0x8ca1
mov dword [ebp - 0x30], eax
sub eax, esi
je 0x436f25
dec eax
je 0x436eeb
dec eax
je 0x436e72
dec eax
jne 0x436e90
push ebx
push ebx
push 0xc6
call fcn.00402d6a
mov ecx, eax
call fcn.00402dfb
mov dword [edi], 1
jmp 0x436efe
push ebx
push ebx
push 0xc5
call fcn.00402d6a
mov ecx, eax
call fcn.00402dfb
push str.Close_SelfProtect_Failed_By_Sptool___r_n
call fcn.00404da7
pop ecx
push ebx
push ebx
push 0xc7
call fcn.00402d6a
mov ecx, eax
call fcn.00402dfb
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 8], ebx
je 0x436efe
call fcn.00430605
mov edi, eax
cmp edi, ebx
je 0x436efe
mov esi, 0x4f9e00
push esi
lea ecx, [ebp - 0x20]
call fcn.004027fb
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ebx
call fcn.00460be6
test eax, eax
jne 0x436f98
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402820
jmp 0x436efe
push ebx
push ebx
push 0x92
call fcn.00402d6a
mov ecx, eax
call fcn.00402dfb
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.0047549a
add ebp, 0x804
leave
ret 8
push ebx
push ebx
push 0x91
call fcn.00402d6a
mov ecx, eax
call fcn.00402dfb
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
push ebx
push ebx
push 1
push esi
push edi
call fcn.00436b9a
test eax, eax
je 0x436f5c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
call fcn.0045f37d
test eax, eax
je 0x436f72
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jle 0x436f3b
jmp 0x436e90
push ebx
push ebx
push 0xc4
call fcn.00402d6a
mov ecx, eax
call fcn.00402dfb
push str.Close_SelfProtect_Success_By_Sptool___r_n
call fcn.00404da7
xor eax, eax
pop ecx
inc eax
jmp 0x436f00
push 0x800
lea eax, [ebp]
push ebx
push eax
call fcn.00475420
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 0x436fdb
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
mov dword [ecx], 1
cmp eax, ebx
je 0x4370bf
push esi
lea ecx, [ebp - 0x14]
call fcn.004027fb
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x80c]
mov byte [ebp - 4], 1
call fcn.00433484
or dword [ebp - 0x1c], 2
mov esi, 0x4f7c78
mov ecx, esi
call fcn.0046a399
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 0x4370a1
push dword [ebp - 0x18]
push str.Close_SelfProtect_By_Tray_Return__d__r_n
call fcn.00404da7
cmp dword [ebp - 0x18], 1
pop ecx
pop ecx
jne 0x43705f
push ebx
push ebx
push 0x70
call fcn.00402d6a
mov ecx, eax
call fcn.00402dfb
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4370aa
push ebx
push ebx
push 0xc8
call fcn.00402d6a
mov ecx, eax
call fcn.00402dfb
mov ecx, esi
call fcn.0046a3d4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [eax], ebx
call fcn.00402820
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402820
mov eax, ebx
jmp 0x436f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov ecx, esi
call fcn.0046a3d4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00402820
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.00436b9a
test eax, eax
je 0x4370e9
mov ecx, dword [edi + 8]
call fcn.0045f37d
test eax, eax
je 0x4370fc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jle 0x4370c2
jmp 0x437126
push ebx
push ebx
push 0xc9
call fcn.00402d6a
mov ecx, eax
call fcn.00402dfb
push str.Close_SelfProtect_Success_By_Tray___r_n
call fcn.00404da7
mov eax, dword [ebp - 0x24]
pop ecx
mov dword [eax], ebx
mov dword [ebp - 0x28], 1
mov ebx, dword [ebp - 0x28]
jmp 0x43708f