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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov esi, ecx
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [esp + 0xa0], eax
mov eax, str.DeleteFile.Recursive
mov ecx, str.DeleteFile.NonRecursive
test edx, edx
cmovne ecx, eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, edx
xor al, 1
movzx eax, al
mov dword [esp + 0xc], eax
lea edi, [esp + 0x68]
push 0x168
push str..._.._base_files_file_util_win.cc
push str.DeleteFileAndRecordMetrics
push edi
call fcn.00432210
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push edi
call fcn.0043ac40
lea ebx, [esp + 0x58]
push 0x130
push str..._.._base_files_file_util_win.cc
push str.DoDeleteFile
push ebx
call fcn.00432210
add esp, 0x10
lea ecx, [esp + 0x68]
push 0
push ebx
call fcn.0043ac40
movzx ecx, byte [esi + 0xb]
test cl, cl
mov eax, dword [esi + 4]
mov edx, ecx
cmovs edx, eax
mov dword [esp], 0
mov edi, 0
test edx, edx
je 0x43eb87
test cl, cl
jns 0x43ea27
mov edi, 0xa1
cmp eax, 0x103
ja 0x43eb87
mov ecx, esi
push ebx
call fcn.00430e30
movzx eax, byte [esp + 0x63]
test al, al
jns 0x43ea40
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov edi, 0xffffffff
test eax, eax
je 0x43ea71
add eax, eax
xor ecx, ecx
nop dword [eax]
movzx edx, word [ebx + ecx]
cmp dx, 0x3f
je 0x43ea69
cmp dx, 0x2a
je 0x43ea69
add ecx, 2
cmp eax, ecx
jne 0x43ea50
jmp 0x43ea71
cmp eax, ecx
je 0x43ea71
sar ecx, 1
mov edi, ecx
lea ebx, [esp + 0x58]
mov ecx, ebx
call fcn.004304c0
cmp edi, 0xffffffff
je 0x43eabe
mov ecx, esi
push ebx
call fcn.00430e30
lea edi, [esp + 0x4c]
mov ecx, esi
push edi
call fcn.00430cf0
movzx eax, byte [esp + 4]
mov ecx, edi
mov edx, ebx
push eax
call fcn.0043f3f0
add esp, 4
mov edi, eax
lea ecx, [esp + 0x4c]
call fcn.004304c0
mov ecx, ebx
call fcn.004304c0
jmp 0x43eb87
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x43eac8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43eb74
mov ebx, eax
test bl, 1
je 0x43eafa
mov eax, ebx
and eax, 0xfffffffe
cmp byte [esi + 0xb], 0
mov ecx, esi
jns 0x43eaee
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x43eb74
test bl, 0x10
jne 0x43eb12
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x43eb09
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x43eb6b
cmp byte [esp + 4], 0
je 0x43eb5a
mov dword [esp + 0x60], 0x1000000
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0x2a
lea edx, [esp + 0x58]
mov ecx, esi
push 1
call fcn.0043f3f0
add esp, 4
mov edi, eax
cmp byte [esp + 0x63], 0
jns 0x43eb56
push dword [esp + 0x58]
call fcn.004af3c6
add esp, 4
test edi, edi
jne 0x43eb87
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x43eb64
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, 0
test eax, eax
jne 0x43eb87
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 ebx, [eax + eax*2]
add ebx, 0x14
lea ecx, [esp + 0x68]
call fcn.0043ad60
test edi, edi
je 0x43ebf6
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x43eba8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43ebd7
mov dword [esp], 7
test al, 0x10
je 0x43ebf6
push esi
call fcn.004317d0
add esp, 4
movzx eax, al
mov ecx, 6
sub ecx, eax
mov dword [esp], ecx
jmp 0x43ebf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 2]
mov dword [esp], 4
cmp ecx, 4
jae 0x43ebf6
mov eax, dword [eax*4 + 0x4e9458]
mov dword [esp], eax
mov dword [esp + 0x68], str.Windows.PostOperationState.
mov dword [esp + 0x6c], 0x1b
mov eax, dword [esp + 8]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
lea esi, [esp + 0x58]
lea eax, [esp + 0x68]
push eax
push 2
push esi
call fcn.004365a0
add esp, 0xc
push 8
push dword [esp + 4]
push esi
call fcn.00434f60
add esp, 0xc
cmp byte [esp + 0x63], 0
jns 0x43ec48
push dword [esp + 0x58]
call fcn.004af3c6
add esp, 4
test edi, edi
je 0x43ec95
mov dword [esp + 0x68], str.Windows.FilesystemError.
mov dword [esp + 0x6c], 0x18
mov eax, dword [esp + 8]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
lea eax, [esp + 0x68]
push eax
push 2
push esi
call fcn.004365a0
add esp, 0xc
push edi
push esi
call fcn.00434f90
add esp, 8
cmp byte [esp + 0x63], 0
jns 0x43ec95
push dword [esp + 0x58]
call fcn.004af3c6
add esp, 4
test edi, edi
sete bl
lea ecx, [esp + 0x10]
call fcn.0043ad60
mov ecx, dword [esp + 0xa0]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret