Function at 0x405590
Capabilities:
Create process on windows
Get process heap flags
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x40b704]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x4057b5
push esi
push edi
mov dword [0x40b704], 1
mov dword [ebp - 8], ebx
mov eax, dword fs:[0x18]
mov dword [ebp - 8], eax
mov eax, dword [0x40b700]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x20], ecx
mov edx, dword [0x40b700]
mov eax, dword [ebp + 8]
mov dword [edx + 0x34c], eax
mov ecx, dword [0x40b700]
mov esi, dword [eax]
lea edi, [ecx + 0x30]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x40b700]
mov esi, dword [eax + 4]
mov ecx, 0xb3
lea edi, [edx + 0x80]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x40b700]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x5f4], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [0x40b700]
mov dword [edx + 0x18], eax
call fcn.00405500
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x3fe]
mov word [ebp - 0x400], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x63
xor eax, eax
lea edi, [ebp - 0x1f6]
mov word [ebp - 0x1f8], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
lea eax, [ebp - 0x24]
push 1
push eax
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x64]
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x18], ebx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 4], eax
mov eax, dword [0x40b6f8]
mov edi, 1
cmp eax, ebx
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x38], di
jne 0x4056cb
lea edx, [ebp - 0x400]
push ebx
push edx
push 0x104
push ebx
push str.bugreport.exe
push ebx
jmp 0x4056ed
mov eax, dword [0x40b6f4]
cmp eax, ebx
jne 0x4056d9
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x400]
push ebx
push ecx
push 0x104
push ebx
push str.bugreport.exe
push eax
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov eax, dword [ebp - 4]
push 2
push edi
lea edx, [ebp - 4]
push ebx
push edx
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, eax
mov eax, dword [0x40b708]
cmp eax, ebx
je 0x405714
call eax
cmp edi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x405793
cmp esi, ebx
je 0x405793
cmp word [ebp - 0x400], bx
je 0x405793
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 4]
push eax
mov eax, dword [0x40b700]
lea edx, [ebp - 0x1f8]
push eax
push ecx
push esi
push str.bugreport__buginfo:_p:_p:_p:_lu
push 0xc8
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x1f8]
push eax
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x400]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405793
mov ecx, dword [ebp - 0x18]
push ecx
call edi
mov edx, dword [ebp - 0x14]
push edx
call edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
mov eax, dword [0x40b70c]
pop edi
cmp eax, ebx
pop esi
je 0x4057a3
call eax
push 0x1234
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret