Function at 0x4c6fc1
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov esi, dword [ebp + 8]
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [esi + 2]
test byte [esi], 1
mov eax, edi
je 0x4c6fe7
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c701a
and eax, 0x410
cmp eax, 0x410
jne 0x4c701a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512931
mov ecx, esi
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004c7101
test byte [esi], 1
mov eax, edi
je 0x4c7024
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x4c70ea
push 2
call fcn.0042ae10
add esp, 4
test al, al
je 0x4c70e8
call fcn.0042b8e0
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x94
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.0042ba80
lea eax, [ebp - 0xb4]
push 0xb
push str.DeleteFile
push eax
call fcn.00401c91
add esp, 0xc
mov ebx, eax
movzx eax, byte [esi]
test al, 1
je 0x4c708b
mov edi, dword [esi + 8]
mov eax, dword [esi + 4]
jmp 0x4c708d
shr eax, 1
lea esi, [ebp - 0xc8]
push eax
push edi
push esi
call fcn.00438930
add esp, 0xc
movzx eax, byte [esi]
test al, 1
je 0x4c70b3
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc0]
jmp 0x4c70bb
shr eax, 1
lea ecx, [ebp - 0xc7]
push eax
push ecx
push ebx
call fcn.00401c91
add esp, 0xc
test byte [ebp - 0xc8], 1
je 0x4c70dd
push dword [ebp - 0xc0]
call fcn.005128f8
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.0042bb30
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512931
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4c7101
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc0
mov edi, ecx
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ecx + 2]
test byte [ecx], 1
mov eax, ebx
je 0x4c7126
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x4c71f0
push 2
call fcn.0042ae10
add esp, 4
test al, al
je 0x4c71f0
call fcn.0042b8e0
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x2f
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.0042ba80
lea eax, [ebp - 0xb4]
push 0x10
push str.RemoveDirectory
push eax
call fcn.00401c91
add esp, 0xc
mov dword [ebp - 0xcc], eax
movzx eax, byte [edi]
test al, 1
je 0x4c718e
mov ebx, dword [edi + 8]
mov eax, dword [edi + 4]
jmp 0x4c7190
shr eax, 1
lea edi, [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.00438930
add esp, 0xc
movzx eax, byte [edi]
test al, 1
je 0x4c71b6
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc0]
jmp 0x4c71be
shr eax, 1
lea ecx, [ebp - 0xc7]
push eax
push ecx
push dword [ebp - 0xcc]
call fcn.00401c91
add esp, 0xc
test byte [ebp - 0xc8], 1
je 0x4c71e5
push dword [ebp - 0xc0]
call fcn.005128f8
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.0042bb30
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512931
mov eax, ebx
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret