Function at 0x4a0df1
Capabilities:
Create process memory minidump
Get common file path
Get file size
Read file on windows

Disassembly:
push 0x668
mov eax, 0x4c21c9
call fcn.004ac3e5
mov eax, dword [ebp + 8]
mov edi, ecx
push dword [edi + 0xc]
xor ebx, ebx
push ebx
push 0x1f0fff
mov dword [ebp - 0x658], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x654], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4a1158
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [ebp - 0x64c]
push ecx
push 8
lea ecx, [ebp - 0x668]
push ecx
push dword [edi + 0x14]
push eax
call esi
test eax, eax
je 0x4a0f44
cmp dword [ebp - 0x64c], 8
jne 0x4a0f44
mov ebx, 0x2cc
push ebx
call fcn.004a59a9
pop ecx
lea ecx, [ebp - 0x64c]
push ecx
push ebx
push eax
push dword [ebp - 0x664]
mov dword [ebp - 0x660], eax
push dword [ebp - 0x654]
call esi
test eax, eax
je 0x4a0f42
cmp dword [ebp - 0x64c], ebx
jne 0x4a0f42
push 0x50
call fcn.004a59a9
pop ecx
mov ebx, eax
lea eax, [ebp - 0x64c]
push eax
push 0x50
push ebx
push dword [ebp - 0x668]
mov dword [ebp - 0x65c], ebx
push dword [ebp - 0x654]
call esi
test eax, eax
je 0x4a0f42
cmp dword [ebp - 0x64c], 0x50
jne 0x4a0f42
cmp dword [ebx + 8], 0
mov dword [ebp - 0x650], ebx
je 0x4a0f29
push 0x50
call fcn.004a59a9
pop ecx
mov ebx, eax
lea eax, [ebp - 0x64c]
push eax
mov eax, dword [ebp - 0x650]
push 0x50
push ebx
push dword [eax + 8]
push dword [ebp - 0x654]
call esi
test eax, eax
je 0x4a0f23
cmp dword [ebp - 0x64c], 0x50
jne 0x4a0f23
mov eax, dword [ebp - 0x650]
mov dword [eax + 8], ebx
cmp dword [ebx + 8], 0
mov dword [ebp - 0x650], ebx
jne 0x4a0edc
mov ebx, dword [ebp - 0x65c]
push 8
call fcn.004a59a9
mov dword [edi + 0x18], eax
mov dword [eax], ebx
mov eax, dword [edi + 0x18]
pop ecx
mov ecx, dword [ebp - 0x660]
mov dword [eax + 4], ecx
xor ebx, ebx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x674], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x670], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
mov dword [ebp - 0x66c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x648], ebx
mov dword [ebp - 0x644], 0x200
mov dword [ebp - 0x640], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x218]
call fcn.00409bb0
push eax
mov eax, str._se_crashdump_
call fcn.00409bb0
pop ecx
pop ecx
mov esi, eax
call fcn.00494f06
push 0x5f
call fcn.00412f0f
push eax
mov eax, str..dmp
call fcn.00409bb0
mov ecx, dword [ebp - 0x640]
mov edx, dword [ebp - 0x648]
add esp, 0xc
push ebx
push 0x4000180
push 2
push ebx
push ebx
xor eax, eax
push 0xc0000000
mov word [ecx + edx*2], ax
push dword [ebp - 0x640]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a102f
lea eax, [ebp - 0x63c]
cmp dword [ebp - 0x640], eax
je 0x4a101e
push dword [ebp - 0x640]
call fcn.004a5f5b
pop ecx
push dword [ebp - 0x654]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a1158
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], ebx
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x650], 0x140
call fcn.00499961
xor ebx, ebx
test al, al
je 0x4a10ae
mov dword [ebp - 0x238], 6
mov dword [ebp - 0x234], 1
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], 0x1db0
xor eax, eax
mov ecx, dword [ebp + eax - 0x228]
mov edx, dword [ebp + eax - 0x238]
cmp ecx, edx
ja 0x4a10a4
jb 0x4a10ae
add eax, 4
cmp eax, 0x10
jl 0x4a1088
mov dword [ebp - 0x650], 0x940
mov eax, dword [edi + 0x18]
push ebx
neg eax
push ebx
sbb eax, eax
lea ecx, [ebp - 0x674]
and eax, ecx
push eax
push dword [ebp - 0x650]
push esi
push dword [edi + 0xc]
push dword [ebp - 0x654]
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.004a481a
pop ecx
push ebx
push ebx
push ebx
push esi
mov dword [ebp - 0x650], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x64c]
push eax
push edi
push dword [ebp - 0x650]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x64c], edi
jne 0x4a112d
mov ecx, dword [ebp - 0x650]
push edi
mov edi, dword [ebp - 0x658]
mov ebx, str.crash.dmp
call fcn.004a30f1
pop ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [ebp - 0x63c]
cmp dword [ebp - 0x640], eax
je 0x4a1150
push dword [ebp - 0x640]
call fcn.004a5f5b
pop ecx
push dword [ebp - 0x654]
call esi
call fcn.004ac468
ret