Function at 0x40bdc0
Capabilities:
Create process on windows
Get process heap flags
Get process heap force flags
Terminate process

Disassembly:
sub esp, 0x404
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
push ebp
push 0x424150
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebp, ebp
cmp dword [0x4242b0], ebp
jne 0x40bfee
push esi
push edi
mov dword [0x4242b0], 1
mov dword [esp + 0x14], ebp
mov eax, dword fs:[0x18]
mov dword [esp + 0x14], eax
mov eax, dword [0x4242ac]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x20], ecx
mov edx, dword [0x4242ac]
mov dword [edx + 0x34c], ebx
mov edi, dword [0x4242ac]
mov esi, dword [ebx]
add edi, 0x30
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x4242ac]
mov esi, dword [ebx + 4]
add edi, 0x80
mov ecx, 0xb3
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4242ac]
mov dword [eax + 0x5f4], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4242ac]
push 0x206
lea edx, [esp + 0x20e]
push ebp
mov dword [ecx + 0x18], eax
push edx
mov word [esp + 0x214], bp
call sub.MSVCR80.dll_memset
push 0x18e
lea eax, [esp + 0x8a]
push ebp
push eax
mov word [esp + 0x90], bp
call sub.MSVCR80.dll_memset
add esp, 0x18
push ebp
push ebp
mov ebx, 1
push ebx
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x40
lea edx, [esp + 0x3c]
push ebp
push edx
mov esi, eax
mov dword [esp + 0x40], 0x44
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20c]
push eax
push 0x104
push ebp
push str.bugreport.exe
push ebp
mov dword [esp + 0x78], ebx
mov word [esp + 0x7c], bx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov eax, dword [esp + 0x10]
push 2
push ebx
push ebp
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, eax
mov eax, dword [0x4242b4]
cmp eax, ebp
je 0x40bf3e
call eax
cmp edi, ebp
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40bfcc
cmp esi, ebp
je 0x40bfcc
cmp word [esp + 0x208], bp
je 0x40bfcc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [0x4242ac]
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
push esi
push str.bugreport__buginfo:_p:_p:_p:_lu
push 0xffffffffffffffff
lea ecx, [esp + 0x90]
push 0xc8
push ecx
call dword [sym.imp.MSVCR80.dll__snwprintf_s]
add esp, 0x20
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
push ebp
push ebp
push ebp
push ebx
push ebp
push ebp
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40bfcc
mov eax, dword [esp + 0x18]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
mov eax, dword [0x4242b8]
cmp eax, ebp
pop edi
pop esi
je 0x40bfdc
call eax
push 0x1234
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x408]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004158da
add esp, 0x404
ret