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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cb8b1
mov eax, dword fs:[0]
push eax
sub esp, 0x730
mov eax, dword [0x101063e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x1004b146
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004b14d
call fcn.10057ca0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004b146
push 0x5d
push str.d:jenkins.jenkinsworkspacelib_commoncomputerz12_grab_versionhookhomepage_1145utils.cpp
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], al
call fcn.100056d0
push 3
push 0x100d61c4
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.100056d0
mov byte [ebp - 4], 1
call fcn.10057ca0
mov edi, eax
lea ecx, [ebp - 0x73c]
push 0x14c
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.10008240
mov esi, eax
push str.delete_directory_is_not_exist_
push esi
mov byte [ebp - 4], 2
call fcn.10009920
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x73c]
call fcn.10009a50
lea ecx, [ebp - 0x438]
call fcn.10003d60
lea ecx, [ebp - 0x450]
call fcn.10003d60
xor eax, eax
jmp 0x1004b318
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004b152
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x1004b146
push 0x208
lea eax, [ebp - 0x218]
mov edi, 1
push 0
push eax
call fcn.1009c500
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1009c500
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
add esp, 0x18
push esi
push eax
call ebx
push str..
lea eax, [ebp - 0x420]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004b1cd
test al, 1
je 0x1004b1cd
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x6a4], eax
cmp eax, 0xffffffff
je 0x1004b30f
lea ecx, [ebp - 0x6a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1004b303
test byte [ebp - 0x6a0], 0x10
je 0x1004b27e
cmp word [ebp - 0x674], 0x2e
jne 0x1004b23d
mov ax, word [ebp - 0x672]
test ax, ax
je 0x1004b2e8
cmp ax, 0x2e
jne 0x1004b23d
cmp word [ebp - 0x670], 0
je 0x1004b2e8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1009c500
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push eax
call ebx
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.1004b020
add esp, 4
jmp 0x1004b2e6
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1009c500
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push eax
call ebx
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004b2d5
test al, 1
je 0x1004b2d5
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x6a4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1004b206
push dword [ebp - 0x6a4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10075b61
mov esp, ebp
pop ebp
ret