Function at 0x4435e0
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, 0xb0
mov dword [esp], ecx
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0xa8], eax
mov eax, str.DeleteFile.Recursive
mov ecx, str.DeleteFile.NonRecursive
test edx, edx
cmovne ecx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov eax, edx
xor al, 1
mov byte [esp + 8], al
xor edi, edi
dec edi
lea ebx, [esp + 0x10]
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x30], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
mov eax, str..._.._base_files_file_util_win.cc
lea esi, [esp + 0x70]
push 0x17d
push eax
push str.DeleteFileAndRecordMetrics
push esi
call fcn.0046e3e0
add esp, 0x10
xor eax, eax
mov ecx, ebx
push eax
xor ebx, ebx
push esi
call fcn.004735a0
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov edi, dword [esp]
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea esi, [esp + 0x60]
push 0x142
mov eax, str..._.._base_files_file_util_win.cc
push eax
push str.DoDeleteFile
push esi
call fcn.0046e3e0
add esp, 0x10
lea ecx, [esp + 0x70]
push ebx
push esi
call fcn.004735a0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4436b6
mov eax, dword [edi + 4]
movzx ebx, byte [esp + 8]
test eax, eax
mov dword [esp + 8], ebx
je 0x443813
cmp eax, 0x103
ja 0x44381a
mov ecx, edi
push esi
call fcn.0046da10
movzx eax, byte [esp + 0x6b]
test al, al
jns 0x4436eb
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
test eax, eax
je 0x443824
lea ebx, [esi + eax*2]
add eax, eax
mov edi, esi
movzx ecx, word [edi]
cmp cx, 0x3f
je 0x443713
cmp cx, 0x2a
je 0x443713
add edi, 2
add eax, 0xfffffffe
jne 0x4436fa
mov edi, ebx
lea ecx, [esp + 0x60]
call fcn.0046d580
cmp edi, ebx
je 0x44372b
sub edi, esi
cmp edi, 0xfffffffe
jne 0x443914
mov esi, dword [esp]
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x443738
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x443832
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
cmovne esi, eax
mov eax, dword [esp + 8]
lea ebx, [eax + eax*2]
add ebx, 0x14
lea edi, [esp + 0x70]
mov ecx, edi
call fcn.004735e0
mov dword [esp + 4], 0
mov dword [esp + 8], esi
test esi, esi
jne 0x443860
lea esi, [esp + 0x60]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esp + 0x70], str.Windows.PostOperationState.
mov dword [esp + 0x74], 0x1b
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp], ebx
mov dword [esp + 0x7c], ebx
push edi
push 2
push esi
call fcn.00475f60
add esp, 0xc
push 8
push dword [esp + 8]
push esi
call fcn.004509f0
add esp, 0xc
cmp byte [esi + 0xb], 0
mov ebx, edi
jns 0x4437e1
push dword [esp + 0x60]
call fcn.00489982
add esp, 4
mov edi, dword [esp + 8]
test edi, edi
jne 0x4438ad
test edi, edi
sete bl
lea ecx, [esp + 0x10]
call fcn.004735e0
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.0048a678
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x44375b
mov esi, 0xa1
jmp 0x44375b
lea ecx, [esp + 0x60]
call fcn.0046d580
jmp 0x44372b
mov ebx, eax
test bl, 1
jne 0x443956
test bl, 0x10
jne 0x44397e
mov eax, dword [esp]
cmp byte [eax + 0xb], 0
jns 0x443854
mov eax, dword [esp]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x44399a
mov eax, dword [esp]
cmp byte [eax + 0xb], 0
jns 0x44386e
mov eax, dword [esp]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4439ac
mov dword [esp + 4], 7
test al, 0x10
mov eax, dword [esp]
je 0x443784
push eax
call fcn.004cb970
add esp, 4
movzx eax, al
mov ecx, 6
sub ecx, eax
mov dword [esp + 4], ecx
jmp 0x443784
xor eax, eax
dec eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], str.Windows.FilesystemError.
mov dword [esp + 0x74], 0x18
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov eax, dword [esp]
mov dword [esp + 0x7c], eax
push ebx
push 2
push esi
call fcn.00475f60
add esp, 0xc
push edi
push esi
call fcn.004df1c0
add esp, 8
cmp byte [esp + 0x6b], 0
jns 0x443904
push dword [esp + 0x60]
call fcn.00489982
add esp, 4
mov edi, dword [esp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4437ed
mov esi, dword [esp]
mov ecx, esi
lea edi, [esp + 0x60]
push edi
call fcn.0046da10
lea ebx, [esp + 0x54]
mov ecx, esi
push ebx
call fcn.0046d5a0
movzx eax, byte [esp + 4]
mov ecx, ebx
mov edx, edi
push eax
call fcn.004cf5a0
add esp, 4
mov esi, eax
mov ecx, ebx
call fcn.0046d580
mov ecx, edi
call fcn.0046d580
jmp 0x44375b
mov eax, ebx
and eax, 0xfffffffe
mov ecx, dword [esp]
cmp byte [ecx + 0xb], 0
jns 0x443969
mov ecx, dword [esp]
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x44383d
jmp 0x443748
cmp byte [esp + 4], 0
jne 0x4439f4
mov eax, dword [esp]
cmp byte [eax + 0xb], 0
jns 0x443993
mov eax, dword [esp]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, 0
test eax, eax
jne 0x44375b
jmp 0x443748
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4439ce
cmp eax, 5
je 0x4439da
cmp eax, 3
jne 0x4439e7
mov dword [esp + 4], 2
jmp 0x443784
xor eax, eax
inc eax
mov dword [esp + 4], eax
jmp 0x443784
mov dword [esp + 4], 3
jmp 0x443784
mov dword [esp + 4], 4
jmp 0x443784
lea ebx, [esp + 0x60]
mov ecx, ebx
push 0x50a44e
call fcn.00437320
mov ecx, dword [esp]
mov edx, ebx
push 1
call fcn.004cf5a0
add esp, 4
mov esi, eax
cmp byte [ebx + 0xb], 0
jns 0x443a27
push dword [esp + 0x60]
call fcn.00489982
add esp, 4
test esi, esi
jne 0x44375b
jmp 0x443985