Function at 0x402a90
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d00c
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x425090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0x2e
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x402ad9
xor eax, eax
jmp 0x402d6c
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00406fe0
mov dword [ebp - 4], 0
push str.22MILESDump_
lea ecx, [ebp - 0x224]
call fcn.004073e0
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x220]
call fcn.00406fc0
mov byte [ebp - 4], 1
push str.dbghelp.dll
lea ecx, [ebp - 0x220]
call fcn.004073e0
lea ecx, [ebp - 0x220]
call fcn.00407ca0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402b74
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.00406ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00406ac0
mov eax, dword [ebp - 0x248]
jmp 0x402d6c
lea ecx, [ebp - 0x220]
call fcn.00407ca0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x228]
call fcn.00406aa0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x22c], 0
jne 0x402bb9
push str.Cannot_load_library
lea ecx, [ebp - 0x228]
call fcn.00407080
jmp 0x402d02
push str.MiniDumpWriteDump
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x402bef
push str.Cannot_get_proc_address
lea ecx, [ebp - 0x228]
call fcn.00407080
jmp 0x402cf5
lea ecx, [ebp - 0x234]
call fcn.00406aa0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x224]
call fcn.00407ca0
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.00402d90
add esp, 8
test eax, eax
jne 0x402c32
push str.Cannot_get_dump_file_path
lea ecx, [ebp - 0x228]
call fcn.00407080
jmp 0x402ce6
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x234]
call fcn.00407ca0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0xffffffff
jne 0x402c77
push str.Cannot_create_dump_file
lea ecx, [ebp - 0x228]
call fcn.00407080
jmp 0x402ce6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x244], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x23c], 0
push 0
push 0
lea eax, [ebp - 0x244]
push eax
push 2
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x230]
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x234]
push eax
push str.Save_file___s__successful.
lea ecx, [ebp - 0x228]
push ecx
call fcn.0040a690
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call fcn.00406ac0
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x228]
call fcn.00406f50
test eax, eax
jle 0x402d2c
push 0
push str.Message
lea ecx, [ebp - 0x228]
call fcn.00407ca0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x24c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.00406ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.00406ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00406ac0
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cbaa
mov esp, ebp
pop ebp
ret