Function at 0x43e450
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov ebx, edx
mov edi, ecx
mov eax, dword [0x596ff8]
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 + 8], ecx
mov eax, ebx
xor al, 1
movzx eax, al
mov dword [esp + 0xc], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
lea esi, [esp + 0x70]
push 0x16b
push str..._.._base_files_file_util_win.cc
push str.DeleteFileAndRecordMetrics
push esi
call fcn.0042a970
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push esi
call fcn.004391c0
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0xa0], 0xffffffff
lea esi, [esp + 0x60]
push 0x130
push str..._.._base_files_file_util_win.cc
push str.DoDeleteFile
push esi
call fcn.0042a970
add esp, 0x10
lea ecx, [esp + 0x70]
push 0
push esi
call fcn.004391c0
movzx eax, byte [edi]
mov edx, eax
shr edx, 1
test al, 1
mov dword [esp], edi
mov ecx, dword [edi + 4]
cmovne edx, ecx
mov dword [esp + 4], 0
mov edi, 0
test edx, edx
je 0x43e708
cmp ecx, 0x104
jb 0x43e573
mov edi, 0xa1
and al, 1
jne 0x43e708
mov ecx, dword [esp]
lea eax, [esp + 0x60]
push eax
call fcn.00428cb0
movzx eax, byte [esp + 0x60]
test al, 1
je 0x43e593
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
jmp 0x43e599
shr eax, 1
lea ecx, [esp + 0x62]
mov esi, 0xffffffff
test eax, eax
je 0x43e5d1
add eax, eax
xor edx, edx
nop word cs:[eax + eax]
movzx edi, word [ecx + edx]
cmp di, 0x3f
je 0x43e5c9
cmp di, 0x2a
je 0x43e5c9
add edx, 2
cmp eax, edx
jne 0x43e5b0
jmp 0x43e5d1
cmp eax, edx
je 0x43e5d1
sar edx, 1
mov esi, edx
lea edi, [esp + 0x60]
mov ecx, edi
call fcn.00428200
cmp esi, 0xffffffff
je 0x43e621
mov esi, dword [esp]
mov ecx, esi
push edi
call fcn.00428cb0
lea eax, [esp + 0x54]
mov ecx, esi
push eax
mov esi, eax
call fcn.00428b20
movzx eax, bl
mov ecx, esi
mov edx, edi
push eax
call fcn.0043f2f0
add esp, 4
mov ebx, edi
mov edi, eax
mov ecx, esi
call fcn.00428200
mov ecx, ebx
call fcn.00428200
jmp 0x43e708
mov eax, dword [esp]
lea esi, [eax + 2]
test byte [eax], 1
mov eax, esi
je 0x43e634
mov eax, dword [esp]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43e6f5
test al, 1
je 0x43e66f
mov edi, eax
and eax, 0xfffffffe
mov ecx, dword [esp]
test byte [ecx], 1
mov ecx, esi
je 0x43e65d
mov ecx, dword [esp]
mov ecx, dword [ecx + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov eax, edi
je 0x43e6f5
test al, 0x10
jne 0x43e687
mov eax, dword [esp]
test byte [eax], 1
je 0x43e67e
mov esi, dword [eax + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x43e6ec
test bl, bl
je 0x43e6da
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov byte [esp + 0x60], 2
mov dword [esp + 0x62], 0x2a
lea edx, [esp + 0x60]
mov ecx, dword [esp]
push 1
call fcn.0043f2f0
add esp, 4
mov edi, eax
test byte [esp + 0x60], 1
je 0x43e6d6
push dword [esp + 0x68]
call fcn.005128f8
add esp, 4
test edi, edi
jne 0x43e708
mov eax, dword [esp]
test byte [eax], 1
je 0x43e6e5
mov esi, dword [eax + 8]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, 0
test eax, eax
jne 0x43e708
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor edi, edi
cmp ecx, 2
cmovne edi, eax
mov eax, dword [esp + 0xc]
lea esi, [eax + eax*2]
add esi, 0x14
lea ecx, [esp + 0x70]
call fcn.00439230
test edi, edi
mov ebx, dword [esp]
je 0x43e781
test byte [ebx], 1
je 0x43e72c
mov eax, dword [ebx + 8]
jmp 0x43e72f
lea eax, [ebx + 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43e760
mov dword [esp + 4], 7
test al, 0x10
je 0x43e781
push ebx
call fcn.00429b30
add esp, 4
movzx eax, al
mov ecx, 6
sub ecx, eax
mov dword [esp + 4], ecx
jmp 0x43e781
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 2]
mov dword [esp + 4], 4
cmp ecx, 4
jae 0x43e781
mov eax, dword [eax*4 + 0x544184]
mov dword [esp + 4], eax
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x70], str.Windows.PostOperationState.
mov dword [esp + 0x74], 0x1b
mov eax, dword [esp + 8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], esi
lea eax, [esp + 0x70]
push eax
push 2
lea ebx, [esp + 0x68]
push ebx
call fcn.004339b0
add esp, 0xc
push 8
push dword [esp + 8]
push ebx
call fcn.00430770
add esp, 0xc
test byte [esp + 0x60], 1
je 0x43e7eb
push dword [esp + 0x68]
call fcn.005128f8
add esp, 4
test edi, edi
je 0x43e85b
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x70], str.Windows.FilesystemError.
mov dword [esp + 0x74], 0x18
mov eax, dword [esp + 8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], esi
lea eax, [esp + 0x70]
push eax
push 2
lea esi, [esp + 0x68]
push esi
call fcn.004339b0
add esp, 0xc
push edi
push esi
call fcn.004307d0
add esp, 8
test byte [esp + 0x60], 1
je 0x43e854
push dword [esp + 0x68]
call fcn.005128f8
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
lea ecx, [esp + 0x10]
call fcn.00439230
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.00512931
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret