Function at 0x4079b0
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 0x4e5b98
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x50a0b0]
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, dword [ebp + 8]
lea eax, [ebp - 0x58]
push 0x4e9acc
push edi
push eax
call fcn.00401a50
add esp, 0xc
xor esi, esi
mov dword [ebp - 4], 0
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 ebx, eax
cmp ebx, 0xffffffff
jne 0x407a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x407a33
cmp eax, 3
je 0x407a33
or esi, ebx
jmp 0x407be0
xor esi, esi
jmp 0x407be0
mov ecx, 0x4e9ad4
lea eax, [ebp - 0x27c]
jmp 0x407a50
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407a76
test dx, dx
je 0x407a72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407a76
add eax, 4
add ecx, 4
test dx, dx
jne 0x407a50
xor eax, eax
jmp 0x407a7b
sbb eax, eax
or eax, 1
test eax, eax
je 0x407baa
mov ecx, 0x4e9ad8
lea eax, [ebp - 0x27c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407ab6
test dx, dx
je 0x407ab2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407ab6
add eax, 4
add ecx, 4
test dx, dx
jne 0x407a90
xor eax, eax
jmp 0x407abb
sbb eax, eax
or eax, 1
test eax, eax
je 0x407baa
push 0x4e97dc
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00401a50
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401920
add esp, 0x18
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x407b28
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407b1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c34
push edx
push ecx
call fcn.004bf4bc
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
test byte [ebp - 0x2a8], 0x10
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 7
je 0x407b53
push eax
call fcn.004079b0
add esp, 4
jmp 0x407b6c
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, 0xffffffff
cmove esi, eax
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x407baa
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407ba0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c34
push edx
push ecx
call fcn.004bf4bc
add esp, 8
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407a40
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 8
jb 0x407bcf
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, 0xffffffff
cmove esi, eax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x407c16
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407c0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c34
push edx
push ecx
call fcn.004bf4bc
add esp, 8
mov eax, esi
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.004bf929
mov esp, ebp
pop ebp
ret
call fcn.004c4cda
int3