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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4196dd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x425148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], 0
mov dword [eax], 0
call fcn.00403e20
push 0x80
push dword [ebp + 0x10]
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004095de
add esp, 8
mov dword [ebp - 0x20], eax
lea ebx, [eax + 8]
mov dword [ebp - 0x10], ebx
cmp ebx, 0x80
jb 0x4030cb
mov ebx, 0x80
mov dword [ebp - 0x10], ebx
push 2
push ebx
call fcn.00401e00
mov esi, eax
mov dword [ebp - 0x24], esi
push dword [ebp - 0x20]
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
push ebx
push esi
call fcn.0040e6c9
add esp, 0x18
cmp edi, 0xffffffff
jne 0x40311b
lea eax, [ebp - 0x1c]
push eax
push 0x1003f
push 0x1981
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_PssCaptureSnapshot
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
test eax, eax
jne 0x403497
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403329
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x403223
push esi
push str._nFailed_to_create_file__ws_as_it_already_exists._n
push 2
call fcn.0040acb2
add esp, 4
push eax
call fcn.00403e30
add esp, 0xc
mov edi, 1
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x403184
cmp ebx, 0xffffffff
jne 0x403326
cmp edi, 0xa
jae 0x40321a
push 0x80
push esi
call fcn.004095de
sub eax, 4
push 4
push 0x41a954
lea ebx, [esi + eax*2]
push ebx
call fcn.0040abb0
add esp, 0x14
test eax, eax
jne 0x4031b5
mov word [ebx], ax
push 0x41a954
push edi
push esi
push 0x78
push str._.s___zu__s
push dword [ebp - 0x10]
push esi
call fcn.00403e60
add esp, 0x1c
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403214
push esi
push str._nFailed_to_create_file__ws_as_it_already_exists._n
push 2
call fcn.0040acb2
add esp, 4
push eax
call fcn.00403e30
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call fcn.0040aa73
add esp, 0x18
inc edi
jmp 0x403170
cmp ebx, 0xffffffff
jne 0x403326
push 2
push 0x105
call fcn.00401e00
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
mov edi, eax
call ebx
push eax
push esi
push str._nFailed_to_create_file__ws_with_error__x_nTrying_temporary_path._n
push 2
call fcn.0040acb2
add esp, 4
push eax
call fcn.00403e30
add esp, 0x10
push edi
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40326f
mov dword [ebp - 0x18], str._nGetTempPathW_failed_with_error___x_._n
jmp 0x403289
push edi
push 0
push 0x41b79c
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40329f
mov dword [ebp - 0x18], str._nGetTempFileNameW_failed_with_error___x_._n
call ebx
mov ebx, eax
mov eax, dword [ebp + 0x14]
push 2
mov dword [eax], ebx
call fcn.0040acb2
push ebx
push dword [ebp - 0x18]
jmp 0x403305
push str..tmp
push edi
call fcn.0040654b
add esp, 8
test eax, eax
je 0x4032c1
push str..dmp
push 5
push eax
call fcn.0040aa73
add esp, 0xc
push esi
call fcn.00401e60
add esp, 4
mov esi, edi
xor edi, edi
mov dword [ebp - 0x24], esi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40331c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._nFailed_to_create_temp_dump_file__ws_with_error__x_n
push 2
call fcn.0040acb2
add esp, 4
push eax
call fcn.00403e30
add esp, 0x10
push edi
call fcn.00401e60
add esp, 4
jmp 0x403497
push 0
call fcn.00401e60
add esp, 4
mov edi, dword [ebp - 0x18]
push 0x800
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x403497
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x403497
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 0x4033e9
mov dword [ebp + 0x14], 0x410
cmp edi, 2
jg 0x4033aa
cmp edi, 0xffffffff
jle 0x4033aa
sub edi, 0
je 0x4033a3
sub edi, 1
je 0x40339c
sub edi, 1
je 0x4033aa
xor edi, edi
jmp 0x4033b6
mov edi, 0x40121
jmp 0x4033b6
mov edi, 0x1001a4
jmp 0x4033af
mov edi, 0x51b27
mov dword [ebp + 0x14], 0x450
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 0x14], eax
test eax, eax
je 0x403497
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
jmp 0x403411
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x403b70
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 - 0x1c]
call dword [ebp - 0x18]
test eax, eax
jne 0x40343a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._nFailed_to_save_dump_to___ws__with_error___x_._n
push 2
call fcn.0040acb2
add esp, 4
push eax
call fcn.00403e30
add esp, 0x10
jmp 0x403453
push esi
push str._nSuccesfully_saved_dump_to___ws__n
push 2
call fcn.0040acb2
add esp, 4
push eax
call fcn.00403e30
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 - 0x1c]
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 0x40348a
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 fcn.00401e60
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