Function at 0x43c5e0
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, 0x140
mov eax, dword [0x54c03c]
mov cl, byte [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, str.DeleteFile.NonRecursive
mov edi, 0
xor eax, ebp
test cl, cl
mov dword [esp + 0x138], eax
mov eax, str.DeleteFile.Recursive
cmovne ebx, eax
mov eax, dword [esi + 0x10]
xor edx, edx
test eax, eax
je 0x43c845
mov edi, 0xa1
cmp eax, 0x103
ja 0x43c845
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0x18]
mov ecx, esi
push ebx
call fcn.00410fa0
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x2c], 7
jbe 0x43c653
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x43c70d
xorps xmm0, xmm0
test eax, eax
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x110], xmm0
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
mov byte [esp + 0x5a], 1
mov byte [esp + 0x6f], 1
jle 0x43c70d
lea eax, [ebx + eax*2]
mov edi, ebx
nop word cs:[eax + eax]
nop dword [eax]
movzx ecx, word [edi]
cmp ecx, 0xff
ja 0x43c706
cmp byte [esp + ecx + 0x30], 0
jne 0x43ca0e
add edi, 2
cmp edi, eax
jb 0x43c6f0
lea ecx, [esp + 0x18]
call fcn.0040fef0
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x43c720
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x43c76d
test bl, 1
je 0x43c74e
mov eax, ebx
mov ecx, esi
and eax, 0xfffffffe
cmp dword [esi + 0x14], 7
jbe 0x43c742
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x43c76d
test bl, 0x10
jne 0x43c78e
cmp dword [esi + 0x14], 7
mov ebx, dword [esp + 0xc]
mov eax, esi
jbe 0x43c761
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x43c81c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor edi, edi
mov ebx, dword [esp + 0xc]
or ecx, 1
cmp ecx, 3
mov cl, byte [ebp + 0xc]
cmovne edi, eax
xor edx, edx
jmp 0x43c845
cmp byte [ebp + 0xc], 0
mov ebx, dword [esp + 0xc]
je 0x43c80b
mov ecx, esi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 1
mov dword [esp + 0x30], 0x2a
lea edx, [esp + 0x30]
push 1
call fcn.0043d8b0
add esp, 4
mov ecx, dword [esp + 0x44]
mov edi, eax
cmp ecx, 8
jb 0x43c7ff
mov eax, dword [esp + 0x30]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x43c7f5
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x43ca69
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.004d4589
add esp, 8
mov cl, byte [ebp + 0xc]
test edi, edi
mov edx, 0
jne 0x43c845
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x43c815
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov cl, byte [ebp + 0xc]
test eax, eax
mov edi, 0
mov edx, 0
jne 0x43c845
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor edx, edx
xor edi, edi
or ecx, 1
cmp ecx, 3
mov cl, byte [ebp + 0xc]
cmovne edi, eax
xor cl, 1
test edi, edi
mov dword [esp + 0x18], ebx
movzx eax, cl
lea eax, [eax + eax*2 + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
je 0x43c8ad
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x43c869
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43c893
mov edx, 7
test al, 0x10
je 0x43c8ad
push esi
call fcn.0043e0c0
add esp, 4
movzx eax, al
mov edx, 6
sub edx, eax
jmp 0x43c8ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 2]
mov edx, 4
cmp ecx, 4
jae 0x43c8ad
mov edx, dword [eax*4 + 0x503140]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
sub esp, 0xc
mov al, byte [esp + 0x20]
lea ecx, [esp + 0x3c]
mov esi, ebx
mov ebx, edi
mov edi, edx
mov byte [esp + 4], al
mov dword [esp + 8], str.Windows.PostOperationState.
mov dword [esp], 0x1b
call fcn.00401f34
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.00430f40
add esp, 8
push 8
push edi
mov edi, ebx
mov ebx, esi
lea esi, [esp + 0x38]
push esi
call fcn.0041acf0
add esp, 0xc
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x43c953
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ebx
lea ebx, [eax + 1]
cmp ebx, 0x1000
jb 0x43c945
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x43ca69
add eax, 0x24
mov ecx, edx
mov ebx, eax
push ebx
push ecx
call fcn.004d4589
add esp, 8
mov ebx, dword [esp + 0xc]
test edi, edi
je 0x43c9f4
mov ecx, dword [esp + 0x10]
mov eax, 0xf
mov dword [esp + 0x18], ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], eax
mov byte [esp + 0x30], 0
mov dword [esp + 0x1c], ecx
sub esp, 0xc
mov al, byte [esp + 0x20]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 8], str.Windows.FilesystemError.
mov dword [esp], 0x18
call fcn.00401f34
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.00430f40
add esp, 8
push edi
push esi
call fcn.0041ad20
add esp, 8
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x43c9f0
mov ecx, dword [esp + 0x30]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x43c9e6
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x43ca69
add eax, 0x24
mov ecx, edx
mov esi, eax
push esi
push ecx
call fcn.004d4589
add esp, 8
xor ebx, ebx
jmp 0x43c9f6
mov bl, 1
mov ecx, dword [esp + 0x138]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub edi, ebx
lea ebx, [esp + 0x18]
mov ecx, ebx
call fcn.0040fef0
cmp edi, 0xfffffffe
je 0x43c716
lea edi, [esp + 0x30]
mov ecx, esi
push edi
call fcn.00410fa0
mov ecx, esi
push ebx
call fcn.00410ab0
mov al, byte [ebp + 0xc]
mov ecx, ebx
mov edx, edi
movzx eax, al
push eax
call fcn.0043d8b0
add esp, 4
mov ecx, ebx
mov edi, eax
call fcn.0040fef0
lea ecx, [esp + 0x30]
call fcn.0040fef0
mov cl, byte [ebp + 0xc]
mov ebx, dword [esp + 0xc]
jmp 0x43c787
call fcn.004e40e0
int3