Function at 0x490850
Capabilities:
Delete directory
Delete file
Get disk information
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550566
mov eax, dword fs:[0]
push eax
mov eax, 0x71e0
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call fcn.004a2410
test al, al
je 0x490c13
push 0x800
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.004a1e60
movzx eax, word [ebp - 0x1010]
lea ecx, [ebp - 0x1010]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x4908cc
cmp eax, 5
jne 0x490c13
movzx eax, word [esi]
push eax
push 0x5673ac
lea eax, [ebp - 0x1010]
push 0x800
push eax
call fcn.00404ce0
movzx eax, word [ebp - 0x1010]
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 0x2038], ecx
mov dword [ebp - 0x2034], ecx
mov dword [ebp - 0x2030], ecx
mov dword [ebp - 0x202c], ecx
mov dword [ebp - 0x2028], ecx
mov dword [ebp - 0x2024], ecx
mov dword [ebp - 0x2020], ecx
mov dword [ebp - 0x201c], ecx
lea ecx, [ebp - 0x205c]
mov dword [ebp - 0x205c], 0x557718
mov dword [ebp - 0x2058], 0x557718
mov dword [ebp - 0x2054], 0x557718
mov dword [ebp - 0x2050], 0x557718
mov dword [ebp - 0x204c], 0x557718
mov dword [ebp - 0x2048], 0x557718
mov dword [ebp - 0x2044], 0x557718
mov dword [ebp - 0x2040], 0x557718
mov dword [ebp - 0x2014], 0x8d
mov dword [ebp - 0x203c], eax
mov dword [ebp - 0x2018], 1
call fcn.004bed70
lea ecx, [ebp - 0x20b8]
call fcn.004bd0e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x20b8]
call fcn.004bd180
push 2
push 0
push 2
lea eax, [ebp - 0x20b8]
push eax
lea ecx, [ebp - 0x71ec]
call fcn.004b8e10
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3100]
push eax
lea ecx, [ebp - 0x71ec]
mov dword [ebp - 0x20f0], 0
mov dword [ebp - 0x20ec], 0
mov dword [ebp - 0x20e8], 0
mov dword [ebp - 0x20e4], 0
mov dword [ebp - 0x20e0], 0
mov dword [ebp - 0x20dc], 0
call fcn.004b9b00
test eax, eax
jne 0x490bea
lea ecx, [ecx]
mov ax, word [ebp - 0x3100]
cmp ax, word [esi]
jne 0x490bea
cmp word [ebp - 0x30fe], 0x3a
jne 0x490bea
push 0
lea eax, [ebp - 0x3100]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x490a8c
push 0x800
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x3100]
push eax
call fcn.004a21d0
test al, al
je 0x490a8c
push 0
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp - 0x20f4], 0
lea eax, [ebp - 0x3100]
push eax
je 0x490adc
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x490bd0
push 0x800
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x3100]
push eax
call fcn.004a21d0
test al, al
je 0x490bd0
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x490bd0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x490b19
push 0x800
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x3100]
push eax
call fcn.004a21d0
test al, al
je 0x490b19
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x490bd0
xor eax, eax
mov dword [ebp - 0x2054], 0x557718
mov dword [ebp - 0x203c], eax
lea ecx, [ebp - 0x205c]
mov dword [ebp - 0x2038], eax
mov dword [ebp - 0x2034], eax
mov dword [ebp - 0x2030], eax
mov dword [ebp - 0x202c], eax
mov dword [ebp - 0x2028], eax
mov dword [ebp - 0x2024], eax
mov dword [ebp - 0x2020], eax
mov dword [ebp - 0x2018], eax
mov dword [ebp - 0x205c], eax
lea eax, [ebp - 0x3100]
mov dword [ebp - 0x2050], 0x557718
mov dword [ebp - 0x204c], 0x557718
mov dword [ebp - 0x2048], 0x557718
mov dword [ebp - 0x2044], 0x557718
mov dword [ebp - 0x2040], 0x557718
mov dword [ebp - 0x2014], 0xe
mov dword [ebp - 0x2058], eax
mov dword [ebp - 0x201c], 2
call fcn.004bed70
mov ecx, 0x5d281c
call fcn.00487dd0
lea eax, [ebp - 0x3100]
push eax
lea ecx, [ebp - 0x71ec]
call fcn.004b9b00
test eax, eax
je 0x490a30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x71ec]
call fcn.004b8f00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20b8]
test eax, eax
je 0x490c13
push eax
call fcn.00537b6f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f708
mov esp, ebp
pop ebp
ret 4