Function at 0x40c420
Capabilities:
Create process on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x40f37f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [0x418110]
push esi
mov dword [esp + 0x74], eax
push edi
push 0
push str._open
lea ecx, [esp + 0x94]
mov dword [esp + 0x8c], 0
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [ecx]
je 0x40c65e
push str.HandleCmdLine
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40c4d1
push str.create_new_process
push eax
push str.HandleCmdLine
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00402bb0
push 1
mov esi, eax
push 0
mov dword [0x418140], 0
mov edx, dword [esi + 0x240]
push 0
push edx
push 0
mov ecx, esi
mov dword [esi + 0x248], 0
call fcn.00405bc0
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x412f6c
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [ecx]
je 0x40cb12
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0
push 0x412f6c
lea ecx, [esp + 0x94]
mov byte [esp + 0x8c], 1
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov esi, eax
mov eax, dword [edx]
push eax
push 0x410790
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t_const___unsigned_int_const]
sub eax, esi
push eax
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 2
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.HandleCmdLine
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40c5ad
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push str.directory_s
push 0
push str.HandleCmdLine
call fcn.004055f0
add esp, 8
push eax
call fcn.0040b830
add esp, 0xc
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov ecx, dword [eax]
push ecx
push esi
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 3
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.HandleCmdLine
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40c637
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push str.path_s
push 0
push str.HandleCmdLine
call fcn.004055f0
add esp, 8
push eax
call fcn.0040b830
add esp, 0xc
push 1
push 0
push 0
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x24]
jmp 0x40cb04
push str._uninstallLsp
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push eax
call esi
test eax, eax
jne 0x40c767
push str.HandleCmdLine
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40c6b4
push eax
push str.unistall_lsp
push eax
push str.HandleCmdLine
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00402bb0
mov ecx, eax
call fcn.004060e0
mov eax, dword [str.GameAcc.dll]
mov ecx, dword [0x412d14]
mov edx, dword [0x412d18]
mov dword [esp + 0xc], eax
mov eax, dword [0x412d1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [0x412d20]
mov dword [esp + 0x14], edx
mov edx, dword [0x412d24]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x40c74b
push str.HandleCmdLine
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40cb12
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.load_dll_failed__err_
push 0
push str.HandleCmdLine
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00402bb0
mov ecx, eax
call fcn.00401200
mov ecx, eax
call fcn.004060e0
jmp 0x40cb12
push str.UninstallLsp
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40cb12
push str._uninstall_allLsp
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call esi
test eax, eax
jne 0x40c822
push str.HandleCmdLine
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40c7b7
push eax
push str.unistall_all_lsp
push eax
push str.HandleCmdLine
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00402bb0
mov ecx, eax
call fcn.004060e0
mov ecx, dword [str.GameAcc.dll]
mov edx, dword [0x412d14]
mov eax, dword [0x412d18]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x412d1c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
mov edx, dword [0x412d20]
mov dword [esp + 0x14], eax
mov eax, dword [0x412d24]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40c6ff
push str.UninstallLsp
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40cb12
push 0
push str._installNotify
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [edx]
je 0x40c9d2
push str.HandleCmdLine
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40c877
push eax
push str.install_notify
push eax
push str.HandleCmdLine
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00402bb0
mov ecx, eax
call fcn.004060e0
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov ecx, dword [eax]
push ecx
push 0x410790
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const___unsigned_int_const]
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov ecx, dword [edx]
push ecx
inc eax
push eax
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push str.HandleCmdLine
mov byte [esp + 0x88], 4
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40c90d
push eax
sub esp, 0x1c
lea eax, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str.strExeName_
push 0
push str.HandleCmdLine
mov byte [esp + 0xb0], 4
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00402bb0
mov ecx, eax
call fcn.004013a0
mov ecx, eax
call fcn.004060e0
mov ecx, dword [str.GameAcc.dll]
mov edx, dword [0x412d14]
mov eax, dword [0x412d18]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x412d1c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
mov edx, dword [0x412d20]
mov dword [esp + 0x14], eax
mov eax, dword [0x412d24]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x40c9a3
push str.HandleCmdLine
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40c99a
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.load_dll_failed__err_
push esi
push str.HandleCmdLine
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00402bb0
mov ecx, eax
call fcn.00401200
mov ecx, eax
call fcn.004060e0
lea ecx, [esp + 0x5c]
jmp 0x40cb04
push str.InstallNotify
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40c9c2
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x5c]
jmp 0x40cb04
push 0
push str._uninstallNotify
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [edx]
je 0x40cb31
push str.HandleCmdLine
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40ca27
push eax
push str.uninstall_notify
push eax
push str.HandleCmdLine
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00402bb0
mov ecx, eax
call fcn.004060e0
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov ecx, dword [eax]
push ecx
push 0x11
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov eax, dword [str.GameAcc.dll]
mov ecx, dword [0x412d14]
mov edx, dword [0x412d18]
mov dword [esp + 0x24], eax
mov eax, dword [0x412d1c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov ecx, dword [0x412d20]
mov dword [esp + 0x2c], edx
mov edx, dword [0x412d24]
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x88], 6
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x40cada
push str.HandleCmdLine
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40cb00
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.load_dll_failed__err_
push esi
push str.HandleCmdLine
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00402bb0
mov ecx, eax
call fcn.00401200
mov ecx, eax
call fcn.004060e0
jmp 0x40cb00
push str.UninstallNotify
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40caf9
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x40cc21
push 0
push str._startup
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [ecx]
jne 0x40cc07
push str._OpenRunAs
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call esi
test eax, eax
je 0x40cc07
push str._ForceRun
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call esi
test eax, eax
jne 0x40cb95
mov edx, dword [esp + 0xa8]
mov byte [edx], 1
jmp 0x40cc07
push str._resetnetwork
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call esi
test eax, eax
jne 0x40cbba
mov eax, dword [esp + 0xa8]
mov byte [eax], 1
jmp 0x40cc07
push 0x4115ec
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call esi
test eax, eax
je 0x40cc07
push str.HandleCmdLine
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40cc07
push 1
push str.invaild_param__exist.
push eax
push str.HandleCmdLine
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00402bb0
mov ecx, eax
call fcn.004060e0
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x78]
call fcn.0040e783
pop edi
pop esi
add esp, 0x80
ret