Function at 0x40ce00
Capabilities:
Access peb ldr_data
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4752e7
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
xor esi, esi
push eax
mov dword [esp + 0x1c], esi
call fcn.0040c310
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
mov ebx, 0x47b38c
mov dword [esp + 0x2b0], esi
call fcn.0040bda0
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x3c], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cea5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0xffffffff
jne 0x40cec0
mov dword [esp + 0x18], 1
jmp 0x40d21e
test byte [esp + 0x44], 0x10
je 0x40cf9e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x47b390
lea ecx, [esp + 0x74]
push ecx
call esi
test eax, eax
je 0x40d1f7
push 0x47b394
lea edx, [esp + 0x74]
push edx
call esi
test eax, eax
je 0x40d1f7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ebx, [esp + 0x78]
call fcn.0040bda0
push eax
lea edx, [esp + 0x44]
push edx
mov ebx, 0x47b228
mov byte [esp + 0x2b8], 1
call fcn.0040bda0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
mov byte [esp + 0x2bc], 2
mov eax, dword [eax]
push edx
push eax
call fcn.0040ce00
mov esi, eax
mov byte [esp + 0x2c4], 1
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
add esp, 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a8], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40d217
jmp 0x40d1f7
cmp dword [ebp + 0xc], 0
je 0x40d06a
lea eax, [esp + 0x70]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cfb0
sub eax, edx
sar eax, 1
cmp eax, 4
jle 0x40d06a
lea ecx, [esp + eax*2 + 0x68]
push str..sys
push ecx
call fcn.0045a732
add esp, 8
test eax, eax
jne 0x40d06a
lea esi, [esp + 0x1c]
call fcn.0040d630
lea eax, [esp + 0x70]
mov byte [esp + 0x2a8], 3
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d000
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0040dbc0
mov esi, dword [esp + 0x1c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40d046
cmp dword [ebp + 0x10], eax
je 0x40d046
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [esi - 0x10]
mov byte [esp + 0x2a8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d06a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
lea ebx, [esp + 0x78]
call fcn.0040bda0
mov eax, dword [eax]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d0ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ebx, [esp + 0x78]
call fcn.0040bda0
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d0ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40d1f7
mov edx, dword [0x48eacc]
mov eax, dword [edx + 0xc]
mov ecx, 0x48eacc
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x2a8], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x74]
push ecx
push edx
push str._s_s_d__x
lea edi, [esp + 0x30]
call fcn.0040a040
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
push ecx
lea ebx, [esp + 0x88]
call fcn.0040bda0
mov edi, dword [esp + 0x38]
mov eax, dword [eax]
push edi
push eax
call fcn.0045b2c8
mov esi, eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x20
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d17a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40d18a
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40d1d3
cmp dword [ebp + 0x10], 0
je 0x40d1d3
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
push edx
lea ebx, [esp + 0x78]
call fcn.0040bda0
mov eax, dword [eax]
add esp, 8
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x2a8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x44]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40cec0
mov dword [esp + 0x18], 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x2a8], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d254
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.004599ac
mov esp, ebp
pop ebp
ret