Function at 0x571620
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 0x74be9d
push eax
mov dword fs:[0], esp
sub esp, 0x2c0
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
jne 0x571659
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.007051b0
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 0x79ce0c
call fcn.00486be0
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.00570e30
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x5716c1
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.00484ba0
mov edx, dword [ebp - 0x38]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x57171b
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x571711
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x571af0
push edx
push ecx
call fcn.00516d60
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 0x571a8b
test esi, esi
je 0x571a8b
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 0x571774
sub ecx, edx
lea eax, [ebp - 0x2a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00486be0
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 0x5717ed
movzx ecx, word [ecx]
mov edi, 0x2e
mov edx, 1
mov eax, 0x79ce40
cmp ecx, edi
jb 0x5717ea
sub dword [ebp - 0x14], eax
cmp cx, di
ja 0x5717ea
cmp edx, 1
je 0x57192c
mov ecx, dword [ebp - 0x14]
add eax, 2
dec edx
movzx ecx, word [ecx + eax]
movzx edi, word [eax]
cmp cx, di
jae 0x5717cc
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 0x57183a
movzx ecx, word [ecx]
mov edi, 0x2e
mov edx, 2
mov eax, 0x769efc
cmp ecx, edi
jb 0x57183a
sub dword [ebp - 0x14], eax
cmp cx, di
ja 0x57183a
cmp edx, 1
je 0x57192c
mov ecx, dword [ebp - 0x14]
add eax, 2
dec edx
movzx ecx, word [ecx + eax]
movzx edi, word [eax]
cmp cx, di
jae 0x57181c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x64]
push eax
call fcn.00570e30
mov edi, eax
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x5718c2
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x571890
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x571886
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x571af0
push edx
push ecx
call fcn.00516d60
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 0x5718fc
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5718f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x571af0
push edx
push ecx
call fcn.00516d60
add esp, 8
test byte [ebp - 0x2cc], 0x10
je 0x57196b
lea eax, [ebp - 0x2c]
push eax
call fcn.00571620
add esp, 4
test al, al
je 0x5719cd
cmp byte [ebp - 0xd], 0
je 0x5719cd
mov byte [ebp - 0xd], 1
jmp 0x5719d1
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x571a0f
mov edx, dword [ebp - 0x30]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x571964
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x571af0
push ecx
push edx
jmp 0x571a07
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 0x5719a4
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 0x5719d1
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.0056e9e0
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 0x571a0f
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x571a05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x571af0
push edx
push ecx
call fcn.00516d60
add esp, 8
lea eax, [ebp - 0x2cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x571750
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x571a39
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 0x571a75
cmp dword [edi + 0x14], 8
jb 0x571a54
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.0056e9e0
mov esi, dword [ebp - 0x34]
add esp, 0x18
mov cl, byte [ebp + 0xb]
test cl, cl
je 0x571a85
cmp byte [ebp - 0xd], 0
je 0x571a85
mov byte [ebp + 0xb], 1
jmp 0x571ad6
mov byte [ebp + 0xb], 0
jmp 0x571ad6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x571ac5
cmp eax, 3
je 0x571ac5
cmp dword [edi + 0x14], 8
jb 0x571aa3
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.0056e9e0
mov esi, dword [ebp - 0x34]
add esp, 0x18
xor al, al
jmp 0x571ac7
mov al, 1
mov byte [ebp + 0xb], al
cmp esi, 0xffffffff
je 0x571add
mov byte [ebp + 0xb], al
test esi, esi
je 0x571add
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.0070f5b4
int3