Function at 0x7979b8
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
mov edi, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040ab78
xor eax, eax
push ebp
push 0x797c78
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea edx, [ebp - 0x6c]
mov eax, edi
call fcn.007976fc
push dword [ebp - 0x6c]
push 0x797c98
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040bb50
cmp dword [ebp - 4], 0
jne 0x797a38
lea edx, [ebp - 0x70]
mov eax, edi
call fcn.0042473c
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 4]
call fcn.0042b004
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.00407fe0
mov dword [ebp - 0x58], 0x44
movzx eax, word [ebp + 0xc]
mov word [ebp - 0x28], ax
mov eax, 0x797c9c
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 4], 0
je 0x797a70
mov eax, dword [ebp - 4]
call fcn.0040b860
mov edi, eax
jmp 0x797a72
xor edi, edi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push 0
push 4
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040b860
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x797aa7
xor ebx, ebx
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x797c41
push esi
lea esi, [ebp - 0x68]
mov edi, 0x7cf13c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [ebp - 0x60]
push eax
call fcn.004fb694
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x797ad7
mov eax, dword [ebp - 0x68]
push eax
call fcn.004fb668
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x797aef
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
mov eax, dword [0x7cf100]
mov edi, dword [eax + 0x44]
lea edx, [ebp - 0xc]
mov dword [ebp - 0x74], edi
mov eax, dword [ebp - 0x74]
call fcn.0042afbc
mov eax, dword [0x7cf100]
mov eax, dword [eax + 0x8c]
cmp byte [eax + 8], 0
jne 0x797b1b
call fcn.0054b8b8
lea eax, [ebp - 0x78]
mov ecx, 0x797cac
mov edx, dword [ebp - 0xc]
call fcn.0040bac8
mov eax, dword [ebp - 0x78]
call fcn.00797784
test al, al
jne 0x797b4d
mov ecx, 0xe
mov dl, 1
mov eax, dword [0x41c540]
call fcn.004299b0
call fcn.0040a150
mov eax, dword [0x7cf100]
mov ecx, dword [eax + 0x74]
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0xc]
call fcn.0040bac8
mov eax, dword [ebp - 0x7c]
call fcn.0040b860
push eax
mov eax, dword [ebp - 0x60]
push eax
call fcn.004fb67c
test eax, eax
jne 0x797b8c
mov ecx, 0xf
mov dl, 1
mov eax, dword [0x41c540]
call fcn.004299b0
call fcn.0040a150
lea eax, [ebp - 0x80]
mov ecx, 0x797cd8
mov edx, dword [ebp - 0xc]
call fcn.0040bac8
mov eax, dword [ebp - 0x80]
call fcn.0040b860
push eax
mov eax, dword [ebp - 0x60]
push eax
call fcn.004fb67c
test eax, eax
jne 0x797bc8
mov ecx, 0x10
mov dl, 1
mov eax, dword [0x41c540]
call fcn.004299b0
call fcn.0040a150
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [ebp + 0x10], 0
je 0x797beb
push 0xffffffffffffffff
mov eax, dword [ebp - 0x68]
push eax
call sub.user32.dll_WaitForInputIdle
cmp byte [ebp + 0x14], 0
je 0x797c1d
mov eax, dword [0x7cf100]
cmp byte [eax + 0x93], 0
jne 0x797c1d
call fcn.007976c8
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x68]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x797bf1
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [0x7cf100]
mov byte [eax + 0xc], 1
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x797c7f
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.0040aaf4
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.0040aaf4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040aaf4
pop eax
jmp eax