Function at 0x4cf9c0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x59fce4
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x59f49c], 0
je 0x4cfa06
push 0x59fce4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
mov eax, dword [0x59f494]
mov dword [0x59f49c], 1
test eax, eax
je 0x4cfa1c
push ebx
call eax
push esi
push edi
mov dword [ebp - 0x5a8], 0
mov eax, dword fs:[0x18]
mov dword [ebp - 0x5a8], eax
mov ecx, dword [0x59f4a0]
mov eax, dword [ebp - 0x5a8]
push 0
mov dword [ecx + 0x20], eax
mov eax, dword [0x59f4a0]
mov dword [eax + 0x34c], ebx
mov eax, dword [ebx]
mov ecx, dword [0x59f4a0]
movups xmm0, xmmword [eax]
movups xmmword [ecx + 0x30], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x40], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x50], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ecx + 0x60], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [ecx + 0x70], xmm0
mov edi, dword [0x59f4a0]
mov ecx, 0xb3
mov esi, dword [ebx + 4]
sub edi, 0xffffff80
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x298]
call fcn.00407080
mov ecx, dword [eax]
mov eax, dword [0x59f4a0]
mov dword [eax + 0x5f4], ecx
lea ecx, [ebp - 0x294]
mov eax, dword [ebp - 0x298]
cmp eax, ecx
je 0x4cfac3
push eax
call fcn.004a51fb
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x59f4a0]
push 0x208
push 0
mov dword [ecx + 0x18], eax
lea eax, [ebp - 0x5a4]
push eax
call fcn.0049e130
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.0049e130
add esp, 0x18
mov dword [ebp - 0x5cc], 0xc
lea eax, [ebp - 0x5cc]
mov dword [ebp - 0x5c8], 0
mov dword [ebp - 0x5c4], 1
push 0
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x40
mov edi, eax
mov dword [ebp - 0x610], 0x44
lea eax, [ebp - 0x60c]
push 0
push eax
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0x5e4], 0x81
mov eax, 1
xorps xmm0, xmm0
mov word [ebp - 0x5e0], ax
lea eax, [ebp - 0x5a4]
movups xmmword [ebp - 0x5c0], xmm0
push 0
push eax
push 0x104
push 0
push 0x555ddc
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5ac], eax
test eax, eax
je 0x4cfd12
test edi, edi
je 0x4cfd19
cmp word [ebp - 0x5a4], 0
je 0x4cfd12
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [0x59f4a0]
lea eax, [ebp - 0x194]
push dword [ebp - 0x5ac]
push edi
push 0x555df8
push 0xc8
push eax
call fcn.00407180
add esp, 0x1c
cmp dword [0x59aac8], 0
jne 0x4cfc15
push str.__NoUI
lea eax, [ebp - 0x194]
push 0xc8
push eax
call fcn.004a6e35
add esp, 0xc
push 0x208
lea eax, [ebp - 0x39c]
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x39c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4cfc83
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.__ProcessPath:
mov esi, eax
lea eax, [ebp - 0x194]
push 0xc8
push eax
call fcn.004a6e35
push esi
lea eax, [ebp - 0x194]
push 0xc8
push eax
call fcn.004a6e35
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
lea eax, [ebp - 0x5c0]
push eax
lea eax, [ebp - 0x610]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x5a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4cfd12
mov eax, dword [ebp - 0x5c0]
push 0xffffffffffffffff
mov dword [ebp - 0x5ac], 0
mov dword [ebp - 0x5ac], eax
lea eax, [ebp - 0x5b0]
push 0
push eax
push 2
mov dword [ebp - 0x5b0], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebp - 0x5c0]
test eax, eax
je 0x4cfcfb
push eax
call esi
mov dword [ebp - 0x5c0], 0
mov eax, dword [ebp - 0x5bc]
test eax, eax
je 0x4cfd12
push eax
call esi
mov dword [ebp - 0x5bc], 0
test edi, edi
je 0x4cfd19
push edi
call esi
mov eax, dword [0x59f490]
pop edi
pop esi
test eax, eax
je 0x4cfd27
push ebx
call eax
push 0x59fce4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1234
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0049aa22
mov esp, ebp
pop ebp
ret