Function at 0x53d710
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x706a7d
push eax
mov dword fs:[0], esp
sub esp, 0x2c0
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
jne 0x53d749
xor al, al
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x250
lea eax, [ebp - 0x2cc]
push 0
push eax
call fcn.006c2360
add esp, 0xc
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
push 3
push 0x74e33c
call fcn.00473710
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.0053cf20
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x53d7b1
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0x2cc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x7c]
call fcn.00471710
mov edx, dword [ebp - 0x38]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x53d80b
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x53d801
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53dba2
push edx
push ecx
call fcn.004e7fa0
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
cmp esi, 0xffffffff
je 0x53db3d
test esi, esi
je 0x53db3d
mov byte [ebp - 0xd], 1
nop dword [eax]
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
lea edx, [ecx + 2]
mov word [ebp - 0x2c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x53d864
sub ecx, edx
lea eax, [ebp - 0x2a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00473710
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
cmovae ecx, eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], ecx
jne 0x53d8dd
movzx ecx, word [ecx]
mov edi, 0x2e
mov edx, 1
mov eax, 0x74e370
cmp ecx, edi
jb 0x53d8da
sub dword [ebp - 0x14], eax
cmp cx, di
ja 0x53d8da
cmp edx, 1
je 0x53da1c
mov ecx, dword [ebp - 0x14]
add eax, 2
dec edx
movzx ecx, word [ecx + eax]
movzx edi, word [eax]
cmp cx, di
jae 0x53d8bc
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, eax
cmp dword [ebp - 0x1c], 2
mov dword [ebp - 0x14], ecx
jne 0x53d92a
movzx ecx, word [ecx]
mov edi, 0x2e
mov edx, 2
mov eax, 0x74e374
cmp ecx, edi
jb 0x53d92a
sub dword [ebp - 0x14], eax
cmp cx, di
ja 0x53d92a
cmp edx, 1
je 0x53da1c
mov ecx, dword [ebp - 0x14]
add eax, 2
dec edx
movzx ecx, word [eax + ecx]
movzx edi, word [eax]
cmp cx, di
jae 0x53d90c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x64]
push eax
call fcn.0053cf20
mov edi, eax
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x53d9b2
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x53d980
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x53d976
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53dba2
push edx
push ecx
call fcn.004e7fa0
add esp, 8
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x53d9ec
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x53d9e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53dba2
push edx
push ecx
call fcn.004e7fa0
add esp, 8
test byte [ebp - 0x2cc], 0x10
je 0x53da5b
lea eax, [ebp - 0x2c]
push eax
call fcn.0053d710
add esp, 4
test al, al
je 0x53dabd
cmp byte [ebp - 0xd], 0
je 0x53dabd
mov byte [ebp - 0xd], 1
jmp 0x53dac1
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x53daff
mov edx, dword [ebp - 0x30]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x53da54
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53dba2
push ecx
push edx
jmp 0x53daf7
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x80
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x53da94
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x53dac1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp + 4]
push str.Failed_to_remove_file__s
push 1
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcFileSysUtil.cpp
push 0x65
push eax
call fcn.0053af00
mov esi, dword [ebp - 0x34]
add esp, 0x18
mov byte [ebp - 0xd], 0
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x53daff
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x53daf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53dba2
push edx
push ecx
call fcn.004e7fa0
add esp, 8
lea eax, [ebp - 0x2cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x53d840
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x53db20
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x53db37
cmp byte [ebp - 0xd], 0
je 0x53db37
mov byte [ebp + 0xb], 1
jmp 0x53db88
mov byte [ebp + 0xb], 0
jmp 0x53db88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x53db77
cmp eax, 3
je 0x53db77
cmp dword [edi + 0x14], 8
jb 0x53db55
mov edi, dword [edi]
mov eax, dword [ebp + 4]
push edi
push str.Unexpected_error_in_getting_info_of_path__s
push 1
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcFileSysUtil.cpp
push 0x4f
push eax
call fcn.0053af00
mov esi, dword [ebp - 0x34]
add esp, 0x18
xor al, al
jmp 0x53db79
mov al, 1
mov byte [ebp + 0xb], al
cmp esi, 0xffffffff
je 0x53db8f
mov byte [ebp + 0xb], al
test esi, esi
je 0x53db8f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop esi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.006cc674
int3