Function at 0x402001
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x16c
mov dword [ebp - 0x144], sym.___gxx_personality_sj0
mov dword [ebp - 0x140], 0x481320
lea eax, [ebp - 0x13c]
lea ebx, [ebp - 0x18]
mov dword [eax], ebx
mov edx, 0x402388
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x15c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
mov dword [esp], 0x48a555
mov dword [ebp - 0x158], 0xffffffff
call sym._system
mov dword [esp + 8], str.YFMutex
mov dword [esp + 4], 0
mov dword [esp], 0x1f0001
mov eax, dword [sym.imp.KERNEL32.dll_OpenMutexA]
call eax
sub esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x402115
mov dword [esp + 8], str.YFMutex
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateMutexA]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 0x158], 0xffffffff
call eax
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [esp + 4], 0x48a579
mov dword [esp], 0x489140
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], str.YFDaemon.exe
mov eax, dword [sym.imp.msvcrt.dll__access]
call eax
test eax, eax
jne 0x40213b
jmp 0x402121
mov dword [esp], 0
call sym._exit
mov dword [esp + 4], 0
mov dword [esp], 0x48a598
mov eax, dword [sym.imp.msvcrt.dll__access]
call eax
test eax, eax
je 0x402142
mov eax, 1
jmp 0x402147
mov eax, 0
test al, al
je 0x402192
mov dword [esp + 4], str.Start_Check_Error__Error_Code:0xffff
mov dword [esp], 0x489140
mov dword [ebp - 0x158], 0xffffffff
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
mov dword [esp], str.pause
call sym._system
mov dword [esp], 0
call sym._exit
mov dword [esp + 4], 0
mov dword [esp], str.Set.ini
mov eax, dword [sym.imp.msvcrt.dll__access]
mov dword [ebp - 0x158], 0xffffffff
call eax
test eax, eax
setne al
test al, al
je 0x402215
lea eax, [ebp - 0x124]
mov ecx, eax
call fcn.00467af0
lea eax, [ebp - 0x124]
mov dword [esp + 4], 0x10
mov dword [esp], str.Set.ini
mov dword [ebp - 0x158], 1
mov ecx, eax
call method.std::basic_ofstream_char__std::char_traits_char___.open_char_const__std::_Ios_Openmode_
sub esp, 8
lea eax, [ebp - 0x124]
mov ecx, eax
call method.std::basic_ofstream_char__std::char_traits_char___.close__
lea eax, [ebp - 0x124]
mov dword [ebp - 0x158], 0xffffffff
mov ecx, eax
call fcn.00468050
lea eax, [ebp - 0x124]
mov dword [esp + 4], 8
mov dword [esp], str.Set.ini
mov dword [ebp - 0x158], 0xffffffff
mov ecx, eax
call sym.std::basic_ifstream_char__std::char_traits_char___::basic_ifstream_char_const__std::_Ios_Openmode_
sub esp, 8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x158], 2
mov ecx, eax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea eax, [ebp - 0x28]
mov dword [ebp - 0x158], 3
mov ecx, eax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x402285
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x24]
mov dword [esp], edx
mov dword [ebp - 0x158], 4
mov ecx, eax
call method.std::string.operator_std::string_const_
sub esp, 4
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
lea eax, [ebp - 0x124]
mov dword [esp], eax
mov dword [ebp - 0x158], 4
call method.std::basic_istream_char__std::char_traits_char____std::operator___char__std::char_traits_char___std.allocator_char____std::basic_istream_char__std::char_traits_char_____std::basic_string_char__std::char_traits_char___std::allocator_char____
mov edx, dword [eax]
sub edx, 0xc
mov edx, dword [edx]
add eax, edx
mov ecx, eax
call method.std::basic_ios_char__std::char_traits_char___.operator_void___const
test eax, eax
setne al
test al, al
jne 0x402268
lea eax, [ebp - 0x28]
mov ecx, eax
call method.std::string.c_str___const
mov dword [esp + 4], 0x48a5d1
mov dword [esp], eax
call sym._strcmp
test eax, eax
sete al
test al, al
je 0x4022f5
mov eax, dword [sym.imp.USER32.dll_GetForegroundWindow]
call eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call dbg.TopWindow(HWND__*&)
lea eax, [ebp - 0x20]
mov dword [esp], 0x49305c
mov dword [ebp - 0x158], 4
mov ecx, eax
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::string_const_
sub esp, 4
mov dword [esp + 4], 0x493080
lea eax, [ebp - 0x20]
mov dword [esp], eax
mov dword [ebp - 0x158], 5
call dbg.chuli(std::string, char*)
lea eax, [ebp - 0x20]
mov dword [ebp - 0x158], 4
mov ecx, eax
call fcn.004556e0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x158], 3
mov ecx, eax
call fcn.004556e0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x158], 2
mov ecx, eax
call fcn.004556e0
lea eax, [ebp - 0x124]
mov dword [ebp - 0x158], 0xffffffff
mov ecx, eax
call fcn.004665a0
jmp 0x4024a6
lea eax, [ebp - 0x15c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x160]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret