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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 0x10], edx
mov esi, ecx
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x20]
push 0xfc
push str....._base_files_file_util_win.cc
push str.DoDeleteFile
push ebx
call fcn.004b4450
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004be2f0
movzx eax, byte [esi + 0xb]
mov edx, eax
and edx, 0x7f
test al, al
mov ecx, dword [esi + 4]
cmovs edx, ecx
test edx, edx
je 0x47b2b8
test al, al
jns 0x47b22a
cmp ecx, 0x103
ja 0x47b368
mov ecx, esi
push ebx
call fcn.004b36a0
movzx eax, byte [esp + 0x2b]
test al, al
jns 0x47b245
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
jmp 0x47b248
and eax, 0x7f
mov dword [esp + 0xc], esi
test eax, eax
je 0x47b35a
lea esi, [ebx + eax*2]
add eax, eax
mov edi, ebx
movzx ecx, word [edi]
cmp ecx, 0x2a
je 0x47b272
cmp ecx, 0x3f
je 0x47b272
add edi, 2
add eax, 0xfffffffe
jne 0x47b25b
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.004b3560
cmp edi, esi
je 0x47b28a
sub edi, ebx
cmp edi, 0xfffffffe
jne 0x47b36f
mov esi, dword [esp + 0xc]
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x47b298
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47b2d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x47b3af
lea ecx, [esp + 0x30]
call fcn.004be370
mov bl, 1
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004ed092
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, eax
test bl, 1
jne 0x47b3c7
test bl, 0x10
jne 0x47b2fd
cmp byte [esi + 0xb], 0
jns 0x47b2f0
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x47b2b8
jmp 0x47b2a4
cmp byte [esp + 0x10], 0
je 0x47b349
lea ebx, [esp + 0x20]
mov ecx, ebx
push 0x58e0a6
call fcn.0051d070
mov ecx, esi
mov edx, ebx
push 1
call fcn.0047bd20
add esp, 4
mov edi, eax
cmp byte [ebx + 0xb], 0
js 0x47b3f1
test edi, edi
je 0x47b349
lea ecx, [esp + 0x30]
call fcn.004be370
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x47b2c3
cmp byte [esi + 0xb], 0
jns 0x47b351
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x47b2f7
lea ecx, [esp + 0x20]
call fcn.004b3560
jmp 0x47b28a
mov edi, 0xa1
jmp 0x47b332
mov esi, dword [esp + 0xc]
mov ecx, esi
lea ebx, [esp + 0x20]
push ebx
call fcn.004b36a0
lea edi, [esp + 0x14]
mov ecx, esi
push edi
call fcn.004b3580
movzx eax, byte [esp + 0x10]
mov ecx, edi
mov esi, edi
mov edx, ebx
push eax
call fcn.0047bd20
add esp, 4
mov edi, eax
mov ecx, esi
call fcn.004b3560
mov ecx, ebx
call fcn.004b3560
lea ecx, [esp + 0x30]
call fcn.004be370
mov bl, 1
test edi, edi
je 0x47b2c3
jmp 0x47b33b
mov eax, ebx
and eax, 0xfffffffe
cmp byte [esi + 0xb], 0
jns 0x47b3d8
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov esi, dword [esp + 0xc]
jne 0x47b2e3
jmp 0x47b2a4
push dword [esp + 0x20]
call fcn.004eca8e
add esp, 4
jmp 0x47b32e