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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462dcc
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4776f4]
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 esi, ecx
xor ebx, ebx
lea edi, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.004160c0
push 0x24c
lea eax, [ebp - 0x25c]
push ebx
push eax
mov dword [ebp - 0x260], ebx
call fcn.0042d1d0
add esp, 0xc
lea ecx, [ebp - 0x28c]
push ecx
mov ecx, esi
call fcn.004183c0
mov edx, edi
push edx
lea eax, [ebp - 0x27c]
push eax
mov ebx, 0x46ae14
mov byte [ebp - 4], 1
call fcn.00415fd0
mov eax, dword [eax]
add esp, 8
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
mov dword [ebp - 0x274], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41861b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0xffffffff
jne 0x418630
xor ebx, ebx
jmp 0x41891b
test byte [ebp - 0x260], 0x10
je 0x4186f8
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x46ae18
lea ecx, [ebp - 0x234]
push ecx
call edi
test eax, eax
je 0x4188ef
push 0x46ae1c
lea edx, [ebp - 0x234]
push edx
call edi
test eax, eax
je 0x4188ef
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x270]
push ecx
lea ebx, [ebp - 0x234]
call fcn.00415fd0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x270]
add esp, 4
add eax, 0xfffffff0
mov dword [ebp - 0x264], esp
mov edi, esp
call fcn.00413290
add eax, 0x10
lea ecx, [ebp - 0x28c]
mov dword [edi], eax
call fcn.004184b0
test eax, eax
jne 0x4186d9
mov eax, dword [ebp - 0x270]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x264], esp
mov edi, esp
call fcn.00413290
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00418560
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4188e3
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x26c]
push edx
lea ebx, [ebp - 0x234]
call fcn.00415fd0
add esp, 8
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x26c]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi - 4], 0
lea ecx, [edi - 4]
jl 0x418741
cmp eax, dword [edi - 0x10]
jne 0x418741
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x418779
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x418999
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0042af5b
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x268], ebx
lea edi, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.00416150
mov ecx, edi
lea eax, [ebp - 0x28c]
call fcn.00418fc0
mov ebx, dword [ebp - 0x288]
mov edi, dword [ebp - 0x268]
mov dword [ebp - 0x264], eax
cmp eax, ebx
je 0x41880c
mov eax, dword [eax + 0xc]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41899e
mov ecx, eax
mov eax, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4187f6
test dx, dx
je 0x4187f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4187f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4187d0
xor eax, eax
jmp 0x4187fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sets al
test al, al
jne 0x41880c
lea eax, [ebp - 0x264]
jmp 0x418818
mov dword [ebp - 0x278], ebx
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
or edx, 0xffffffff
cmp dword [eax], ebx
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
jne 0x4188b6
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418840
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x264], esp
mov edi, esp
call fcn.00413290
add eax, 0x10
mov dword [edi], eax
call fcn.00416370
add esp, 4
test eax, eax
je 0x4188c9
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
call fcn.00413290
lea edi, [eax + 0x10]
mov dword [ebp - 0x264], edi
mov byte [ebp - 4], 5
cmp dword [esi], 0
je 0x4188a9
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x268], esp
mov ebx, esp
call fcn.00413290
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 2
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4188c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4188ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x274]
lea ecx, [ebp - 0x260]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418630
lea ebx, [eax + 1]
mov eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x288]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x278]
lea esi, [ebp - 0x28c]
call fcn.00418e90
mov edx, dword [ebp - 0x288]
push edx
call fcn.0042ab24
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418979
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
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.0042ab2f
mov esp, ebp
pop ebp
ret 4
call fcn.00413640
push 0x80004005
call fcn.004136e0
int3