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

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4e880c]
xor eax, ebp
mov dword [ebp + 0x188], eax
push ebx
push 0x4ebec8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [0x4ebee8], ebx
jne 0x4a8f4a
lea eax, [ebp - 0x14]
push eax
mov dword [0x4ebee8], 1
mov dword [ebp - 0x14], ebx
call fcn.004a9497
mov ecx, eax
call fcn.004a944b
test eax, eax
je 0x4a8d50
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004a8c3a
pop ecx
push dword [ebp - 0x14]
call fcn.004a9497
mov ecx, eax
call fcn.004a947c
push esi
push edi
mov dword [ebp - 0x18], ebx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4ebee0]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x20], ecx
mov ecx, dword [0x4ebee0]
mov eax, dword [ebp + 0x194]
mov dword [ecx + 0x34c], eax
mov edi, dword [0x4ebee0]
mov esi, dword [eax]
add edi, 0x30
push 0x14
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x4ebee0]
mov esi, dword [eax + 4]
add edi, 0x80
mov ecx, 0xb3
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4ebee0]
mov ecx, dword [ebp + 0x198]
mov dword [eax + 0x5f4], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4ebee0]
mov dword [ecx + 0x18], eax
mov eax, dword [0x4ebeec]
cmp eax, ebx
je 0x4a8dcc
call eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
xor esi, esi
push ebx
inc esi
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4a8f17
push 2
push esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, ebx
je 0x4a8f17
cmp word [0x4ebef0], bx
je 0x4a8e34
push 0x4ebef0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a8e4c
push ebx
push 0x4ebef0
push 0x105
push ebx
push str.bugreport_xf.exe
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp word [0x4ebef0], bx
je 0x4a8f17
push 0x18e
lea eax, [ebp - 6]
push ebx
push eax
mov word [ebp - 8], bx
call fcn.0048c300
add esp, 0xc
push dword [0x4ebee4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [0x4ebee0]
lea eax, [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push str.bugreport__buginfo:_p:_p:_p:_lu__extinfo:_p
push 0xc8
push eax
call fcn.004ba090
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0048c300
add esp, 0x2c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push esi
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x4ebef0
mov dword [ebp - 0x54], esi
mov word [ebp - 0x50], si
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4a8f17
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
push 0xffffffffffffffff
mov dword [ebp - 0x1c], eax
push ebx
lea eax, [ebp - 0x20]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
jmp 0x4a8f1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x10], ebx
pop edi
pop esi
je 0x4a8f2d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4ec0fc]
cmp eax, ebx
je 0x4a8f38
call eax
push 0x1234
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0048c010
add ebp, 0x18c
leave
ret