Function at 0x416020
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x4ef8cc
mov eax, dword fs:[0]
push eax
sub esp, 0x558
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x550], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x56c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x57c]
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x362]
xor eax, eax
push ebx
mov dword [esp + 0x1c], ebx
push ecx
mov word [esp + 0x368], ax
call fcn.004cf830
add esp, 0xc
push 0x50752c
push edi
lea edx, [esp + 0x364]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4163ef
push 0x24c
lea eax, [esp + 0x114]
push ebx
push eax
mov dword [esp + 0x118], ebx
call fcn.004cf830
add esp, 0xc
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], ebx
cmp eax, 0xffffffff
je 0x4160e4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x574], ebx
cmp dword [esp + 0x1c], ebx
je 0x4163ef
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416100
sub eax, edx
sar eax, 1
mov ebp, eax
jmp 0x416115
xor ebx, ebx
mov eax, dword [0x52a1ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x52a1ec
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x574], 1
cmp edi, ebx
je 0x41615f
test edi, 0xffff0000
jne 0x416163
movzx esi, di
push esi
call fcn.00405a70
mov ecx, eax
add esp, 4
cmp ecx, ebx
je 0x41618b
lea eax, [esp + 0x18]
push eax
mov eax, esi
call fcn.00405c20
jmp 0x41618b
xor eax, eax
jmp 0x41617f
mov eax, edi
lea edx, [eax + 2]
jmp 0x416170
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416170
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
lea eax, [esp + 0x1c]
call fcn.00406330
lea eax, [esp + 0x138]
lea esi, [esp + 0x18]
mov byte [esp + 0x574], 2
call fcn.00414530
test eax, eax
jne 0x4161ba
mov byte [esp + 0x574], al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x41630b
lea ecx, [esp + 0x18]
call fcn.004168e0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, edi
call fcn.004169c0
mov byte [esp + 0x574], 3
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp dword [eax - 0xc], ebp
jne 0x4162dc
cmp dword [esi - 0xc], ebp
jle 0x4162dc
mov eax, dword [esp + 0x10c]
test al, 0x10
je 0x416222
test eax, 0x400
jne 0x416222
push esi
call fcn.00416020
mov byte [esp + 0x578], 2
mov eax, dword [esp + 0x24]
add esp, 4
jmp 0x4162e4
mov dword [esp + 0x574], 5
mov ebx, dword [esp + 0x14]
test bl, 4
je 0x416247
lea eax, [esp + 0x24]
and ebx, 0xfffffffb
push eax
mov dword [esp + 0x18], ebx
call fcn.004075f0
mov dword [esp + 0x574], 4
test bl, 2
je 0x416296
and ebx, 0xfffffffd
cmp dword [esp + 0xe8], 0x10
mov dword [esp + 0x14], ebx
jb 0x416278
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.004c9387
add esp, 4
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], 0
mov byte [esp + 0xd4], 0
mov dword [esp + 0x574], 3
test bl, 1
je 0x4162c7
and ebx, 0xfffffffe
cmp dword [esp + 0x104], 8
mov dword [esp + 0x14], ebx
jb 0x4162c7
mov edx, dword [esp + 0xf0]
push edx
call fcn.004c9387
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x574], 2
mov eax, dword [esp + 0x20]
jmp 0x4162e4
mov byte [esp + 0x574], 2
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416300
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x574], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416324
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416113
mov dword [esp + 0x574], 9
test byte [esp + 0x14], 0x20
je 0x416360
and dword [esp + 0x14], 0xffffffdf
lea eax, [esp + 0x24]
push eax
call fcn.004075f0
mov ebx, 8
mov eax, 0x10
mov dword [esp + 0x574], ebx
test byte [esp + 0x14], al
je 0x4163b3
and dword [esp + 0x14], 0xffffffef
cmp dword [esp + 0xe8], eax
jb 0x416395
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.004c9387
add esp, 4
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], 0
mov byte [esp + 0xd4], 0
mov dword [esp + 0x574], 0
test byte [esp + 0x14], bl
je 0x4163dd
cmp dword [esp + 0x104], ebx
jb 0x4163dd
mov edx, dword [esp + 0xf0]
push edx
call fcn.004c9387
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x56c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x550]
xor ecx, esp
call fcn.004c9392
add esp, 0x564
ret