Function at 0x40678e
Capabilities:
Terminate process

Disassembly:
push 0x64
mov eax, 0x59eaf3
call fcn.00495539
mov eax, dword [ebp + 8]
add eax, 0x70c
push eax
lea esi, [ebp - 0x64]
mov dword [ebp - 0x68], eax
call fcn.004024df
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00402e69
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x4067c3
mov ecx, esi
mov edx, dword [eax]
push ecx
mov esi, str.EndProcessAndDelFile__path:_s
push esi
mov ebx, str.MainDlg.cpp
push ebx
push 0x4bb
push edi
push eax
call dword [edx + 8]
add esp, 0x18
call fcn.00402e2e
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x4067f0
lea ecx, [ebp - 0x64]
mov edx, dword [eax]
push ecx
push esi
push edi
push eax
call dword [edx + 4]
add esp, 0x10
call fcn.00448af0
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x40680d
lea ecx, [ebp - 0x64]
call fcn.004488d0
mov dword [ebp - 0x6c], eax
cmp eax, edi
je 0x406898
mov esi, str.TerminateProcess__pid:_u
push dword [ebp - 0x6c]
push edi
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x70], eax
cmp eax, edi
je 0x406898
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40684e
push edi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.00402e69
push dword [ebp - 0x6c]
mov ecx, dword [eax]
push esi
push ebx
push 0x4cb
push edi
push eax
call dword [ecx + 8]
call fcn.00402e2e
push dword [ebp - 0x6c]
mov ecx, dword [eax]
push esi
push edi
push eax
call dword [ecx + 4]
add esp, 0x28
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x40688c
lea ecx, [ebp - 0x64]
call fcn.004488d0
mov dword [ebp - 0x6c], eax
cmp eax, edi
jne 0x40681e
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x2c]
push str._bin_
push eax
call fcn.00401638
xor ebx, ebx
inc ebx
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.0044b1e0
add esp, 0x10
push ebx
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401ad5
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x2c]
push str.patch_
push eax
call fcn.00401638
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.0044b1e0
add esp, 0x10
push ebx
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401ad5
mov edi, dword [ebp - 0x68]
mov ebx, 0x5ff8dc
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00401638
push str.DuoyiLauncher.exe
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040a4f4
push 0
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0044af30
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00401ad5
push 1
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00401ad5
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00401638
push 0x5ffd80
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.0040a4f4
push 0
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0044af30
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00401ad5
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401ad5
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00401638
push str.uninst.exe
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.0040a4f4
push 0
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0044af30
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00401ad5
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401ad5
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00401638
push str.Launcher.ini
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.0040a4f4
push 0
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0044af30
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00401ad5
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401ad5
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00401638
push 0x5ffdd0
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.0040a4f4
push 0
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0044af30
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00401ad5
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401ad5
push ebx
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x68]
push eax
call fcn.00401638
push str.preference.ini
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xd
call fcn.0040a4f4
push 0
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.0044af30
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00401ad5
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401ad5
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00401638
push str.GameSettings.ini
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.0040a4f4
xor ebx, ebx
push ebx
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.0044af30
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00401ad5
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401ad5
call fcn.00402e69
mov ecx, dword [eax]
mov esi, str.EndProcessAndDelFile_end
push esi
push str.MainDlg.cpp
push 0x4f1
push ebx
push eax
call dword [ecx + 8]
call fcn.00402e2e
mov ecx, dword [eax]
push esi
push ebx
push eax
call dword [ecx + 4]
add esp, 0x20
push 1
lea esi, [ebp - 0x64]
call fcn.00401ad5
call fcn.00495583
ret 4