Function at 0x5108b0
Capabilities:
Create process on windows
Create process suspended
Delete file
Get common file path
Terminate process

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x374]
lea esi, [ebp - 0x378]
push ebx
mov edi, edx
lea ebx, [ebp - 0x388]
sub esp, 0x3ac
mov byte [0x84fdc0], 0
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x22d]
mov eax, 1
mov dword [ebp - 0x378], 0x44
mov dword [ebp - 0x34c], 1
mov word [ebp - 0x348], ax
mov dword [esp + 4], edi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 8
mov dword [esp], edi
mov dword [esp + 0xc], 0x84fdc0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5eee65
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
mov dword [esp], edi
mov dword [esp + 0xc], 0x84fdc0
mov dword [esp + 8], 0x84fee0
mov dword [esp + 4], str.__s__process_dump___s_
call fcn.0050d7a0
lea edx, [ebp - 0x331]
mov dword [esp + 4], 0x104
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
sub esp, 8
call fcn.0057d110
lea edx, [ebp - 0x331]
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x488
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 4], edi
mov edi, dword [sym.imp.kernel32.dll_CreateProcessA]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call edi
sub esp, 0x28
mov dword [esp], eax
mov dword [esp + 4], 0x5ef99c
call fcn.0050e8b0
mov eax, ebx
call fcn.0050e290
mov dword [esp + 0xc], 0x84fdc0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
lea edx, [ebp - 0x331]
mov ecx, str.CurrDirA
mov eax, 0x48c
sub esp, 0x10
mov dword [esp], edx
mov edx, str.Misc
mov dword [esp + 4], 0
call fcn.00510420
mov dword [0x57f4a4], 0x80fda0
mov dword [esp], 0x84fdc0
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x491
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57f464
mov dword [esp], 0
call edi
sub esp, 0x28
mov dword [esp], eax
mov dword [esp + 4], 0x5ef99c
call fcn.0050e8b0
call fcn.0057d110
mov edx, dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x492
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x388]
mov dword [esp], eax
mov dword [ebp - 0x390], edx
call edx
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], str.Child_process_termination_n
call fcn.0050e8b0
mov eax, dword [ebp - 0x384]
mov ecx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
mov dword [ebp - 0x38c], ecx
call ecx
mov eax, dword [ebp - 0x388]
sub esp, 4
mov dword [esp], eax
mov ecx, dword [ebp - 0x38c]
call ecx
mov dword [ebp - 0x388], 0
mov ecx, dword fs:[0x18]
mov dword [ecx + 0x34], 0xdeadbeef
sub esp, 4
mov dword [ebp - 0x38c], ecx
mov dword [ebp - 0x384], 0
mov dword [ebp - 0x380], 0
mov dword [ebp - 0x37c], 0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x499
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], str.nonexistentdirectory
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57f464
mov dword [esp], 0
call edi
sub esp, 0x28
test eax, eax
sete al
mov dword [esp + 4], 0x5ef99c
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
call fcn.0057d110
mov ecx, dword [ebp - 0x38c]
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x49b
mov eax, dword [ecx + 0x34]
mov dword [esp + 4], str.Expected_ERROR_DIRECTORY__got__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ecx + 0x34], 0x10b
sete al
mov dword [esp], eax
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x49c
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x388]
mov dword [esp], eax
mov edx, dword [ebp - 0x390]
call edx
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], str.Child_process_should_not_exist_n
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret