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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x5be984]
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 ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49f643
mov al, 1
jmp 0x49f895
mov ecx, ebx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f660
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004048f0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.00408200
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 1
lea ecx, [eax - 1]
cmp eax, ecx
jbe 0x49f8b1
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
cmp word [eax + ecx*2], 0x5c
lea ecx, [ebp - 0x58]
jne 0x49f6bc
push 3
push 0x574510
jmp 0x49f6d2
push 4
push 0x574524
call fcn.00404770
push 1
push 0x57446c
lea ecx, [ebp - 0x28]
call fcn.00404770
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x49f881
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov byte [ebp - 4], 2
nop dword [eax]
mov ecx, 0x5744f8
lea eax, [ebp - 0x27c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49f756
test dx, dx
je 0x49f752
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49f756
add eax, 4
add ecx, 4
test dx, dx
jne 0x49f730
xor eax, eax
jmp 0x49f75b
sbb eax, eax
or eax, 1
test eax, eax
je 0x49f851
mov eax, 0x5744fc
lea ecx, [ebp - 0x27c]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x49f796
test dx, dx
je 0x49f792
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x49f796
add ecx, 4
add eax, 4
test dx, dx
jne 0x49f770
xor eax, eax
jmp 0x49f79b
sbb eax, eax
or eax, 1
test eax, eax
je 0x49f851
test byte [ebp - 0x2a8], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
je 0x49f805
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004048f0
lea ecx, [ebp - 0x27c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f7d0
sub ecx, edx
lea eax, [ebp - 0x27c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00404770
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0049f600
add esp, 4
jmp 0x49f851
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004048f0
lea ecx, [ebp - 0x27c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f820
sub ecx, edx
lea eax, [ebp - 0x27c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00404770
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x2a8]
push eax
push esi
call edi
test eax, eax
jne 0x49f720
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
lea ecx, [ebp - 0x40]
sete bl
call fcn.004029d0
jmp 0x49f883
xor bl, bl
lea ecx, [ebp - 0x58]
call fcn.004029d0
lea ecx, [ebp - 0x28]
call fcn.004029d0
mov al, bl
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.00484a0d
mov esp, ebp
pop ebp
ret
call fcn.004118e0
int3