Function at 0x401516
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c8
mov eax, dword [0x42c4fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x42d154
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [0x42d17c], ebx
je 0x40154d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x401763
push edi
mov dword [0x42d17c], 1
mov dword [ebp - 0x3a4], ebx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x3a4], eax
mov eax, dword [0x42d178]
mov ecx, dword [ebp - 0x3a4]
mov dword [eax + 0x20], ecx
mov ecx, dword [0x42d178]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x34c], eax
mov edi, dword [0x42d178]
mov esi, dword [eax]
add edi, 0x30
push 0x14
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x42d178]
mov esi, dword [eax + 4]
add edi, 0x80
mov ecx, 0xb3
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x42d178]
mov dword [eax + 0x5f4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x42d178]
mov dword [ecx + 0x18], eax
push 0x206
lea eax, [ebp - 0x39a]
push ebx
push eax
mov word [ebp - 0x39c], bx
call sub.MSVCR80.dll_memset
push 0x18e
lea eax, [ebp - 0x192]
push ebx
push eax
mov word [ebp - 0x194], bx
call sub.MSVCR80.dll_memset
add esp, 0x18
push ebx
xor esi, esi
push ebx
inc esi
push esi
lea eax, [ebp - 0x3b8]
push eax
mov dword [ebp - 0x3b8], 0xc
mov dword [ebp - 0x3b4], ebx
mov dword [ebp - 0x3b0], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x3a0], eax
xor eax, eax
mov dword [ebp - 0x3c8], ebx
lea edi, [ebp - 0x3c4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x39c]
push eax
push 0x104
push ebx
push str.bugreport.exe
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call edi
push eax
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x3a8], eax
mov eax, dword [0x42d180]
cmp eax, ebx
je 0x40167c
call eax
cmp dword [ebp - 0x3a8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401732
cmp dword [ebp - 0x3a0], ebx
je 0x401732
cmp word [ebp - 0x39c], bx
je 0x401732
call edi
push eax
push dword [0x42d178]
lea eax, [ebp - 0x194]
push dword [ebp - 0x3a8]
push dword [ebp - 0x3a0]
push str.bugreport__buginfo:_p:_p:_p:_lu
push 0xc8
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf]
lea eax, [ebp - 0x3c8]
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x39c]
push eax
call section..text
add esp, 0x28
test eax, eax
je 0x401732
xor eax, eax
lea edi, [ebp - 0x3a8]
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x3a0]
mov edi, dword [ebp - 0x3c8]
push 0xffffffffffffffff
mov dword [ebp - 0x3ac], eax
push ebx
lea eax, [ebp - 0x3ac]
push eax
push 2
mov dword [ebp - 0x3a8], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
call esi
push dword [ebp - 0x3c4]
call esi
push dword [ebp - 0x3a0]
call esi
mov eax, dword [0x42d184]
cmp eax, ebx
pop edi
je 0x401746
call eax
push 0x42d154
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.00416e92
leave
ret