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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5512f6
mov eax, dword fs:[0]
push eax
mov eax, 0x71e0
call fcn.00530230
mov eax, dword [0x58cb30]
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.004a2df0
test al, al
je 0x491330
push 0x800
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.004a2840
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 0x490fcc
cmp eax, 5
jne 0x491330
movzx eax, word [esi]
push eax
push 0x5685ac
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], 0x558718
mov dword [ebp - 0x2058], 0x558718
mov dword [ebp - 0x2054], 0x558718
mov dword [ebp - 0x2050], 0x558718
mov dword [ebp - 0x204c], 0x558718
mov dword [ebp - 0x2048], 0x558718
mov dword [ebp - 0x2044], 0x558718
mov dword [ebp - 0x2040], 0x558718
mov dword [ebp - 0x2014], 0x8d
mov dword [ebp - 0x203c], eax
mov dword [ebp - 0x2018], 1
call fcn.004bf7b0
lea ecx, [ebp - 0x20b8]
call fcn.004bdb30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x20b8]
call fcn.004bdbd0
push 2
push 1
push 2
lea eax, [ebp - 0x20b8]
push eax
lea ecx, [ebp - 0x71ec]
call fcn.004b9840
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.004ba530
test eax, eax
jne 0x491307
lea ecx, [ecx]
mov ax, word [ebp - 0x3100]
cmp ax, word [esi]
jne 0x491307
cmp word [ebp - 0x30fe], 0x3a
jne 0x491307
push 0
lea eax, [ebp - 0x3100]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x49118c
push 0x800
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x3100]
push eax
call fcn.004a2bb0
test al, al
je 0x49118c
push 0
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp - 0x20f4], 0
je 0x4911f2
cmp byte [ebp - 0x20f3], 0
jne 0x4911ab
test byte [ebp - 0x20c0], 1
je 0x4912ed
lea eax, [ebp - 0x3100]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4912ed
push 0x800
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x3100]
push eax
call fcn.004a2bb0
test al, al
je 0x4912ed
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4912ed
lea eax, [ebp - 0x3100]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x491236
push 0x800
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x3100]
push eax
call fcn.004a2bb0
test al, al
je 0x491236
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x4912ed
xor eax, eax
mov dword [ebp - 0x2054], 0x558718
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], 0x558718
mov dword [ebp - 0x204c], 0x558718
mov dword [ebp - 0x2048], 0x558718
mov dword [ebp - 0x2044], 0x558718
mov dword [ebp - 0x2040], 0x558718
mov dword [ebp - 0x2014], 0xe
mov dword [ebp - 0x2058], eax
mov dword [ebp - 0x201c], 2
call fcn.004bf7b0
mov ecx, 0x5d381c
call fcn.004885d0
lea eax, [ebp - 0x3100]
push eax
lea ecx, [ebp - 0x71ec]
call fcn.004ba530
test eax, eax
je 0x491130
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x71ec]
call fcn.004b9930
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20b8]
test eax, eax
je 0x491330
push eax
call fcn.0053867f
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.00530218
mov esp, ebp
pop ebp
ret 4