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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422283
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x42d00c]
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, edx
mov esi, ecx
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0040f860
mov eax, dword [0x42e82c]
add esp, 0xc
inc eax
mov dword [0x42e82c], eax
cmp eax, 0xa
jbe 0x406985
dec eax
mov dword [0x42e82c], eax
xor eax, eax
jmp 0x406e63
test esi, esi
je 0x406978
push 0x104
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0041586a
add esp, 0xc
test eax, eax
jne 0x4069af
dec dword [0x42e82c]
xor eax, eax
jmp 0x406e63
lea ecx, [ebp - 0x220]
call fcn.00407740
test al, al
je 0x4069a2
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x4f0]
call fcn.00404f30
mov esi, eax
push str.Folder
lea ecx, [ebp - 0x4ec]
mov dword [ebp - 4], 0
call fcn.00404f30
mov byte [ebp - 4], 1
push dword [esi]
push dword [eax]
push str._s_s
push 0x42e7e0
call fcn.0040b840
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x4ec]
add esp, 0x10
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406a27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4f0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x406a49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x250]
call fcn.00401f80
push 1
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x250]
mov esi, dword [ebp - 0x240]
push esi
push 0x429738
call fcn.00407b60
lea ecx, [esi - 1]
cmp eax, ecx
je 0x406ab2
push 0x429738
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x268]
call fcn.00407be0
add esp, 4
lea ecx, [ebp - 0x250]
push eax
call fcn.00407a50
lea ecx, [ebp - 0x268]
call fcn.00401f40
xor eax, eax
mov dword [ebp - 0x26c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x280], ax
lea ecx, [ebp - 0x280]
lea eax, [ebp - 0x250]
mov dword [ebp - 0x270], 0
push eax
call fcn.00402120
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
push 0x429b24
lea edx, [ebp - 0x280]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x268]
call fcn.00407be0
add esp, 4
lea ecx, [ebp - 0x280]
push eax
call fcn.00407a50
lea ecx, [ebp - 0x268]
call fcn.00401f40
cmp dword [ebp - 0x26c], 8
lea ecx, [ebp - 0x4e8]
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406e12
test byte [ebp - 0x4e8], 0x10
je 0x406c4f
mov edx, 0x4299f8
lea ecx, [ebp - 0x4bc]
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x406ba6
test ax, ax
je 0x406ba2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x406ba6
add ecx, 4
add edx, 4
test ax, ax
jne 0x406b80
xor eax, eax
jmp 0x406bab
sbb eax, eax
or eax, 1
test eax, eax
je 0x406c9c
mov ecx, 0x4299fc
lea eax, [ebp - 0x4bc]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406be6
test dx, dx
je 0x406be2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406be6
add eax, 4
add ecx, 4
test dx, dx
jne 0x406bc0
xor eax, eax
jmp 0x406beb
sbb eax, eax
or eax, 1
test eax, eax
je 0x406c9c
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x298]
call fcn.00401f80
push eax
lea edx, [ebp - 0x250]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x268]
call fcn.00407cf0
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x406c2a
mov eax, dword [eax]
mov edx, edi
mov ecx, eax
call fcn.00406920
lea ecx, [ebp - 0x268]
call fcn.00401f40
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 4
call fcn.00401f40
jmp 0x406c9c
lea eax, [ebp - 0x4bc]
push eax
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x298]
call fcn.00407be0
add esp, 4
lea ecx, [ebp - 0x238]
push eax
call fcn.00407a50
lea ecx, [ebp - 0x298]
call fcn.00401f40
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
mov edx, edi
cmovae ecx, dword [ebp - 0x238]
call fcn.00406630
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x4e8]
push eax
push ebx
call esi
test eax, eax
je 0x406e0b
nop dword [eax]
nop dword [eax + eax]
test byte [ebp - 0x4e8], 0x10
lea eax, [ebp - 0x4bc]
je 0x406da5
mov ecx, 0x4299f8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406cfe
test dx, dx
je 0x406cfa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406cfe
add eax, 4
add ecx, 4
test dx, dx
jne 0x406cd8
xor eax, eax
jmp 0x406d03
sbb eax, eax
or eax, 1
test eax, eax
je 0x406df9
mov ecx, 0x4299fc
lea eax, [ebp - 0x4bc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406d3c
test dx, dx
je 0x406d38
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406d3c
add eax, 4
add ecx, 4
test dx, dx
jne 0x406d16
xor eax, eax
jmp 0x406d41
sbb eax, eax
or eax, 1
test eax, eax
je 0x406df9
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x268]
call fcn.00401f80
push eax
lea edx, [ebp - 0x250]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x298]
call fcn.00407cf0
add esp, 4
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x406d80
mov eax, dword [eax]
mov edx, edi
mov ecx, eax
call fcn.00406920
lea ecx, [ebp - 0x298]
call fcn.00401f40
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.00401f40
jmp 0x406df9
push eax
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x268]
call fcn.00407be0
add esp, 4
lea ecx, [ebp - 0x238]
push eax
call fcn.00407a50
mov eax, dword [ebp - 0x254]
cmp eax, 8
jb 0x406dde
inc eax
push eax
push dword [ebp - 0x268]
call fcn.00402450
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
mov edx, edi
cmovae ecx, dword [ebp - 0x238]
call fcn.00406630
lea eax, [ebp - 0x4e8]
push eax
push ebx
call esi
test eax, eax
jne 0x406cc0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406e37
test edi, edi
je 0x406e37
push 4
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
dec dword [0x42e82c]
lea ecx, [ebp - 0x238]
call fcn.00401f40
lea ecx, [ebp - 0x280]
call fcn.00401f40
lea ecx, [ebp - 0x250]
call fcn.00401f40
mov eax, 1
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.0040d320
mov esp, ebp
pop ebp
ret