Function at 0x47cd60
Capabilities:
Delete directory
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59af0f
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x62819c]
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 eax, dword [ebp + 0x14]
xor edi, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x478], edi
push ecx
mov ebx, esp
mov dword [ebp - 4], edi
mov dword [ebp - 0x480], edi
mov dword [ebp - 0x488], ebx
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x47d388
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
test esi, esi
je 0x47ce14
test esi, 0xffff0000
jne 0x47cdfe
movzx eax, si
mov ecx, ebx
push eax
call fcn.004295b0
jmp 0x47ce1f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ce03
sub ecx, edx
sar ecx, 1
jmp 0x47ce16
xor ecx, ecx
push ecx
push esi
mov ecx, ebx
call fcn.00429870
lea eax, [ebp - 0x46c]
mov byte [ebp - 4], 0
push eax
call fcn.0047e7d0
push 0x5ad788
lea eax, [ebp - 0x46c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x47c]
push eax
call fcn.00429080
add esp, 0x14
lea ecx, [ebp - 0x468]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x47c]
test eax, eax
cmovne edi, eax
or ebx, 0xffffffff
mov dword [ebp - 0x478], edi
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47ce88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp edi, 0xffffffff
jne 0x47ce9c
mov dword [ebp - 0x484], 1
jmp 0x47d2c2
mov ecx, dword [0x633954]
mov eax, dword fs:[0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x488], eax
jmp 0x47cec0
test byte [ebp - 0x468], 0x10
je 0x47cf94
push 0x5ad72c
lea eax, [ebp - 0x43c]
push eax
call esi
test eax, eax
je 0x47d297
push 0x5ad730
lea eax, [ebp - 0x43c]
push eax
call esi
test eax, eax
je 0x47d297
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x494]
push eax
call fcn.00429080
push 0x5ad728
push eax
lea eax, [ebp - 0x490]
mov byte [ebp - 4], 3
push eax
call fcn.00429080
push dword [ebp - 0x48c]
mov byte [ebp - 4], 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call fcn.0047cd60
mov edx, dword [ebp - 0x490]
mov esi, eax
add esp, 0x28
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47cf66
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x494]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47cf87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x47d2b7
jmp 0x47d291
cmp dword [ebp + 0xc], 0
je 0x47d129
lea ecx, [ebp - 0x43c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47cfa7
sub ecx, edx
sar ecx, 1
cmp ecx, 4
jle 0x47d129
lea eax, [ebp - 0x444]
lea eax, [eax + ecx*2]
push str..sys
push eax
call fcn.00555852
add esp, 8
test eax, eax
jne 0x47d129
mov eax, dword [ebp - 0x488]
mov ecx, dword [eax]
mov eax, dword [0x631970]
cmp eax, dword [ecx + 4]
jg 0x47d392
mov eax, dword [0x63196c]
cmp dword [eax - 0xc], 0
jne 0x47d09a
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x47d095
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d025
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x63196c
call fcn.00429870
mov eax, dword [0x63196c]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x47d084
lea ecx, [edx - 1]
test ecx, ecx
js 0x47d37e
cmp ecx, edx
jg 0x47d37e
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x47d084
cmp eax, 0x2f
je 0x47d084
push 1
push 0x5ad728
mov ecx, 0x63196c
call fcn.00429240
push 8
push str.drivers_
mov ecx, 0x63196c
call fcn.00429240
mov eax, dword [0x63196c]
add eax, 0xfffffff0
push eax
call fcn.004293f0
add eax, 0x10
add esp, 4
or dword [ebp - 0x470], 1
mov dword [ebp - 0x474], eax
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 5
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d0c3
sub ecx, edx
lea eax, [ebp - 0x43c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x474]
call fcn.00429240
mov esi, dword [ebp - 0x474]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x47d10e
cmp dword [ebp + 0x10], eax
je 0x47d10e
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47d129
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x46c]
mov byte [ebp - 4], 6
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x47d145
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x47d15b
call fcn.00428a90
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x47d388
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x470]
lea ecx, [ebp - 0x43c]
add eax, 0x10
lea edx, [ecx + 2]
or ebx, 2
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x470], ebx
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d181
mov eax, dword [ebp - 0x46c]
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x43c]
push ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x47c]
push eax
call fcn.0042ae30
mov esi, dword [ebp - 0x47c]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x47d264
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x47d264
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x47d388
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x474], eax
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp - 0x474]
push str._s_d__x
push eax
call fcn.0042bf70
mov edi, dword [ebp - 0x474]
push edi
push esi
call fcn.00555de4
add esp, 0x18
test eax, eax
jne 0x47d231
push 4
push eax
push edi
jmp 0x47d23c
cmp dword [ebp + 0x10], 0
je 0x47d242
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 6
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x47d25e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x478]
inc dword [ebp - 0x480]
and ebx, 0xfffffffd
mov dword [ebp - 0x470], ebx
add esi, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 2
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47d291
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x468]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47cec0
mov dword [ebp - 0x484], 1
test edi, edi
je 0x47d2ca
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
mov dword [ebp - 0x478], edi
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x47d2ea
and eax, 0xfffffffe
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x46c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47d31b
cmp esi, 2
je 0x47d31b
cmp esi, 3
je 0x47d31b
push 4
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x48c]
test ecx, ecx
je 0x47d32d
mov eax, dword [ebp - 0x480]
add dword [ecx], eax
mov edx, dword [ebp - 0x46c]
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x47d34c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x47d35c
cmp edi, 0xffffffff
je 0x47d35c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x484]
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.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004293d0
push 0x80004005
call fcn.004293d0
push 0x631970
call fcn.00546388
add esp, 4
cmp dword [0x631970], 0xffffffff
jne 0x47cff7
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x47d388
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x5a9600
mov dword [0x63196c], eax
call fcn.0054669a
push 0x631970
call fcn.0054633e
add esp, 8
jmp 0x47cff7