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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c68fc
mov eax, dword fs:[0]
push eax
sub esp, 0x694
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
lea ecx, [ebp - 0x14]
call fcn.0043c660
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0041bf70
test eax, eax
jne 0x4c173f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00426290
jmp 0x4c1b24
lea edx, [ebp - 0x66c]
push edx
push 8
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041bf70
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4c18f3
cmp dword [ebp - 0x66c], 8
jne 0x4c18f3
push 0x2cc
call fcn.0044527f
add esp, 4
mov dword [ebp - 0x680], eax
mov eax, dword [ebp - 0x680]
mov dword [ebp - 0x670], eax
lea ecx, [ebp - 0x66c]
push ecx
push 0x2cc
mov edx, dword [ebp - 0x670]
push edx
mov eax, dword [ebp - 0x228]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041bf70
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4c18f3
cmp dword [ebp - 0x66c], 0x2cc
jne 0x4c18f3
push 0x50
call fcn.0044527f
add esp, 4
mov dword [ebp - 0x684], eax
mov ecx, dword [ebp - 0x684]
mov dword [ebp - 0x674], ecx
lea edx, [ebp - 0x66c]
push edx
push 0x50
mov eax, dword [ebp - 0x674]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041bf70
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4c18f3
cmp dword [ebp - 0x66c], 0x50
jne 0x4c18f3
mov edx, dword [ebp - 0x674]
mov dword [ebp - 0x678], edx
mov eax, dword [ebp - 0x678]
cmp dword [eax + 8], 0
je 0x4c18ba
push 0x50
call fcn.0044527f
add esp, 4
mov dword [ebp - 0x688], eax
mov ecx, dword [ebp - 0x688]
mov dword [ebp - 0x67c], ecx
lea edx, [ebp - 0x66c]
push edx
push 0x50
mov eax, dword [ebp - 0x67c]
push eax
mov ecx, dword [ebp - 0x678]
mov edx, dword [ecx + 8]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041bf70
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4c189b
cmp dword [ebp - 0x66c], 0x50
je 0x4c189d
jmp 0x4c18ba
mov eax, dword [ebp - 0x678]
mov ecx, dword [ebp - 0x67c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x67c]
mov dword [ebp - 0x678], edx
jmp 0x4c183d
push 8
call fcn.0044527f
add esp, 4
mov dword [ebp - 0x68c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x68c]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x674]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x670]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x668], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x664], edx
mov dword [ebp - 0x660], 0
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x654]
call fcn.0040adf0
mov byte [ebp - 4], 1
push str..dmp
push 0x5f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4d3bdc
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x654]
push edx
call fcn.0040ae90
add esp, 8
push eax
call fcn.0040ae90
add esp, 8
push eax
call fcn.004399a0
add esp, 8
push eax
call fcn.00415400
add esp, 8
push eax
call fcn.0040ae90
add esp, 8
push 0
push 0x4000180
push 2
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x654]
call fcn.0040aee0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4c19d3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x654]
call fcn.0040ae20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00426290
jmp 0x4c1b24
mov dword [ebp - 0x65c], 0x140
lea ecx, [ebp - 0x23c]
call fcn.00401a10
lea eax, [ebp - 0x23c]
push eax
push str.dbghelp.dll
call fcn.00476610
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4c1a3d
push 0x1db0
push 0
push 1
push 6
lea ecx, [ebp - 0x69c]
call fcn.0043c0e0
push eax
lea ecx, [ebp - 0x23c]
call fcn.0043c120
movzx edx, al
test edx, edx
je 0x4c1a3d
mov eax, dword [ebp - 0x65c]
or eax, 0x800
mov dword [ebp - 0x65c], eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
neg edx
sbb edx, edx
lea eax, [ebp - 0x668]
and edx, eax
push edx
mov ecx, dword [ebp - 0x65c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041bf70
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
mov dword [ebp - 0x240], eax
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00442b2d
add esp, 4
mov dword [ebp - 0x6a0], eax
mov ecx, dword [ebp - 0x6a0]
mov dword [ebp - 0x658], ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x66c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x658]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x66c]
cmp ecx, dword [ebp - 0x18]
jne 0x4c1afc
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x658]
push eax
push str.crash.dmp
mov ecx, dword [ebp + 8]
push ecx
call fcn.00467cf0
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x654]
call fcn.0040ae20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00426290
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret