Function at 0x4606dd
Capabilities:
Check if file exists
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x30], eax
push esi
push edi
push 0x5c2888
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5c28a8], 0
je 0x46070d
xor eax, eax
jmp 0x460988
mov dword [0x5c28a8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0046062a
pop ecx
and dword [ebp - 8], 0
mov eax, dword fs:[0x18]
mov dword [ebp - 8], eax
mov eax, dword [0x5c28a0]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x20], ecx
mov eax, dword [0x5c28a0]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x34c], ecx
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov edi, dword [0x5c28a0]
add edi, 0x30
push 0x14
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov edi, dword [0x5c28a0]
add edi, 0x80
mov ecx, 0xb3
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x5c28a0]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x5f4], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5c28a0]
mov dword [ecx + 0x18], eax
cmp dword [0x5c2ac4], 0
je 0x4607a2
call dword [0x5c2ac4]
and dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xc
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 1
push 0
push 0
push 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x460831
push 2
push 1
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 4]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x460831
movzx eax, word [0x5c28b0]
test eax, eax
je 0x460816
push 0x5c28b0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x460831
push 0
push 0x5c28b0
push 0x105
push 0
push str.bugreport.exe
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp dword [ebp - 0x18], 0
je 0x460956
cmp dword [ebp - 0x1c], 0
je 0x460956
movzx eax, word [0x5c28b0]
test eax, eax
je 0x460956
xor eax, eax
mov word [ebp - 0x1c0], ax
push 0x18e
push 0
lea eax, [ebp - 0x1be]
push eax
call fcn.004b7da0
add esp, 0xc
push dword [0x5c28a4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [0x5c28a0]
push dword [ebp - 4]
push dword [ebp - 0x18]
push str.bugreport__buginfo:_p:_p:_p:_lu__extinfo:_p
push 0xc8
lea eax, [ebp - 0x1c0]
push eax
call fcn.004ba862
add esp, 0x20
and dword [ebp - 0x2c], 0
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x208], 0x44
push 0x40
push 0
lea eax, [ebp - 0x204]
push eax
call fcn.004b7da0
add esp, 0xc
mov dword [ebp - 0x1dc], 1
xor eax, eax
inc eax
mov word [ebp - 0x1d8], ax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x1c0]
push eax
push 0x5c28b0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x460956
and dword [ebp - 0x210], 0
xor eax, eax
lea edi, [ebp - 0x20c]
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20c], eax
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x210]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x460965
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x5c2ac8], 0
je 0x460974
call dword [0x5c2ac8]
push 0x1234
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004b2f5a
leave
ret