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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
lea esi, [ebp - 0x50]
push ebx
mov ebx, eax
sub esp, 0x98
mov dword [ebp - 0x6c], ecx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 0x24], 0x100
sub esp, 4
mov dword [esp], 0xfffffff6
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0xc]
sub esp, 4
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x403250
mov edi, section..debug_ranges
mov dword [esp], str.ntdll.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
je 0x4030e0
mov dword [esp + 4], str.wine_server_call
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x4030e0
mov ecx, dword [sym.imp.advapi32.dll_GetTokenInformation]
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x68]
mov dword [esp + 0x10], edx
mov dword [ebp - 0x74], edx
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x12
mov dword [esp], 0xfffffffa
mov dword [ebp - 0x70], ecx
call ecx
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
sub esp, 0x14
test eax, eax
je 0x403318
cmp dword [ebp - 0x68], 2
je 0x403318
lea eax, [ebp - 0x64]
mov dword [esp + 0x10], edx
mov dword [ebp - 0x70], edx
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x13
mov dword [esp], 0xfffffffa
call ecx
mov edx, dword [ebp - 0x70]
sub esp, 0x14
test eax, eax
je 0x403318
mov eax, dword [ebp - 0x64]
jmp 0x4030e5
xor eax, eax
lea edx, [ebp - 0x60]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], esi
mov ecx, dword [ebp - 0x6c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CreateProcessAsUserA]
sub esp, 0x2c
test eax, eax
je 0x403340
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x403280
mov eax, dword [ebp - 0x5c]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call esi
mov eax, dword [ebp + 0x10]
sub esp, 4
test eax, eax
je 0x403163
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x60]
call dbg.wait_process
mov dword [ebp - 0x64], eax
cmp eax, 0x102
je 0x4031a1
cmp eax, 0xffffffff
je 0x4032b8
test eax, eax
je 0x403298
mov dword [esp + 8], eax
mov dword [esp + 4], str.Wait_returned__d
mov dword [esp], 8
call dbg.report
mov dword [esp + 4], 0x101
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
sub esp, 8
test eax, eax
je 0x403220
mov eax, dword [ebp - 0x60]
mov edx, 0x1388
call dbg.wait_process
cmp eax, 0x102
je 0x403320
cmp eax, 0xffffffff
je 0x4032e8
test eax, eax
je 0x403200
mov dword [esp + 8], eax
mov dword [esp + 4], str.Waiting_for_termination:__d
mov dword [esp], 8
call dbg.report
lea esi, [esi]
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x64]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.TerminateProcess_failed:__d
mov dword [esp], 8
mov dword [esp + 8], eax
call dbg.report
jmp 0x4031bc
mov edi, dword [sym.imp.kernel32.dll_SetErrorMode]
mov dword [esp], 0
call edi
mov dword [ebp - 0x78], eax
sub esp, 4
or eax, 1
mov dword [esp], eax
call edi
xor edi, edi
sub esp, 4
jmp 0x403022
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetErrorMode]
sub esp, 4
jmp 0x403143
lea eax, [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
sub esp, 8
jmp 0x403200
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Wait_for__s_failed:__d
mov dword [esp + 0xc], eax
mov dword [esp], 8
call dbg.report
jmp 0x4031a1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Wait_for_termination_of__s_failed:__d
mov dword [esp + 0xc], eax
mov dword [esp], 8
call dbg.report
jmp 0x403200
xor eax, eax
jmp 0x4030e5
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Cant_kill_process__s
mov dword [esp], 8
call dbg.report
jmp 0x403200
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x403361
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x403357
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, 0xfffffffe
jmp 0x40320e
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetErrorMode]
sub esp, 4
jmp 0x403347