Function at 0x407790
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c7513
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x656770]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x656770]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
call fcn.00545cd0
call fcn.005b5ae0
call fcn.00545ce0
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00414e52
test eax, eax
jne 0x407801
lea ebx, [eax + 1]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00407f90
mov dword [esp + 0x18], eax
push esi
push dword [ebp + 8]
lea ecx, [esp + 0x20]
mov dword [esp + 0x120], 0
call fcn.0040ebe0
push str._exec
lea ecx, [esp + 0x1c]
call fcn.0040f080
cmp al, 1
jne 0x407898
sub esp, 0xc
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
call fcn.0040f110
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
je 0x407877
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 0x20]
lea edx, [eax - 0x10]
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407891
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
jmp 0x407aec
lea ecx, [esp + 0x20]
call fcn.0040fbd0
push 0x6332d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x11c], 1
call fcn.0040f080
mov esi, dword [esp + 0x20]
cmp al, 1
jne 0x40798d
sub esp, 8
mov ecx, esi
call fcn.0040fcd0
add esp, 8
cmp al, 1
jne 0x407911
sub esp, 0x18
mov ecx, esp
push 0x6332b8
call fcn.004067b0
lea ecx, [esp + 0x64]
call fcn.00401000
lea ecx, [eax + 0x18]
mov edx, str.nxTS_Monitor_Service_Installed
mov byte [esp + 0x118], 2
call fcn.00403a40
lea ecx, [esp + 0x4c]
call fcn.00401130
xor ebx, ebx
jmp 0x407ae1
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x18
mov ecx, esp
push 0x6332b8
mov ebx, eax
call fcn.004067b0
lea ecx, [esp + 0x64]
call fcn.00401000
lea edi, [eax + 0x18]
mov edx, str.nxTS_Monitor_Service_Install_Faile_:
mov ecx, edi
mov byte [esp + 0x118], 3
call fcn.00403a40
mov edx, ebx
lea ecx, [esp + 0x34]
call fcn.0040b4e0
mov edx, eax
mov ecx, edi
mov byte [esp + 0x118], 4
call fcn.00403d60
cmp dword [esp + 0x48], 0x10
jb 0x407977
push dword [esp + 0x34]
call fcn.00411632
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.00401130
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x407ae1
push 0x633344
lea ecx, [esp + 0x1c]
call fcn.0040f080
cmp al, 1
jne 0x407a3c
mov ecx, esi
call fcn.0040ff30
cmp al, 1
jne 0x4079eb
sub esp, 0x18
mov ecx, esp
push 0x6332b8
call fcn.004067b0
lea ecx, [esp + 0x64]
call fcn.00401000
lea ecx, [eax + 0x18]
mov edx, str.nxTS_Monitor_Service_Uninstalled
mov byte [esp + 0x118], 5
call fcn.00403a40
lea ecx, [esp + 0x4c]
call fcn.00401130
xor ebx, ebx
jmp 0x407ae1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
sub esp, 0x18
mov ecx, esp
push 0x6332b8
call fcn.004067b0
lea ecx, [esp + 0x68]
call fcn.00401000
mov edi, eax
lea ecx, [edi + 0x18]
mov edx, str.nxTS_Monitor_Service_Uninstall_Faile_:
mov byte [esp + 0x11c], 6
call fcn.00403a40
mov ecx, edi
call fcn.004010b0
lea ecx, [esp + 0x4c]
call fcn.00401130
call ebx
mov ebx, eax
jmp 0x407ae1
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0x6332f4
mov dword [esp + 0x2c], 0x4083a0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
cmp eax, 1
jne 0x407a9b
sub esp, 0x18
mov ecx, esp
push 0x6332b8
call fcn.004067b0
lea ecx, [esp + 0x64]
call fcn.00401000
lea ecx, [eax + 0x18]
mov edx, str.nxTS_Monitor_Service_Installed
mov byte [esp + 0x118], 7
call fcn.00403a40
jmp 0x407ad8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x18
mov ecx, esp
push 0x6332b8
call fcn.004067b0
lea ecx, [esp + 0x68]
call fcn.00401000
mov edi, eax
lea ecx, [edi + 0x18]
mov edx, str.nxTS_Monitor_Service_Start_Fail_:
mov byte [esp + 0x11c], 8
call fcn.00403a40
mov ecx, edi
call fcn.004010b0
lea ecx, [esp + 0x4c]
call fcn.00401130
test esi, esi
je 0x407aec
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esp + 0x118], 0xffffffff
mov ecx, dword [esp + 0x18]
push ecx
push dword [ecx]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call fcn.00407b70
push dword [esp + 0x18]
call fcn.00411632
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.005259c3
mov esp, ebp
pop ebp
ret