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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca813
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x502770]
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 edi, edx
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ceba
test al, 0x10
je 0x41ceba
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.0045a7c0
mov eax, dword [0x507ac0]
add esp, 0xc
inc eax
mov dword [0x507ac0], eax
cmp eax, 0xa
jbe 0x41c9b3
dec eax
mov dword [0x507ac0], eax
jmp 0x41ceba
test esi, esi
je 0x41c9a8
push 0x104
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0045674a
add esp, 0xc
test eax, eax
je 0x41ceb4
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41ceb4
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x254]
call fcn.0041abf0
push 1
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x244]
push esi
push ecx
lea ecx, [ebp - 0x254]
call fcn.0041d290
lea ecx, [esi - 1]
cmp eax, ecx
je 0x41ca4e
push 0x4f5668
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x4f4]
call fcn.00419c60
add esp, 4
lea ecx, [ebp - 0x254]
push eax
call fcn.0041a3b0
lea ecx, [ebp - 0x4f4]
call fcn.0041a640
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x26c]
call fcn.0041a5c0
xor eax, eax
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
push 0x4f6484
lea edx, [ebp - 0x26c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4f4]
call fcn.00419c60
add esp, 4
lea ecx, [ebp - 0x26c]
push eax
call fcn.0041a3b0
lea ecx, [ebp - 0x4f4]
call fcn.0041a640
cmp dword [ebp - 0x258], 8
lea ecx, [ebp - 0x4c0]
lea eax, [ebp - 0x26c]
cmovae eax, dword [ebp - 0x26c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41cd75
test byte [ebp - 0x4c0], 0x10
je 0x41cbc3
mov edx, 0x4f6488
lea ecx, [ebp - 0x494]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x41cb1c
test ax, ax
je 0x41cb18
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x41cb1c
add ecx, 4
add edx, 4
test ax, ax
jne 0x41caf6
xor eax, eax
jmp 0x41cb21
sbb eax, eax
or eax, 1
test eax, eax
je 0x41cc10
mov ecx, 0x4f648c
lea eax, [ebp - 0x494]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41cb5a
test dx, dx
je 0x41cb56
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41cb5a
add eax, 4
add ecx, 4
test dx, dx
jne 0x41cb34
xor eax, eax
jmp 0x41cb5f
sbb eax, eax
or eax, 1
test eax, eax
je 0x41cc10
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x4dc]
call fcn.0041abf0
push eax
lea edx, [ebp - 0x254]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4f4]
call fcn.0041d420
add esp, 4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x41cb9e
mov eax, dword [eax]
mov edx, edi
mov ecx, eax
call fcn.0041c930
lea ecx, [ebp - 0x4f4]
call fcn.0041a640
lea ecx, [ebp - 0x4dc]
mov byte [ebp - 4], 2
call fcn.0041a640
jmp 0x41cc10
lea eax, [ebp - 0x494]
push eax
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x4dc]
call fcn.00419c60
add esp, 4
lea ecx, [ebp - 0x23c]
push eax
call fcn.0041a3b0
lea ecx, [ebp - 0x4dc]
call fcn.0041a640
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x23c]
mov edx, edi
cmovae ecx, dword [ebp - 0x23c]
call fcn.0041c580
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x4c0]
push eax
push ebx
call esi
test eax, eax
je 0x41cd6e
jmp 0x41cc30
test byte [ebp - 0x4c0], 0x10
lea eax, [ebp - 0x494]
je 0x41cd15
mov ecx, 0x4f6488
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41cc6e
test dx, dx
je 0x41cc6a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41cc6e
add eax, 4
add ecx, 4
test dx, dx
jne 0x41cc48
xor eax, eax
jmp 0x41cc73
sbb eax, eax
or eax, 1
test eax, eax
je 0x41cd5c
mov ecx, 0x4f648c
lea eax, [ebp - 0x494]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ccac
test dx, dx
je 0x41cca8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ccac
add eax, 4
add ecx, 4
test dx, dx
jne 0x41cc86
xor eax, eax
jmp 0x41ccb1
sbb eax, eax
or eax, 1
test eax, eax
je 0x41cd5c
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x4f4]
call fcn.0041abf0
push eax
lea edx, [ebp - 0x254]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4dc]
call fcn.0041d420
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x41ccf0
mov eax, dword [eax]
mov edx, edi
mov ecx, eax
call fcn.0041c930
lea ecx, [ebp - 0x4dc]
call fcn.0041a640
lea ecx, [ebp - 0x4f4]
mov byte [ebp - 4], 2
call fcn.0041a640
jmp 0x41cd5c
push eax
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x4dc]
call fcn.00419c60
add esp, 4
lea ecx, [ebp - 0x23c]
push eax
call fcn.0041a3b0
lea ecx, [ebp - 0x4dc]
call fcn.0041a640
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x23c]
mov edx, edi
cmovae ecx, dword [ebp - 0x23c]
call fcn.0041c580
lea eax, [ebp - 0x4c0]
push eax
push ebx
call esi
test eax, eax
jne 0x41cc30
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41ce86
test edi, edi
je 0x41ce86
push 4
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 0
push eax
lea ecx, [ebp - 0x224]
call fcn.00419590
push ecx
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 7
call fcn.0041d100
lea ecx, [ebp - 0x224]
cmp eax, 0xffffffff
jne 0x41cde0
call fcn.00419d50
jmp 0x41ce56
push eax
lea eax, [ebp - 0x4c4]
push eax
call fcn.0041d1a0
mov byte [ebp - 4], 8
mov edx, dword [eax]
mov esi, dword [ebp - 0x224]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x41ce47
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41ce38
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x41ce38
call fcn.0041d390
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x41ce2d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x224], eax
jmp 0x41ce47
push dword [edx - 0xc]
lea ecx, [ebp - 0x224]
push edx
call fcn.00419ae0
lea ecx, [ebp - 0x4c4]
mov byte [ebp - 4], 7
call fcn.00419650
mov ecx, dword [ebp - 0x224]
cmp dword [ecx - 4], 1
jle 0x41ce76
push dword [ecx - 0xc]
lea ecx, [ebp - 0x224]
call fcn.00419f40
mov ecx, dword [ebp - 0x224]
call fcn.0041c800
lea ecx, [ebp - 0x224]
call fcn.00419650
dec dword [0x507ac0]
lea ecx, [ebp - 0x23c]
call fcn.0041a640
lea ecx, [ebp - 0x26c]
call fcn.0041a640
lea ecx, [ebp - 0x254]
call fcn.0041a640
mov eax, 1
jmp 0x41cebc
dec dword [0x507ac0]
xor eax, eax
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.00454efc
mov esp, ebp
pop ebp
ret