Function at 0x409328
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x431034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x43336c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [0x4333f8], ebx
je 0x409359
push esi
jmp 0x409672
push edi
mov dword [0x4333f8], 1
mov dword [ebp - 0x5b0], ebx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x5b0], eax
mov eax, dword [0x4333f4]
mov ecx, dword [ebp - 0x5b0]
mov dword [eax + 0x20], ecx
mov ecx, dword [0x4333f4]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x34c], eax
mov edi, dword [0x4333f4]
mov esi, dword [eax]
push 0x14
add edi, 0x30
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x4333f4]
mov esi, dword [eax + 4]
sub edi, 0xffffff80
mov ecx, 0xb3
push ebx
lea eax, [ebp - 0x298]
rep movsd dword es:[edi], dword [esi]
call fcn.0040a863
mov eax, dword [eax]
mov ecx, dword [0x4333f4]
mov dword [ecx + 0x5f4], eax
lea eax, [ebp - 0x294]
cmp dword [ebp - 0x298], eax
je 0x4093eb
push dword [ebp - 0x298]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4333f4]
mov dword [ecx + 0x18], eax
xor eax, eax
push 0x206
mov word [ebp - 0x5a4], ax
lea eax, [ebp - 0x5a2]
push ebx
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x18e
mov word [ebp - 0x194], ax
lea eax, [ebp - 0x192]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0x18
push ebx
xor esi, esi
push ebx
inc esi
push esi
lea eax, [ebp - 0x5bc]
push eax
mov dword [ebp - 0x5bc], 0xc
mov dword [ebp - 0x5b8], ebx
mov dword [ebp - 0x5b4], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x40
mov dword [ebp - 0x5a8], eax
lea eax, [ebp - 0x614]
push ebx
push eax
mov dword [ebp - 0x618], 0x44
call sub.MSVCR100.dll_memset
xor eax, eax
mov dword [ebp - 0x5cc], ebx
lea edi, [ebp - 0x5c8]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x5a4]
push eax
mov word [ebp - 0x5e8], si
mov esi, 0x104
push esi
push ebx
push str.bugreport.exe
push ebx
mov dword [ebp - 0x5ec], 0x81
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call edi
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x5ac], eax
mov eax, dword [0x433404]
cmp eax, ebx
je 0x4094e2
call eax
cmp dword [ebp - 0x5ac], ebx
je 0x409643
cmp dword [ebp - 0x5a8], ebx
je 0x409643
cmp word [ebp - 0x5a4], bx
je 0x409643
call edi
push eax
push dword [0x4333f4]
mov edi, 0xc8
push dword [ebp - 0x5ac]
lea eax, [ebp - 0x194]
push dword [ebp - 0x5a8]
push str.bugreport__buginfo:_p:_p:_p:_lu
push edi
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf]
add esp, 0x1c
cmp dword [0x431ce8], ebx
jne 0x409555
push str.__NoUI
lea eax, [ebp - 0x194]
push edi
push eax
call dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0xc
xor eax, eax
push 0x206
mov word [ebp - 0x39c], ax
lea eax, [ebp - 0x39a]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x39c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4095af
mov esi, dword [sym.imp.MSVCR100.dll_wcscat_s]
push str.__ProcessPath:
lea eax, [ebp - 0x194]
push edi
push eax
call esi
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x194]
push edi
push eax
call esi
add esp, 0x18
cmp dword [0x4333fc], ebx
je 0x4095cd
push str.__PostAll
lea eax, [ebp - 0x194]
push edi
push eax
call dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x5cc]
push eax
lea eax, [ebp - 0x618]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x5a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409643
xor eax, eax
lea edi, [ebp - 0x5d0]
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x5a8]
mov dword [ebp - 0x5d4], eax
mov eax, dword [ebp - 0x5cc]
push 0xffffffffffffffff
mov dword [ebp - 0x5d0], eax
push ebx
lea eax, [ebp - 0x5d4]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x5cc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x5c8]
call esi
push dword [ebp - 0x5a8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [0x433408]
pop edi
cmp eax, ebx
je 0x40965d
call eax
cmp dword [ebp - 0x5ac], ebx
je 0x40966d
push dword [ebp - 0x5ac]
call esi
push 0x43336c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00421ac2
leave
ret