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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
mov eax, dword [0x413054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x414cf4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [0x414d10], ebx
je 0x4013fb
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40169c
push edi
mov dword [0x414d10], 1
mov dword [ebp - 0x4a8], ebx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x4a8], eax
mov eax, dword [0x414d0c]
mov ecx, dword [ebp - 0x4a8]
mov dword [eax + 0x20], ecx
mov ecx, dword [0x414d0c]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x34c], eax
mov edi, dword [0x414d0c]
mov esi, dword [eax]
push 0x14
add edi, 0x30
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x414d0c]
mov esi, dword [eax + 4]
sub edi, 0xffffff80
mov ecx, 0xb3
push ebx
lea eax, [ebp - 0x4a0]
rep movsd dword es:[edi], dword [esi]
call fcn.00401c9d
mov eax, dword [eax]
mov ecx, dword [0x414d0c]
mov dword [ecx + 0x5f4], eax
lea eax, [ebp - 0x49c]
cmp dword [ebp - 0x4a0], eax
je 0x40148c
push dword [ebp - 0x4a0]
call fcn.0040439c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x414d0c]
mov dword [ecx + 0x18], eax
xor eax, eax
push 0x206
mov word [ebp - 0x39c], ax
lea eax, [ebp - 0x39a]
push ebx
push eax
call fcn.00406dd0
xor eax, eax
push 0x18e
mov word [ebp - 0x194], ax
lea eax, [ebp - 0x192]
push ebx
push eax
call fcn.00406dd0
add esp, 0x18
push ebx
xor esi, esi
push ebx
inc esi
push esi
lea eax, [ebp - 0x4cc]
push eax
mov dword [ebp - 0x4cc], 0xc
mov dword [ebp - 0x4c8], ebx
mov dword [ebp - 0x4c4], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x40
mov dword [ebp - 0x4a4], eax
lea eax, [ebp - 0x50c]
push ebx
push eax
mov dword [ebp - 0x510], 0x44
call fcn.00406dd0
xor eax, eax
mov dword [ebp - 0x4c0], ebx
lea edi, [ebp - 0x4bc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push ebx
mov eax, esi
mov word [ebp - 0x4e0], ax
lea eax, [ebp - 0x39c]
push eax
push 0x104
push ebx
push str.bugreport.exe
push ebx
mov dword [ebp - 0x4e4], 0x81
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call edi
push eax
push esi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x4ac], eax
mov eax, dword [0x414d14]
cmp eax, ebx
je 0x401583
call eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4ac], ebx
je 0x40166b
cmp dword [ebp - 0x4a4], ebx
je 0x40166b
cmp word [ebp - 0x39c], bx
je 0x40166b
call edi
push eax
push dword [0x414d0c]
mov edi, 0xc8
push dword [ebp - 0x4ac]
lea eax, [ebp - 0x194]
push dword [ebp - 0x4a4]
push str.bugreport__buginfo:_p:_p:_p:_lu
push edi
push eax
call fcn.004044d2
add esp, 0x1c
call fcn.00401047
test eax, eax
jne 0x4015fb
push str.__NoUI
lea eax, [ebp - 0x194]
push edi
push eax
call fcn.004047e3
add esp, 0xc
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x510]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40166b
xor eax, eax
lea edi, [ebp - 0x4ac]
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x4a4]
mov dword [ebp - 0x4b0], eax
mov eax, dword [ebp - 0x4c0]
push 0xffffffffffffffff
mov dword [ebp - 0x4ac], eax
push ebx
lea eax, [ebp - 0x4b0]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x4c0]
call esi
push dword [ebp - 0x4bc]
call esi
push dword [ebp - 0x4a4]
call esi
mov eax, dword [0x414d18]
pop edi
cmp eax, ebx
je 0x40167f
call eax
push 0x414cf4
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]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004042c0
leave
ret