Function at 0x56ca60
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 0x7475ed
push eax
mov dword fs:[0], esp
sub esp, 0x2c0
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
jne 0x56ca99
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.007012e0
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 0x79750c
call fcn.00483f80
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.0056c270
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x56cb01
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.00481f60
mov edx, dword [ebp - 0x38]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x56cb5b
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x56cb51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x56cf30
push edx
push ecx
call fcn.00512900
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 0x56cecb
test esi, esi
je 0x56cecb
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 0x56cbb4
sub ecx, edx
lea eax, [ebp - 0x2a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00483f80
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 0x56cc2d
movzx ecx, word [ecx]
mov edi, 0x2e
mov edx, 1
mov eax, 0x797540
cmp ecx, edi
jb 0x56cc2a
sub dword [ebp - 0x14], eax
cmp cx, di
ja 0x56cc2a
cmp edx, 1
je 0x56cd6c
mov ecx, dword [ebp - 0x14]
add eax, 2
dec edx
movzx ecx, word [ecx + eax]
movzx edi, word [eax]
cmp cx, di
jae 0x56cc0c
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 0x56cc7a
movzx ecx, word [ecx]
mov edi, 0x2e
mov edx, 2
mov eax, 0x7649ec
cmp ecx, edi
jb 0x56cc7a
sub dword [ebp - 0x14], eax
cmp cx, di
ja 0x56cc7a
cmp edx, 1
je 0x56cd6c
mov ecx, dword [ebp - 0x14]
add eax, 2
dec edx
movzx ecx, word [ecx + eax]
movzx edi, word [eax]
cmp cx, di
jae 0x56cc5c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x64]
push eax
call fcn.0056c270
mov edi, eax
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x56cd02
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x56ccd0
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x56ccc6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x56cf30
push edx
push ecx
call fcn.00512900
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 0x56cd3c
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x56cd32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x56cf30
push edx
push ecx
call fcn.00512900
add esp, 8
test byte [ebp - 0x2cc], 0x10
je 0x56cdab
lea eax, [ebp - 0x2c]
push eax
call fcn.0056ca60
add esp, 4
test al, al
je 0x56ce0d
cmp byte [ebp - 0xd], 0
je 0x56ce0d
mov byte [ebp - 0xd], 1
jmp 0x56ce11
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x56ce4f
mov edx, dword [ebp - 0x30]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x56cda4
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x56cf30
push ecx
push edx
jmp 0x56ce47
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 0x56cde4
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 0x56ce11
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.00569e20
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 0x56ce4f
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x56ce45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x56cf30
push edx
push ecx
call fcn.00512900
add esp, 8
lea eax, [ebp - 0x2cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x56cb90
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x56ce79
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne cl
mov byte [ebp + 0xb], cl
test eax, eax
jne 0x56ceb5
cmp dword [edi + 0x14], 8
jb 0x56ce94
mov edi, dword [edi]
mov eax, dword [ebp + 4]
push edi
push str.Failed_to_remove_directory__s
push 1
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcFileSysUtil.cpp
push 0x6f
push eax
call fcn.00569e20
mov esi, dword [ebp - 0x34]
add esp, 0x18
mov cl, byte [ebp + 0xb]
test cl, cl
je 0x56cec5
cmp byte [ebp - 0xd], 0
je 0x56cec5
mov byte [ebp + 0xb], 1
jmp 0x56cf16
mov byte [ebp + 0xb], 0
jmp 0x56cf16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x56cf05
cmp eax, 3
je 0x56cf05
cmp dword [edi + 0x14], 8
jb 0x56cee3
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.00569e20
mov esi, dword [ebp - 0x34]
add esp, 0x18
xor al, al
jmp 0x56cf07
mov al, 1
mov byte [ebp + 0xb], al
cmp esi, 0xffffffff
je 0x56cf1d
mov byte [ebp + 0xb], al
test esi, esi
je 0x56cf1d
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.0070b6e4
int3