Function at 0x5918d0
Capabilities:
Capture process snapshot data
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca09d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x6b4888]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x18], 0
mov dword [ebx], 0
call sym.Install.dat__CrtReportBlockType
mov edi, eax
cmp edi, 0xffffffff
jne 0x591938
lea eax, [ebp - 0x18]
push eax
push 0x1003f
push 0x1981
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_PssCaptureSnapshot
mov dword [ebx], eax
test eax, eax
jne 0x591bd6
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0x105
mov dword [ebp + 0x14], eax
call sym.Install.dat_calloc
mov esi, eax
add esp, 8
mov dword [ebp - 0x24], esi
cmp dword [ebp + 0x14], 0xffffffff
mov dword [ebp - 4], 0
jne 0x591a59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x10]
push str._nFailed_to_open_file__ws_with_error__x_nTrying_default_dump_name..._n
push 2
call fcn.005adb37
add esp, 4
push eax
call fcn.00592470
add esp, 0x10
push esi
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x5919b4
mov edi, str._nFailed_to_get_temp_path_n
jmp 0x5919cc
push esi
push 0
push 0x6067c0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x5919eb
mov edi, str._nFailed_to_get_temp_file_name_n
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push 2
mov dword [ebx], eax
call fcn.005adb37
push edi
push eax
call fcn.00592470
add esp, 0xc
jmp 0x591bcd
push str..tmp
push esi
call fcn.00595136
add esp, 8
test eax, eax
je 0x591a0d
push str..dmp
push 5
push eax
call fcn.005a5363
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp + 0x14], ebx
cmp ebx, 0xffffffff
jne 0x591a5c
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push esi
push str._nFailed_to_open_temp_dump_location__ws_with_error__x_n
push 2
call fcn.005adb37
add esp, 4
push eax
call fcn.00592470
add esp, 0x10
jmp 0x591bcd
mov ebx, dword [ebp + 0x14]
push 0x800
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x591bcd
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x591bcd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
cmp edi, 0xffffffff
je 0x591b1a
mov dword [ebp - 0x10], 0x410
cmp edi, 2
jg 0x591acc
cmp edi, 0xffffffff
jle 0x591acc
xor ebx, ebx
sub edi, ebx
je 0x591b13
sub edi, 1
je 0x591b0c
sub edi, 1
jne 0x591ad8
mov ebx, 0x51b27
mov dword [ebp - 0x10], 0x450
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call edi
push eax
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x591bcd
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push ebx
mov ebx, dword [ebp + 0x14]
push ebx
call edi
push eax
push dword [ebp - 0x10]
jmp 0x591b42
mov ebx, 0x40121
jmp 0x591ad8
mov ebx, 0x1001a4
jmp 0x591ad1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x592150
push eax
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], 0
push eax
push 0x21003
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp - 0x18]
call dword [ebp - 0x1c]
test eax, eax
jne 0x591b6e
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push dword [ebp + 0x10]
push str._nFailed_to_save_dump_to___ws__with_error__x_n
push 2
call fcn.005adb37
add esp, 4
push eax
call fcn.00592470
add esp, 0x10
jmp 0x591b89
push dword [ebp + 0x10]
push str._nSuccesfully_saved_dump_to___ws__n
push 2
call fcn.005adb37
add esp, 4
push eax
call fcn.00592470
add esp, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
lea eax, [ebp + 0x14]
push 4
push eax
push 1
push edi
mov dword [ebp + 0x14], 0
call sub.KERNEL32.dll_PssQuerySnapshot
test eax, eax
jne 0x591bc0
push 0xffffffffffffffff
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_PssFreeSnapshot
push esi
call sym.Install.dat__aligned_free
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret