Function at 0x4077e0
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [0x423190]
push ebp
push str._killlast
mov dword [esp + 0x78], eax
call fcn.0040c616
add esp, 4
push eax
xor ebp, ebp
push ebp
push str._killlast
lea ecx, [esp + 0x88]
call fcn.00402b40
cmp eax, 0xffffffff
je 0x407843
call fcn.004041b0
cmp dword [esp + 0x94], 8
jb 0x407833
mov eax, dword [esp + 0x80]
push eax
call fcn.0040c611
add esp, 4
mov al, 1
pop ebp
mov ecx, dword [esp + 0x70]
call fcn.0040c26e
add esp, 0x74
ret
push esi
push edi
push 0x41cea4
call fcn.0040c616
add esp, 4
push eax
push ebp
push 0x41cea4
lea ecx, [esp + 0x90]
call fcn.00402b40
cmp eax, 0xffffffff
je 0x407b1e
push 0x41cea0
call fcn.0040c616
add esp, 4
push eax
push ebp
push 0x41cea0
lea ecx, [esp + 0x90]
call fcn.00402b40
cmp eax, 0xffffffff
je 0x407aea
mov edi, 7
push 0x41cea0
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebp
mov word [esp + 0x14], bp
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebp
mov word [esp + 0x68], bp
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
call fcn.0040c616
add esp, 4
push eax
push ebp
push 0x41cea0
lea ecx, [esp + 0x90]
call fcn.00402b40
push 0x41c4bc
mov esi, eax
call fcn.0040c616
add esp, 4
push eax
push 0xffffffffffffffff
push 0x41c4bc
lea ecx, [esp + 0x90]
call fcn.00402c20
sub eax, esi
mov dword [esp + 0x40], edi
push eax
lea edi, [esi + 1]
push edi
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], bp
call fcn.00402160
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x50]
call fcn.00402160
cmp dword [esp + 0x40], 8
jb 0x407950
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040c611
add esp, 4
push ebx
push 0x41cea0
call fcn.0040c616
add esp, 4
push eax
push 0xffffffffffffffff
push 0x41cea0
lea ecx, [esp + 0x94]
call fcn.00402c20
mov ebx, eax
mov ecx, ebx
sub ecx, esi
dec ecx
push ecx
push edi
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], bp
call fcn.00402160
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x70]
call fcn.00402160
mov eax, dword [esp + 0x44]
mov esi, 8
cmp eax, esi
jb 0x4079c8
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0040c611
add esp, 4
mov eax, dword [esp + 0x9c]
add ebx, 2
cmp ebx, eax
ja 0x407a00
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x94]
call fcn.00403800
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.00402160
lea ecx, [esp + 0x2c]
call fcn.00402090
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
xor edi, edi
cmp eax, ebp
mov eax, dword [esp + 0x14]
jbe 0x407a58
cmp ebx, esi
mov ecx, eax
jae 0x407a1c
lea ecx, [esp + 0x14]
cmp word [ecx + edi*2], 0x20
je 0x407a4f
cmp ebx, esi
jae 0x407a2b
lea eax, [esp + 0x14]
lea esi, [eax + edi*2]
push esi
call fcn.0040c616
add esp, 4
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00402270
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov esi, 8
mov ecx, dword [esp + 0x24]
inc edi
cmp edi, ecx
jb 0x407a12
cmp dword [esp + 0x60], esi
mov edx, dword [esp + 0x4c]
jae 0x407a66
lea edx, [esp + 0x4c]
cmp ebx, esi
pop ebx
mov ecx, eax
jae 0x407a71
lea ecx, [esp + 0x10]
cmp dword [esp + 0x78], esi
mov eax, dword [esp + 0x64]
jae 0x407a7f
lea eax, [esp + 0x64]
push 0xa
push edx
push ecx
push eax
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x5c], esi
jb 0x407aa3
mov eax, dword [esp + 0x48]
push eax
call fcn.0040c611
add esp, 4
cmp dword [esp + 0x78], esi
mov edi, 7
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
jb 0x407ac8
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0040c611
add esp, 4
cmp dword [esp + 0x24], esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], bp
jb 0x407aef
mov edx, dword [esp + 0x10]
push edx
call fcn.0040c611
add esp, 4
jmp 0x407aef
mov esi, 8
cmp dword [esp + 0x9c], esi
jb 0x407dd4
mov eax, dword [esp + 0x88]
push eax
call fcn.0040c611
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x70]
call fcn.0040c26e
add esp, 0x74
ret
mov eax, dword [esp + 0x9c]
mov edi, 8
cmp eax, edi
mov eax, dword [esp + 0x88]
jae 0x407b3c
lea eax, [esp + 0x88]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push str._uninstallLsp
push eax
call esi
test eax, eax
jne 0x407bd5
mov ecx, dword [str.GameAcc.dll]
mov edx, dword [0x41c5fc]
mov eax, dword [0x41c600]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x41c604]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
mov edx, dword [0x41c608]
mov dword [esp + 0x14], eax
mov eax, dword [0x41c60c]
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
cmp esi, ebp
je 0x407dc8
push str.UninstallLsp
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x84]
call fcn.00402090
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x70]
call fcn.0040c26e
add esp, 0x74
ret
cmp dword [esp + 0x9c], edi
mov eax, dword [esp + 0x88]
jae 0x407bec
lea eax, [esp + 0x88]
push str._uninstall_allLsp
push eax
call esi
test eax, eax
jne 0x407c80
mov edx, dword [str.GameAcc.dll]
mov eax, dword [0x41c5fc]
mov ecx, dword [0x41c600]
mov dword [esp + 0xc], edx
mov edx, dword [0x41c604]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x41c608]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x41c60c]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebp
je 0x407dc8
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]
lea ecx, [esp + 0x84]
call fcn.00402090
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x70]
call fcn.0040c26e
add esp, 0x74
ret
push str._installNotify
call fcn.0040c616
add esp, 4
push eax
push ebp
push str._installNotify
lea ecx, [esp + 0x90]
call fcn.00402b40
cmp eax, 0xffffffff
lea ecx, [esp + 0x84]
je 0x407d23
push 0xffffffffffffffff
push 0x41c4bc
call fcn.00402ea0
push 0xffffffffffffffff
inc eax
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x90]
call fcn.00403800
mov ecx, dword [str.GameAcc.dll]
mov edx, dword [0x41c5fc]
mov eax, dword [0x41c600]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x41c604]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
mov edx, dword [0x41c608]
mov dword [esp + 0x14], eax
mov eax, dword [0x41c60c]
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
cmp esi, ebp
je 0x407dbf
push str.InstallNotify
jmp 0x407d9c
push ebp
push str._uninstallNotify
call fcn.00402e40
cmp eax, 0xffffffff
lea ecx, [esp + 0x84]
je 0x407de6
push 0xffffffffffffffff
push 0x11
lea edx, [esp + 0x30]
push edx
call fcn.00403800
mov eax, dword [str.GameAcc.dll]
mov ecx, dword [0x41c5fc]
mov edx, dword [0x41c600]
mov dword [esp + 0xc], eax
mov eax, dword [0x41c604]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [0x41c608]
mov dword [esp + 0x14], edx
mov edx, dword [0x41c60c]
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
cmp esi, ebp
je 0x407dbf
push str.UninstallNotify
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x407db8
cmp dword [esp + 0x40], edi
mov ecx, dword [esp + 0x2c]
jae 0x407db5
lea ecx, [esp + 0x2c]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x28]
call fcn.00402090
lea ecx, [esp + 0x84]
call fcn.00402090
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x70]
call fcn.0040c26e
add esp, 0x74
ret
call fcn.00402090
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
mov al, 1
pop ebp
call fcn.0040c26e
add esp, 0x74
ret