Function at 0x401340
Capabilities:
Access peb ldr_data
Create process on windows
Get kernel32 base address
Get process heap flags
Get process heap force flags
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x445d96
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x454280]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x454280]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
mov ebx, ecx
push 0x457328
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebp, ebp
cmp dword [0x457348], ebp
je 0x4013a2
push 0x457328
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4016b4
mov dword [0x457348], 1
mov dword [esp + 0x18], ebp
mov eax, dword fs:[0x18]
mov dword [esp + 0x18], eax
mov eax, dword [0x457344]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x20], ecx
mov edx, dword [0x457344]
mov dword [edx + 0x34c], ebx
mov edi, dword [0x457344]
mov esi, dword [ebx]
add edi, 0x30
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x457344]
mov esi, dword [ebx + 4]
add edi, 0x80
mov ecx, 0xb3
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x457344]
mov dword [eax + 0x5f4], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x457344]
push 0x206
lea edx, [esp + 0x21e]
push ebp
mov dword [ecx + 0x18], eax
push edx
mov word [esp + 0x224], bp
call fcn.0042b000
push 0x18e
lea eax, [esp + 0x9a]
push ebp
push eax
mov word [esp + 0xa0], bp
call fcn.0042b000
add esp, 0x18
push ebp
push ebp
mov esi, 1
push esi
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], 0xc
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x40
lea edx, [esp + 0x4c]
push ebp
push edx
mov edi, eax
mov dword [esp + 0x50], 0x44
call fcn.0042b000
add esp, 0xc
xor eax, eax
push ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x21c]
push eax
push 0x104
push ebp
push str.bugreport.exe
push ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x88], 0x81
mov word [esp + 0x8c], si
call dword [sym.imp.KERNEL32.dll_SearchPathW]
lea esi, [esp + 0x40]
call fcn.004025b0
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, str._bugreport.exe
mov dword [esp + 0x434], ebp
call fcn.00401d80
add esp, 8
mov byte [esp + 0x42c], 2
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401515
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
lea edx, [esp + 0x220]
push 0x104
push edx
call fcn.00429391
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 0x10
call ebx
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [0x457354]
cmp eax, ebp
je 0x401554
call eax
cmp esi, ebp
je 0x40165a
cmp edi, ebp
je 0x40165a
cmp word [esp + 0x218], bp
je 0x40165a
cmp dword [0x4556ac], ebp
je 0x4015c5
cmp dword [0x4556b0], 8
jb 0x40158e
mov eax, dword [0x45569c]
mov dword [esp + 0x1c], eax
jmp 0x401596
mov dword [esp + 0x1c], 0x45569c
call ebx
mov ecx, dword [0x457344]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push esi
push edi
push edx
push str.bugreport__version:_s__buginfo:_p:_p:_p:_lu
push 0xffffffffffffffff
lea eax, [esp + 0xa4]
push 0xc8
push eax
call fcn.004294f0
add esp, 0x24
jmp 0x4015ed
call ebx
mov ecx, dword [0x457344]
push eax
push ecx
push esi
push edi
push str.bugreport__buginfo:_p:_p:_p:_lu
push 0xffffffffffffffff
lea edx, [esp + 0xa0]
push 0xc8
push edx
call fcn.004294f0
add esp, 0x20
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
push ebp
push ebp
push ebp
push 1
push ebp
push ebp
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40165a
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], ebp
push 2
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x457358]
cmp eax, ebp
je 0x40166c
call eax
push 0x457328
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 dword [esp + 0x42c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4016b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00429296
add esp, 0x41c
ret