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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445fbd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x45a880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], 0
mov dword [eax], 0
call fcn.004226d0
push 0x80
push dword [ebp + 0x10]
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.0042c48e
add esp, 8
mov dword [ebp - 0x18], eax
lea ebx, [eax + 8]
mov dword [ebp - 0x10], ebx
cmp ebx, 0x80
jb 0x42574b
mov ebx, 0x80
mov dword [ebp - 0x10], ebx
push 2
push ebx
call fcn.00420980
mov esi, eax
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x18]
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
push ebx
push esi
call fcn.00436ad0
add esp, 0x18
cmp edi, 0xffffffff
jne 0x42579b
lea eax, [ebp - 0x14]
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 0x425b1e
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 0x4259aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x4258a7
push esi
push str._nFailed_to_create_file__ws_as_it_already_exists._n
push 2
call fcn.0042d2b9
add esp, 4
push eax
call fcn.00426490
add esp, 0xc
mov dword [ebp - 0x18], ebx
mov edi, 1
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x425805
cmp dword [ebp - 0x18], 0xffffffff
jne 0x42589e
cmp edi, 0xa
jae 0x42589e
push 0x80
push esi
call fcn.0042c48e
sub eax, 4
push 4
push 0x44b070
lea ebx, [esi + eax*2]
push ebx
call fcn.00436a96
add esp, 0x14
test eax, eax
jne 0x425836
mov word [ebx], ax
push 0x44b070
push edi
push esi
push 0x78
push str._.s___zu__s
push dword [ebp - 0x10]
push esi
call fcn.004264c0
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 0x425895
push esi
push str._nFailed_to_create_file__ws_as_it_already_exists._n
push 2
call fcn.0042d2b9
add esp, 4
push eax
call fcn.00426490
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call fcn.00436959
add esp, 0x18
inc edi
mov dword [ebp - 0x18], ebx
jmp 0x4257f0
cmp ebx, 0xffffffff
jne 0x4259aa
push 2
push 0x105
call fcn.00420980
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.0042d2b9
add esp, 4
push eax
call fcn.00426490
add esp, 0x10
push edi
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4258f3
mov dword [ebp - 0x18], str._nGetTempPathW_failed_with_error___x_._n
jmp 0x42590d
push edi
push 0
push 0x44beb4
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x425923
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.0042d2b9
push ebx
push dword [ebp - 0x18]
jmp 0x425989
push str..tmp
push edi
call fcn.0042901d
add esp, 8
test eax, eax
je 0x425945
push str..dmp
push 5
push eax
call fcn.00436959
add esp, 0xc
push esi
call fcn.004209e0
add esp, 4
mov esi, edi
xor edi, edi
mov dword [ebp - 0x1c], 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 0x4259a0
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.0042d2b9
add esp, 4
push eax
call fcn.00426490
add esp, 0x10
push edi
call fcn.004209e0
add esp, 4
jmp 0x425b1e
push 0
call fcn.004209e0
add esp, 4
push 0x800
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x425b1e
push str.MiniDumpWriteDump
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x425b1e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
cmp eax, 0xffffffff
je 0x425a72
mov dword [ebp + 0x14], 0x410
cmp eax, 2
jg 0x425a1f
cmp eax, 0xffffffff
jle 0x425a1f
xor edi, edi
sub eax, edi
je 0x425a6b
sub eax, 1
je 0x425a64
sub eax, 1
jne 0x425a2b
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 0x425b1e
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]
call dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
jmp 0x425a9d
mov edi, 0x40121
jmp 0x425a2b
mov edi, 0x1001a4
jmp 0x425a24
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x4261f0
push eax
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 0
push eax
push 0x21003
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp - 0x14]
call dword [ebp - 0x18]
test eax, eax
jne 0x425ac3
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.0042d2b9
add esp, 4
push eax
call fcn.00426490
add esp, 0x10
jmp 0x425adc
push esi
push str._nSuccesfully_saved_dump_to___ws__n
push 2
call fcn.0042d2b9
add esp, 4
push eax
call fcn.00426490
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x14]
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 0x425b11
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.004209e0
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